# harshkhasbage77/sashriti-website architecture

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

- Interactive diagram: https://gitdiagram.com/harshkhasbage77/sashriti-website
- Repository: https://github.com/harshkhasbage77/sashriti-website

## Overview

##### Project type and purpose
- This is a Next.js (v13+ App Router) frontend project, primarily a marketing/landing website.
- There is no backend code (no `/api` folder) so all dynamic behavior is either SSR/SSG or purely client-side React.

##### File structure
- Top-level:
- next.config.mjs, postcss.config.mjs, eslint.config.mjs, package.json – configuration for Next.js, build, linting, styling.
- public/ – static assets (images, favicon).
- src/app/ – Next.js App Router folder:
- layout.js – shared layout (Header, Footer, CSS imports).
- page.js – root page entry.
- globals.css – global styles.
- src/components/
- magicui/ – a library of reusable animated UI primitives (cards, text effects, grids).
- mycomponents/ – page-specific sections (hero, about, team, etc.) assembled into pages.
- ui/ – generic UI elements (Button, NavigationMenu, SmoothCursor).
- src/lib/utils.js – helper functions.

##### README for additional insights
- Standard Create-Next-App README.
- No custom architecture notes, but mentions Next.js font optimization, Vercel deploy.

a. Main components:
- Client Browser (React)
- Next.js Server/Host (SSR & SSG runtime)
- Static Asset Store (public folder, Vercel CDN)
- Component Library (magicui + ui)
- Page Assembly Layer (mycomponents + app/pages/layout)
- Utility Layer (lib/utils)
- External Services (Google Analytics, Fonts CDN, or any embed)
b. Relationships & data flow:
1. Client sends HTTP request to Next.js Server (or CDN edge).
2. Next.js resolves route under src/app.
3. Server either renders on-the-fly (SSR) or serves pre-rendered page (SSG).
4. During render, components from magicui, ui, and mycomponents are composed.
5. CSS (globals.css + PostCSS) is applied.
6. Static assets (images, fonts) are fetched from CDN.
7. The completed HTML/CSS/JS is delivered to Client.
8. Client hydrates React, possibly runs client-side JS in components.
c. Architectural patterns & design principles:
- Component-based architecture (atomic UI primitives vs. section components).
- App Router for file-based routing.
- SSR/SSG hybrid rendering.
- Separation of concerns: styles in CSS modules, logic in utils.
d. Key technologies/frameworks:
- Next.js (React, SSR/SSG, App Router)
- React (function components, hooks)
- PostCSS (styles pipeline)
- Vercel (hosting, CDN)

