# cinnamonrolls1/aeot architecture

> Architecture diagram of the GitHub repository cinnamonrolls1/aeot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cinnamonrolls1/aeot
- Repository: https://github.com/cinnamonrolls1/aeot

## Overview

##### Main Components
- Next.js Application:
- The core of the project lives in the src/app directory – containing layout.js, page.js, globals.css. This folder defines the page routing and overall structure.
- It leverages Next.js’s file-based routing and server-side rendering.
- UI Components:
- The src/components folder contains reusable components such as Lightbox.js and MediaGrid.js that encapsulate specific UI functionality.
- Public Assets:
- The public folder holds static media files (videos and images) organized in subdirectories (e.g., public/media/full) that the app serves directly via URL.
- Configuration & Build Tools:
- Files like next.config.mjs, package.json, tailwind.config.js, postcss.config.mjs, and editor configuration files (.eslintrc.json, jsconfig.json) indicate configurations for build, linting, CSS styling via Tailwind, and Next.js runtime features.
- Deployment Environment:
- The README and files hint at deployment on Vercel, which is streamlined for Next.js projects.

- A block for Configuration/Build Tools that feeds into the build and deployment processes.
- Optionally, include a cloud/service block labeled “Vercel” (or “Deployment/Hosting”) connected to the Next.js Application.

##### Architectural Patterns and Principles
- Front-end architecture pattern inherent in Next.js, including SSR (Server-Side Rendering) and SSG (Static Site Generation) possibilities.
- Separation of concerns: routing/pages (src/app) vs. reusable UI components (src/components).
- Integration of Tailwind CSS (via tailwind.config.js and globals.css) and modern JavaScript tooling (ESLint, PostCSS) which ensure code quality and design consistency.
- A note or visual cue for optimized font loading (through next/font and integration with Google Fonts for “Inter”).

##### Final Reminder
- Although this project is relatively straightforward, it is best to break it down into as many clear and distinct components as possible to provide a full picture of the system’s architecture.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Browser["Browser (Client)"]:::browser

    subgraph "Next.js Application"
        A1["Next.js Pages/Layouts"]:::nextjs
        A2["Reusable UI Components"]:::ui
    end

    PublicAssets["Static Media Assets (Public)"]:::media

    subgraph "Configuration & Build Tools"
        C1["next.config.mjs"]:::config
        C2["package.json"]:::config
        C3["tailwind.config.js"]:::config
        C4["postcss.config.mjs"]:::config
        C5[".eslintrc.json"]:::config
        C6["jsconfig.json"]:::config
    end

    Vercel["Vercel (Deployment)"]:::deploy

    Browser -->|"sendsRequest"| A1
    A1 -->|"composesWith"| A2
    A1 -->|"servesStatic"| PublicAssets
    C1 -->|"builds"| A1
    C2 -->|"builds"| A1
    C3 -->|"builds"| A1
    C4 -->|"builds"| A1
    C5 -->|"builds"| A1
    C6 -->|"builds"| A1
    A1 -->|"deployedOn"| Vercel

    classDef browser fill:#FFCC00,stroke:#333,stroke-width:2px;
    classDef nextjs fill:#66CCFF,stroke:#333,stroke-width:2px;
    classDef ui fill:#CCFFCC,stroke:#333,stroke-width:2px;
    classDef media fill:#FF9999,stroke:#333,stroke-width:2px;
    classDef config fill:#CCCCFF,stroke:#333,stroke-width:2px;
    classDef deploy fill:#FFCCFF,stroke:#333,stroke-width:2px;

    click A1 "https://github.com/cinnamonrolls1/aeot/tree/main/src/app"
    click A2 "https://github.com/cinnamonrolls1/aeot/tree/main/src/components"
    click PublicAssets "https://github.com/cinnamonrolls1/aeot/tree/main/public"
    click C1 "https://github.com/cinnamonrolls1/aeot/blob/main/next.config.mjs"
    click C2 "https://github.com/cinnamonrolls1/aeot/blob/main/package.json"
    click C3 "https://github.com/cinnamonrolls1/aeot/blob/main/tailwind.config.js"
    click C4 "https://github.com/cinnamonrolls1/aeot/blob/main/postcss.config.mjs"
    click C5 "https://github.com/cinnamonrolls1/aeot/blob/main/.eslintrc.json"
    click C6 "https://github.com/cinnamonrolls1/aeot/blob/main/jsconfig.json"
```
