# notsakib/protfoliov1 architecture

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

- Interactive diagram: https://gitdiagram.com/notsakib/protfoliov1
- Repository: https://github.com/notsakib/protfoliov1

## Overview

##### Main Components Identification

a. Core Components:
- Static Site Generator (Astro)
- Page Components
- Shared Components
- Asset Management
- Build System

**[Browser/Client]**

**[CDN/Static Hosting]**

**[Generated Static Files]**

**[Astro Build System]**

**[Pages] --- [Layouts] --- [Components]**

**[Assets] ---- [Styles] ---- [TypeScript]**

##### Detailed Component Breakdown

**[Pages]**
- index.astro
- about.astro
- contact.astro
- 404.astro

**[Components]**
- Header.astro
- Footer.astro

**[Layouts]**
- Layout.astro

**[Configuration]**
- astro.config.mjs
- tailwind.config.mjs
- tsconfig.json

##### Build Process Flow

Build process flow:
**Source Files → Astro Build → Static Output → CDN Distribution**

##### Important Notes

- File-based routing system that Astro uses
- Static nature of the final output
- Where Tailwind CSS processing occurs
- How TypeScript compilation fits into the build process

##### Additional Elements

Annotations for:
- Development server flow (npm run dev)
- Production build flow (npm run build)
- Preview flow (npm run preview)

Remember to indicate that this is a static site generator project, meaning all pages are pre-rendered at build time, resulting in pure HTML/CSS/JS output that can be served from any static hosting service.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Browser/Client"]:::client
    end

    subgraph Hosting
        CDN["CDN/Static Hosting"]:::hosting
    end

    subgraph "Build Output"
        StaticFiles["Generated Static Files"]:::output
    end

    subgraph "Build Process"
        AstroBuild["Astro Build System"]:::build
        TailwindProcess["Tailwind CSS Processing"]:::build
        TSCompile["TypeScript Compilation"]:::build
    end

    subgraph "Source Architecture"
        subgraph "Pages"
            Pages["Page Components"]:::pages
            Index["index.astro"]:::page
            About["about.astro"]:::page
            Contact["contact.astro"]:::page
            NotFound["404.astro"]:::page
        end

        subgraph "Core Components"
            Layout["Layout.astro"]:::component
            Header["Header.astro"]:::component
            Footer["Footer.astro"]:::component
        end

        subgraph "Configuration"
            AstroConfig["astro.config.mjs"]:::config
            TailwindConfig["tailwind.config.mjs"]:::config
            TSConfig["tsconfig.json"]:::config
        end

        subgraph "Assets"
            Images["Image Assets"]:::asset
            Videos["Video Assets"]:::asset
            Public["Public Assets"]:::asset
            Types["Type Definitions"]:::types
        end
    end

    Browser --> CDN
    CDN --> StaticFiles
    StaticFiles --> |"Served to"| Browser

    AstroBuild --> StaticFiles
    Pages --> AstroBuild
    Layout --> Pages
    Header --> Layout
    Footer --> Layout
    
    Images --> Pages
    Videos --> Pages
    Public --> AstroBuild
    
    AstroConfig --> AstroBuild
    TailwindConfig --> TailwindProcess
    TSConfig --> TSCompile
    
    TailwindProcess --> AstroBuild
    TSCompile --> AstroBuild
    Types --> TSCompile

    %% Click Events
    click Pages "https://github.com/notSakib/protfolioV1/tree/main/src/pages"
    click Index "https://github.com/notSakib/protfolioV1/blob/main/src/pages/index.astro"
    click About "https://github.com/notSakib/protfolioV1/blob/main/src/pages/about.astro"
    click Contact "https://github.com/notSakib/protfolioV1/blob/main/src/pages/contact.astro"
    click NotFound "https://github.com/notSakib/protfolioV1/blob/main/src/pages/404.astro"
    click Layout "https://github.com/notSakib/protfolioV1/blob/main/src/layouts/Layout.astro"
    click Header "https://github.com/notSakib/protfolioV1/blob/main/src/components/Header.astro"
    click Footer "https://github.com/notSakib/protfolioV1/blob/main/src/components/Footer.astro"
    click Images "https://github.com/notSakib/protfolioV1/tree/main/src/images"
    click Videos "https://github.com/notSakib/protfolioV1/tree/main/src/videos"
    click Public "https://github.com/notSakib/protfolioV1/tree/main/public"
    click AstroConfig "https://github.com/notSakib/protfolioV1/blob/main/astro.config.mjs"
    click TailwindConfig "https://github.com/notSakib/protfolioV1/blob/main/tailwind.config.mjs"
    click TSConfig "https://github.com/notSakib/protfolioV1/blob/main/tsconfig.json"
    click Types "https://github.com/notSakib/protfolioV1/blob/main/src/env.d.ts"

    %% Styles
    classDef client fill:#f9f,stroke:#333
    classDef hosting fill:#aaf,stroke:#333
    classDef output fill:#ffa,stroke:#333
    classDef build fill:#faa,stroke:#333
    classDef pages fill:#afa,stroke:#333
    classDef page fill:#dfd,stroke:#333
    classDef component fill:#aff,stroke:#333
    classDef config fill:#fda,stroke:#333
    classDef asset fill:#ddf,stroke:#333
    classDef types fill:#ddd,stroke:#333
```