##### Detailed capture of essential elements
- Flow of CSS through PostCSS plugin chain.
- If deploying on Vercel, show CI/CD: Git → Vercel → Edge CDN → Browser.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Runtime Components
    Browser["Client Browser"]:::runtime
    NextServer["Next.js Server (SSR/SSG Runtime)"]:::runtime
    CDNStatic["CDN / Static Assets"]:::external
    FontsCDN["Fonts CDN"]:::external
    Git["Git Repo"]:::external
    VercelCI["Vercel CI/CD & Edge"]:::external

    %% Routing & Layout Layer
    subgraph "Routing & Layout Layer"
        RouterLayout["layout.js"]:::code
        RouterPage["page.js"]:::code
        RouterStyles["globals.css"]:::code
    end

    %% Component Library
    subgraph "Component Library"
        subgraph magicui["Animated UI Primitives (magicui)"]
            AGT["animated-gradient-text.jsx"]:::code
            AL["animated-list.jsx"]:::code
            AST["animated-shiny-text.jsx"]:::code
            ATX["aurora-text.jsx"]:::code
            BG["bento-grid.jsx"]:::code
            BB["border-beam.jsx"]:::code
            BR["box-reveal.jsx"]:::code
            DP["dot-pattern.jsx"]:::code
            GLB["globe.jsx"]:::code
            MC["magic-card.jsx"]:::code
            MQ["marquee.jsx"]:::code
            NGC["neon-gradient-card.jsx"]:::code
            PTC["particles.jsx"]:::code
            RB["rainbow-button.jsx"]:::code
            SPB["shimmer-button.jsx"]:::code
            SB["shine-border.jsx"]:::code
            STX["sparkles-text.jsx"]:::code
            TA["text-animate.jsx"]:::code
            WR["word-rotate.jsx"]:::code
        end
        subgraph ui["Generic UI Elements (ui)"]
            Btn["button.jsx"]:::code
            NavMenu["navigation-menu.jsx"]:::code
            SCursor["smooth-cursor.jsx"]:::code
        end
    end

    %% Page Components
    subgraph "Page Assembly Layer (mycomponents)"
        NavBar["navbar.js"]:::code
        Hero["hero-section.jsx"]:::code
        About["about-section.jsx"]:::code
        Solution["solution-section.jsx"]:::code
        Impact["impact-section.jsx"]:::code
        Investors["investors-section.jsx"]:::code
        Tech["technology-section.jsx"]:::code
        WhyNow["why-now-section.jsx"]:::code
        Team["team-section.jsx"]:::code
        Contact["contact-section.jsx"]:::code
        Heading["heading.jsx"]:::code
    end

    %% Utility Layer
    Utils["utils.js"]:::code

    %% Build & Deploy Tools
    subgraph "Build & Deploy"
        NextConfig["next.config.mjs"]:::config
        PostCSS["postcss.config.mjs"]:::config
        ESLint["eslint.config.mjs"]:::config
        JSConfig["jsconfig.json"]:::config
        Package["package.json"]:::config
        PackageLock["package-lock.json"]:::config
        Readme["README.md"]:::config
    end

    %% Relationships
    Browser -->|"HTTP GET /"| NextServer
    NextServer -->|"Resolve Routes"| RouterLayout
    NextServer --> RouterPage
    NextServer --> RouterStyles
    NextServer -->|"Import Components"| AGT
    NextServer -->|"Import Components"| Btn
    NextServer -->|"Import Sections"| NavBar
    NextServer -->|"Import Utils"| Utils
    NextServer -->|"Fetch Assets"| CDNStatic
    NextServer -->|"Respond HTML/CSS/JS"| Browser
    Browser -->|"Fetch Fonts"| FontsCDN
    Git -->|"Push"| VercelCI
    VercelCI -->|"Deploy Static"| CDNStatic
    VercelCI -->|"Run Edge"| NextServer

    %% Click events for Routing & Layout
    click RouterLayout "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/app/layout.js"
    click RouterPage "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/app/page.js"
    click RouterStyles "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/app/globals.css"

    %% Click events for magicui
    click AGT "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/animated-gradient-text.jsx"
    click AL "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/animated-list.jsx"
    click AST "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/animated-shiny-text.jsx"
    click ATX "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/aurora-text.jsx"
    click BG "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/bento-grid.jsx"
    click BB "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/border-beam.jsx"
    click BR "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/box-reveal.jsx"
    click DP "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/dot-pattern.jsx"
    click GLB "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/globe.jsx"
    click MC "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/magic-card.jsx"
    click MQ "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/marquee.jsx"
    click NGC "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/neon-gradient-card.jsx"
    click PTC "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/particles.jsx"
    click RB "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/rainbow-button.jsx"
    click SPB "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/shimmer-button.jsx"
    click SB "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/shine-border.jsx"
    click STX "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/sparkles-text.jsx"
    click TA "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/text-animate.jsx"
    click WR "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/magicui/word-rotate.jsx"

    %% Click events for ui
    click Btn "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/ui/button.jsx"
    click NavMenu "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/ui/navigation-menu.jsx"
    click SCursor "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/ui/smooth-cursor.jsx"

    %% Click events for mycomponents
    click NavBar "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/navbar.js"
    click Hero "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/hero-section.jsx"
    click About "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/about-section.jsx"
    click Solution "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/solution-section.jsx"
    click Impact "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/impact-section.jsx"
    click Investors "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/investors-section.jsx"
    click Tech "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/technology-section.jsx"
    click WhyNow "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/why-now-section.jsx"
    click Team "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/team-section.jsx"
    click Contact "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/contact-section.jsx"
    click Heading "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/components/mycomponents/heading.jsx"

    %% Click event for utils
    click Utils "https://github.com/harshkhasbage77/sashriti-website/blob/main/src/lib/utils.js"

    %% Click events for Build & Deploy
    click NextConfig "https://github.com/harshkhasbage77/sashriti-website/blob/main/next.config.mjs"
    click PostCSS "https://github.com/harshkhasbage77/sashriti-website/blob/main/postcss.config.mjs"
    click ESLint "https://github.com/harshkhasbage77/sashriti-website/blob/main/eslint.config.mjs"
    click JSConfig "https://github.com/harshkhasbage77/sashriti-website/blob/main/jsconfig.json"
    click Package "https://github.com/harshkhasbage77/sashriti-website/blob/main/package.json"
    click PackageLock "https://github.com/harshkhasbage77/sashriti-website/blob/main/package-lock.json"
    click Readme "https://github.com/harshkhasbage77/sashriti-website/blob/main/README.md"

    %% Styles
    classDef runtime fill:#D0E6FF,stroke:#1E90FF,stroke-width:2px
    classDef code fill:#E6FFE6,stroke:#32CD32,stroke-width:2px
    classDef config fill:#FFF5E6,stroke:#FFA500,stroke-width:2px
    classDef external fill:#F2F2F2,stroke:#A9A9A9,stroke-width:2px
```
