# irfan-khan-git/zentry-clone architecture

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

- Interactive diagram: https://gitdiagram.com/irfan-khan-git/zentry-clone
- Repository: https://github.com/irfan-khan-git/zentry-clone

## Overview

##### Project Type and Purpose
- This is a purely frontend project designed as a landing page clone of Zentry. It uses React for UI rendering and Tailwind CSS for styling. There’s also preparation for GSAP animations (though no explicit animation code is yet implemented).
- The README emphasizes a pixel-perfect replica with a component-based architecture and showcases several media assets (videos, audio, images).

##### Analyzing the File Structure
- Key Files and Directories:
- Root-level files like index.html, package.json, README.md, vite.config.js, and tailwind.config.js set up the environment and configurations.
- The public directory holds all static assets (audio, fonts, images, videos) which are served directly.
- The src directory contains the React code. Entry points include main.jsx and App.jsx.
- The src/components folder includes individual React components (Navbar, Hero, About, Features, Story, Button, Contact, Footer, AnimatedTitle) that together form the landing page.
- The split between static assets (in public) and the React components (in src) indicates a clear separation of concerns.

##### Main Components
- The entry point (index.html) that loads the application.
- The main React application including:
- main.jsx that bootstraps the app.
- App.jsx that acts as the root component.
- The public assets (organized by types: audio, fonts, images, videos) that are utilized by these components.
- Build and configuration aspects (Vite for bundling, Tailwind CSS for styling, and ESLint configuration for code linting).

##### Relationships and Interactions
- Frontend Rendering Flow:
- The browser loads index.html.
- main.jsx initializes the React app.
- App.jsx ties all subcomponents together.
- Component Interactions:
- Data or UI flow among components such as how Navbar may influence page navigation, or how Hero and Features components display content.
- Asset Management:
- Components reference static assets from the public directory.
- Configuration Layer:
- Vite and Tailwind configuration files, although not runtime components, greatly influence the build and styling of the application.

## Diagram (Mermaid)

```mermaid
flowchart TD
    index_html["index.html"]
    main_js["src/main.jsx"]
    app_js["src/App.jsx"]

    subgraph "UI Components"
        direction TB
        navbar["src/components/Navbar.jsx"]
        hero["src/components/Hero.jsx"]
        about["src/components/About.jsx"]
        features["src/components/Features.jsx"]
        story["src/components/Story.jsx"]
        button["src/components/Button.jsx"]
        contact["src/components/Contact.jsx"]
        footer["src/components/Footer.jsx"]
        animated["src/components/AnimatedTitle.jsx"]
    end

    subgraph "Configurations"
        direction TB
        tailwind["tailwind.config.js"]
        vite["vite.config.js"]
        eslint["eslint.config.js"]
    end

    subgraph "Static Assets"
        direction TB
        public_assets["public"]
    end

    %% Flow of rendering
    index_html -->|"loads"| main_js
    main_js -->|"bootstraps"| app_js

    %% App renders UI Components
    app_js -->|"renders"| navbar
    app_js -->|"renders"| hero
    app_js -->|"renders"| about
    app_js -->|"renders"| features
    app_js -->|"renders"| story
    app_js -->|"renders"| button
    app_js -->|"renders"| contact
    app_js -->|"renders"| footer
    app_js -->|"renders"| animated

    %% Configurations influence the app
    vite -->|"bundles"| main_js
    tailwind -->|"styles"| app_js
    eslint -->|"lints"| navbar
    eslint -->|"lints"| hero
    eslint -->|"lints"| about
    eslint -->|"lints"| features
    eslint -->|"lints"| story
    eslint -->|"lints"| button
    eslint -->|"lints"| contact
    eslint -->|"lints"| footer
    eslint -->|"lints"| animated

    %% App loads static assets
    app_js -->|"loads"| public_assets

    %% Styling classes
    classDef html fill:#FFCCCC,stroke:#333,stroke-width:2px;
    classDef react fill:#C2E7FF,stroke:#333,stroke-width:2px;
    classDef config fill:#FFF3B0,stroke:#333,stroke-width:2px;
    classDef assets fill:#D1FFD1,stroke:#333,stroke-width:2px;

    class index_html html;
    class main_js,app_js,navbar,hero,about,features,story,button,contact,footer,animated react;
    class tailwind,vite,eslint config;
    class public_assets assets;

    %% Click Events
    click index_html "https://github.com/irfan-khan-git/zentry-clone/blob/main/index.html"
    click main_js "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/main.jsx"
    click app_js "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/App.jsx"
    click navbar "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Navbar.jsx"
    click hero "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Hero.jsx"
    click about "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/About.jsx"
    click features "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Features.jsx"
    click story "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Story.jsx"
    click button "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Button.jsx"
    click contact "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Contact.jsx"
    click footer "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/Footer.jsx"
    click animated "https://github.com/irfan-khan-git/zentry-clone/blob/main/src/components/AnimatedTitle.jsx"
    click public_assets "https://github.com/irfan-khan-git/zentry-clone/tree/main/public"
    click tailwind "https://github.com/irfan-khan-git/zentry-clone/blob/main/tailwind.config.js"
    click vite "https://github.com/irfan-khan-git/zentry-clone/blob/main/vite.config.js"
    click eslint "https://github.com/irfan-khan-git/zentry-clone/blob/main/eslint.config.js"
```
