# adibrasel/my_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/adibrasel/my_portfolio
- Repository: https://github.com/adibrasel/my_portfolio

## Overview

##### Project Type Analysis
This is a single-page React application serving as a personal portfolio website. The structure indicates a client-side only architecture, utilizing modern frontend development practices.

##### Main Components

A. Core Application Layer:
- React Application Container
- React Router (if implemented)
- State Management (if any)

B. Component Structure Layer:
Primary Components:
- Banner Section
- Navbar
- Features
- Projects
- Resume
- Contact
- Testimonial
- Footer

C. Asset Management Layer:
- Static Assets (images)
- Constants
- Styles (Tailwind CSS)

**┌─────────────────────────────────────────┐**
- Client Browser               │
- ┘
- ↓
**┌─────────────────────────────────────────┐**
- React Application Layer         │
- ┘
- ↓
**┌─────────────────────────────────────────┐**
- Component Architecture          │
- ┘

**App.js**
- Navbar
- Banner
- LeftBanner
- RightBanner
- Features
- Card
- Projects
- ProjectsCard
- Resume
- Education
- Experience
- Skills
- Achievement
- ResumeCard
- Contact
- ContactLeft
- Testimonial
- Footer
- FooterBottom

##### Important Elements to Highlight

a) Data Flow:
- Prop drilling or state management patterns
- Asset import paths

b) Build & Deploy:
- GitHub Pages deployment flow
- Build process from source to production

c) Styling Architecture:
- Tailwind CSS integration
- Global styles vs component-specific styles

##### Specific Recommendations

- Use a top-down hierarchy to show component relationships
- A separate section for shared components (layouts/Title.js)
- How assets and constants are imported and used throughout the application
- Responsive design considerations
- Entry points (index.js, App.js)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Client Layer"
        Browser["Web Browser"]
    end

    subgraph "React Application Layer"
        App["App.js"]:::core
        Index["index.js"]:::core
        Browser --> Index
        Index --> App
    end

    subgraph "Component Architecture"
        direction TB
        
        subgraph "Main Components"
            Navbar["Navbar"]:::component
            Banner["Banner"]:::component
            Features["Features"]:::component
            Projects["Projects"]:::component
            Resume["Resume"]:::component
            Contact["Contact"]:::component
            Testimonial["Testimonial"]:::component
            Footer["Footer"]:::component
            Title["Title"]:::shared
        end

        subgraph "Banner Components"
            LeftBanner["LeftBanner"]:::subcomponent
            RightBanner["RightBanner"]:::subcomponent
            Banner --> LeftBanner
            Banner --> RightBanner
        end

        subgraph "Features Components"
            FeaturesCard["Card"]:::subcomponent
            Features --> FeaturesCard
        end

        subgraph "Projects Components"
            ProjectsCard["ProjectsCard"]:::subcomponent
            Projects --> ProjectsCard
        end

        subgraph "Resume Components"
            Education["Education"]:::subcomponent
            Experience["Experience"]:::subcomponent
            Skills["Skills"]:::subcomponent
            Achievement["Achievement"]:::subcomponent
            ResumeCard["ResumeCard"]:::subcomponent
            Resume --> Education
            Resume --> Experience
            Resume --> Skills
            Resume --> Achievement
            Resume --> ResumeCard
        end

        subgraph "Contact Components"
            ContactLeft["ContactLeft"]:::subcomponent
            Contact --> ContactLeft
        end

        subgraph "Footer Components"
            FooterBottom["FooterBottom"]:::subcomponent
            Footer --> FooterBottom
        end
    end

    subgraph "Asset Management"
        Assets["Static Assets"]:::assets
        Constants["Constants"]:::assets
        Styles["Styles"]:::assets
    end

    App --> Navbar
    App --> Banner
    App --> Features
    App --> Projects
    App --> Resume
    App --> Contact
    App --> Testimonial
    App --> Footer

    %% Click Events
    click App "https://github.com/AdibRasel/My_Portfolio/blob/main/src/App.js"
    click Index "https://github.com/AdibRasel/My_Portfolio/blob/main/src/index.js"
    click Navbar "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/navbar/Navbar.js"
    click Banner "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/banner/Banner.js"
    click LeftBanner "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/banner/LeftBanner.js"
    click RightBanner "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/banner/RightBanner.js"
    click Features "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/features/Features.js"
    click FeaturesCard "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/features/Card.js"
    click Projects "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/projects/Projects.js"
    click ProjectsCard "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/projects/ProjectsCard.js"
    click Resume "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/Resume.js"
    click Education "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/Education.js"
    click Experience "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/Experience.js"
    click Skills "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/Skills.js"
    click Achievement "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/Achievement.js"
    click ResumeCard "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/resume/ResumeCard.js"
    click Contact "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/contact/Contact.js"
    click ContactLeft "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/contact/ContactLeft.js"
    click Testimonial "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/tesimonial/Testimonial.js"
    click Footer "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/footer/Footer.js"
    click FooterBottom "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/footer/FooterBottom.js"
    click Title "https://github.com/AdibRasel/My_Portfolio/blob/main/src/components/layouts/Title.js"
    click Assets "https://github.com/AdibRasel/My_Portfolio/tree/main/src/assets/images"
    click Constants "https://github.com/AdibRasel/My_Portfolio/blob/main/src/constants/index.js"
    click Styles "https://github.com/AdibRasel/My_Portfolio/blob/main/src/index.css"

    classDef core fill:#2563eb,color:white
    classDef component fill:#3b82f6,color:white
    classDef subcomponent fill:#60a5fa,color:white
    classDef shared fill:#93c5fd,color:white
    classDef assets fill:#f97316,color:white
```
