# awscommunitydaybolivia/web2 architecture

> Architecture diagram of the GitHub repository awscommunitydaybolivia/web2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/awscommunitydaybolivia/web2
- Repository: https://github.com/awscommunitydaybolivia/web2

## Overview

##### Main Components Identification

a) Frontend Architecture (Primary Focus):
- React Application Layer
- Component Structure
- Routing System
- Data Management
- Static Assets

**┌─────────────────────────────────────────┐**
- React Application            │
- ┘

**┌─────────────┐ ┌─────────────┐ ┌─────────────┐**
- Routing   │ │  Components │ │    Data     │
- System    │ │    Layer    │ │   Layer     │
- ┘ └─────────────┘ └─────────────┘

##### Key Relationships to Highlight

a) Data Flow:
**Data Files → Components → Pages**
**(src/data) → (src/components) → (src/pages)**

b) Component Hierarchy:
**Pages → Layout Components → Feature Components**

##### Technical Stack Elements

- Vite (Build Tool)
- React (Frontend Framework)
- Tailwind CSS (Styling)
- GitHub Actions (CI/CD)

**┌─────────────────────────────────────────┐**
- Build/Deploy               │
- (GitHub Actions, AWS, Vite Config)     │
- ┤
- Application Core             │
- (Components, Routes, Data Management)  │
- ┤
- Static Assets              │
- (Public Files, Styles, Images)     │
- ┘

##### Special Notes

- Component-based architecture
- Relationship between data files and their corresponding components
- Deployment workflow from GitHub Actions to AWS
- Custom hooks integration (useOutsideClick)

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Build and Deploy"
        GHA["GitHub Actions"]
        AWS["AWS Deployment"]
        Vite["Vite Build Tool"]:::config
        TC["Tailwind Config"]:::config
    end

    subgraph "React Application"
        App["App Component"]:::react
        Index["Index Component"]:::react
    end

    subgraph "Core Components"
        direction TB
        CL["Components Layer"]:::component

        subgraph "Event Management"
            direction TB
            Agenda["Agenda"]:::component
            EventHeader["Event Item Header"]:::component
            EventAgenda["Event Agenda"]:::component
        end

        subgraph "User Interface"
            direction TB
            Nav["Navbar"]:::component
            Footer["Footer"]:::component
            Dialog["Dialog"]:::component
            FloatBtn["Floating Back Button"]:::component
        end

        subgraph "Sponsorship"
            direction TB
            SponsorMain["Sponsor Main"]:::component
            SponsorsOro["Sponsors Oro"]:::component
            SponsorsPlata["Sponsors Plata"]:::component
            SponsorsCobre["Sponsors Cobre"]:::component
            SponsorsDia["Sponsors Dia"]:::component
            SponsorsPlati["Sponsors Plati"]:::component
            BeSponsor["Be Our Sponsor"]:::component
        end

        subgraph "Content"
            direction TB
            Speakers["Speakers"]:::component
            Team["Team"]:::component
            FAQ["FAQ"]:::component
        end
    end

    subgraph "Data Layer"
        direction TB
        AgendaData["Agenda Data"]:::data
        FaqData["FAQ Data"]:::data
        SpeakersData["Speakers Data"]:::data
        TeamData["Team Data"]:::data
        VacanciesData["Vacancies Data"]:::data
    end

    subgraph "Routing"
        direction TB
        HomePage["Home Page"]:::page
        AgendaPage["Agenda Page"]:::page
        VacanciesPage["Vacancies Page"]:::page
    end

    subgraph "Utilities"
        OutsideClick["useOutsideClick Hook"]:::util
    end

    %% Relationships
    GHA --> AWS
    Vite --> App
    App --> CL
    CL --> |Uses| OutsideClick
    AgendaData --> Agenda
    FaqData --> FAQ
    SpeakersData --> Speakers
    TeamData --> Team
    VacanciesData --> VacanciesPage

    %% Click Events
    click App "https://github.com/awscommunitydaybolivia/web2/blob/main/src/App.jsx"
    click Index "https://github.com/awscommunitydaybolivia/web2/blob/main/src/index.jsx"
    click CL "https://github.com/awscommunitydaybolivia/web2/tree/main/src/components/"
    click Agenda "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Agenda.jsx"
    click EventHeader "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/EventItemHeader.jsx"
    click EventAgenda "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/eventAgenda.jsx"
    click Nav "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Navbar.jsx"
    click Footer "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Footer.jsx"
    click Dialog "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Dialog.jsx"
    click FloatBtn "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/FloatingBackButton.jsx"
    click SponsorMain "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorMain.jsx"
    click SponsorsOro "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorsOro.jsx"
    click SponsorsPlata "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorsPlata.jsx"
    click SponsorsCobre "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorsCobre.jsx"
    click SponsorsDia "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorsDia.jsx"
    click SponsorsPlati "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/SponsorsPlati.jsx"
    click BeSponsor "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Beoursponsor.jsx"
    click Speakers "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Speakers.jsx"
    click Team "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/Team.jsx"
    click FAQ "https://github.com/awscommunitydaybolivia/web2/blob/main/src/components/FAQ.jsx"
    click AgendaData "https://github.com/awscommunitydaybolivia/web2/blob/main/src/data/agendaData.jsx"
    click FaqData "https://github.com/awscommunitydaybolivia/web2/blob/main/src/data/faqData.jsx"
    click SpeakersData "https://github.com/awscommunitydaybolivia/web2/blob/main/src/data/speakersData.jsx"
    click TeamData "https://github.com/awscommunitydaybolivia/web2/blob/main/src/data/teamData.jsx"
    click VacanciesData "https://github.com/awscommunitydaybolivia/web2/blob/main/src/data/vacanciesData.jsx"
    click HomePage "https://github.com/awscommunitydaybolivia/web2/blob/main/src/pages/Home.jsx"
    click AgendaPage "https://github.com/awscommunitydaybolivia/web2/blob/main/src/pages/Agenda.jsx"
    click VacanciesPage "https://github.com/awscommunitydaybolivia/web2/blob/main/src/pages/VacanciesPage.jsx"
    click OutsideClick "https://github.com/awscommunitydaybolivia/web2/blob/main/src/hooks/useOutsideClick.jsx"
    click Vite "https://github.com/awscommunitydaybolivia/web2/blob/main/vite.config.mjs"
    click TC "https://github.com/awscommunitydaybolivia/web2/blob/main/tailwind.config.js"
    click GHA "https://github.com/awscommunitydaybolivia/web2/blob/main/.github/workflows/deploy-dev-job.yml"

    %% Styles
    classDef react fill:#61DAFB,stroke:#000000
    classDef component fill:#4FC3F7,stroke:#000000
    classDef data fill:#81C784,stroke:#000000
    classDef util fill:#FFD54F,stroke:#000000
    classDef config fill:#9575CD,stroke:#000000
    classDef page fill:#FF8A65,stroke:#000000

    %% Legend
    subgraph Legend
        L1["React Components"]:::react
        L2["UI Components"]:::component
        L3["Data Sources"]:::data
        L4["Utilities"]:::util
        L5["Configuration"]:::config
        L6["Pages"]:::page
    end
```
