# inove-jr/i9-landing-page architecture

> Architecture diagram of the GitHub repository inove-jr/i9-landing-page, 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/inove-jr/i9-landing-page
- Repository: https://github.com/inove-jr/i9-landing-page

## Overview

##### Main System Components

a. Frontend Layer (Client-Side):
- Next.js Application (Main UI)
- Component Structure
- Homepage Components
- Layout Components
- UI Components (shadcn/ui)
- Static Assets

b. Backend Integration:
- Google Apps Script
- Google Sheets (as Database)

##### Architectural Patterns to Highlight

- Next.js App Router Architecture (indicated by the src/app structure)
- Component-Based Architecture (shown in the component organization)
- External Services Integration

**[Client Layer]**
- Next.js Frontend
- App Router (src/app)
- Homepage Route
- Layout System
- Components
- Layout Components
- UI Components
- Styles (Tailwind CSS)

**[External Services]**
- Google Apps Script
- Google Sheets Database
- Membros Table
- Projetos Table

##### Key Relationships

- Frontend to Google Apps Script communication
- Data flow between Google Apps Script and Google Sheets
- Component hierarchy in the Next.js application
- Static asset delivery path

##### Important Technical Details

- Next.js 13+ App Router architecture
- Tailwind CSS styling system
- shadcn/ui component library integration
- Google Sheets database schema (as shown in the README)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client["Client Layer"]
        NextApp["Next.js Application"]:::frontend
        click NextApp "https://github.com/inove-jr/i9-landing-page/tree/main/src/app/"
        
        subgraph Components["Component Structure"]
            direction TB
            
            subgraph HomepageComponents["Homepage Components"]
                Header["Header Component"]:::component
                About["About Section"]:::component
                Contact["Contact Section"]:::component
                Portfolio["Portfolio Section"]:::component
                Services["Services Section"]:::component
                
                click Header "https://github.com/inove-jr/i9-landing-page/tree/main/src/app/(homepage)/_components/Header/"
                click About "https://github.com/inove-jr/i9-landing-page/blob/main/src/app/(homepage)/_components/About.tsx"
                click Contact "https://github.com/inove-jr/i9-landing-page/blob/main/src/app/(homepage)/_components/Contact.tsx"
                click Portfolio "https://github.com/inove-jr/i9-landing-page/blob/main/src/app/(homepage)/_components/Portfolio.tsx"
                click Services "https://github.com/inove-jr/i9-landing-page/blob/main/src/app/(homepage)/_components/Services.tsx"
            end
            
            subgraph LayoutComponents["Layout Components"]
                Navbar["Navbar"]:::component
                Footer["Footer"]:::component
                RootLayout["Root Layout"]:::component
                
                click Navbar "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/layout/Navbar.tsx"
                click Footer "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/layout/Footer.tsx"
                click RootLayout "https://github.com/inove-jr/i9-landing-page/blob/main/src/app/layout.tsx"
            end
            
            subgraph UIComponents["UI Components"]
                Button["Button"]:::ui
                Form["Form"]:::ui
                Dialog["Dialog"]:::ui
                Toast["Toast"]:::ui
                
                click Button "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/ui/button.tsx"
                click Form "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/ui/form.tsx"
                click Dialog "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/ui/dialog.tsx"
                click Toast "https://github.com/inove-jr/i9-landing-page/blob/main/src/components/ui/toast.tsx"
            end
        end
        
        subgraph Styling["Styling System"]
            GlobalStyles["Global Styles"]:::styles
            TailwindConfig["Tailwind Config"]:::styles
            FontConfig["Font Configuration"]:::styles
            
            click GlobalStyles "https://github.com/inove-jr/i9-landing-page/blob/main/src/styles/globals.css"
            click TailwindConfig "https://github.com/inove-jr/i9-landing-page/blob/main/tailwind.config.ts"
            click FontConfig "https://github.com/inove-jr/i9-landing-page/tree/main/src/styles/fonts/"
        end
        
        StaticAssets["Static Assets"]:::assets
        click StaticAssets "https://github.com/inove-jr/i9-landing-page/tree/main/public/"
    end
    
    subgraph External["External Services"]
        GAS["Google Apps Script"]:::external
        
        subgraph GSDatabase["Google Sheets Database"]
            MembrosTable["Membros Table"]:::database
            ProjetosTable["Projetos Table"]:::database
        end
    end
    
    %% Relationships
    NextApp --> Components
    Components --> StaticAssets
    NextApp --> GAS
    GAS --> GSDatabase
    
    %% Styles
    classDef frontend fill:#2563eb,color:white
    classDef component fill:#3b82f6,color:white
    classDef ui fill:#60a5fa,color:white
    classDef styles fill:#93c5fd,color:white
    classDef assets fill:#bfdbfe,color:black
    classDef external fill:#22c55e,color:white
    classDef database fill:#86efac,color:black
    
    %% Legend
    subgraph Legend
        Frontend["Frontend"]:::frontend
        Component["Components"]:::component
        UI["UI Elements"]:::ui
        Styles["Styles"]:::styles
        Assets["Assets"]:::assets
        External["External Services"]:::external
        Database["Database"]:::database
    end
```
