# noorikhan/sheinproject architecture

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

- Interactive diagram: https://gitdiagram.com/noorikhan/sheinproject
- Repository: https://github.com/noorikhan/sheinproject

## Overview

##### Project type and purpose
- This is a front-end only, multi-page e-commerce clone of SHEIN.
- It uses static HTML/CSS/JS files for each page and browser LocalStorage as a “backend” to persist cart, favorites, and user session data.

##### File structure
- Top-level HTML/CSS/JS for each feature page: index.html, home, beauty, cart, checkout, payment, sign-in/up, etc.
- Directories grouping similar pages: beddingCategory/, diningkitchen/, homeDecor/, plus shared assets under images/, beautyImages/, beddingImages/, screenShots/.
- No traditional server code—no “backend” folder, only LocalStorage interactions inside JS.

##### README for additional insights
- Tech stack: HTML, CSS, JavaScript, LocalStorage.
- Key features: sign in/up, filter, cart, favorites, checkout, payment, promo codes.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Static hosting layer
    subgraph "Static Hosting"
        SFS["Static File Server / CDN"]:::server
    end

    %% Browser/client layer
    subgraph "Browser / Client"
        direction TB
        %% UI components
        subgraph "UI (HTML/CSS)"
            direction TB
            IDX["index.html"]:::client
            aboutHTML["aboutSHEIN.html"]:::client
            aboutCSS["aboutSHEIN.css"]:::client
            beautyHTML["beauty.html"]:::client
            beautyCSS["beauty.css"]:::client
            beautyProdHTML["beautyProductPage.html"]:::client
            beautyProdCSS["beautyProductPage.css"]:::client
            cartHTML["cart.html"]:::client
            cartCSS["cart.css"]:::client
            checkoutHTML["checkout.html"]:::client
            checkoutCSS["checkout.css"]:::client
            curveHTML["curve+plus.html"]:::client
            curveCSS["curve+plus.css"]:::client
            favHTML["fav.html"]:::client
            favCSS["fav.css"]:::client
            forgetHTML["forgetPassword.html"]:::client
            forgetCSS["forgetPassword.css"]:::client
            homeHTML["home.html"]:::client
            homeCSS["home.css"]:::client
            homeProdsHTML["homeProducts.html"]:::client
            homeProdsCSS["homeProducts.css"]:::client
            homeDetailsHTML["homeProductDetails.html"]:::client
            homeDetailsCSS["homeProductDetails.css"]:::client
            kidsHTML["kids.html"]:::client
            kidsCSS["kids.css"]:::client
            menHTML["men.html"]:::client
            menCSS["men.css"]:::client
            paymentHTML["payment.html"]:::client
            paymentCSS["payment.css"]:::client
            prodBeautyHTML["productBeautyDetails.html"]:::client
            prodBeautyCSS["productBeautyDetails.css"]:::client
            signHTML["signInAndSignUp.html"]:::client
            signCSS["signInUp.css"]:::client
        end

        %% JS controller modules
        subgraph "JS Controller Modules"
            direction TB
            aboutSHEINJS["aboutSHEIN.js"]:::client
            beautyJS["beauty.js"]:::client
            beautyProdJS["beautyProductPage.js"]:::client
            cartJS["cart.js"]:::client
            checkoutJS["checkout.js"]:::client
            curveJS["curve+plus.js"]:::client
            favJS["fav.js"]:::client
            forgetJS["forgetPassword.js"]:::client
            homeJS["home.js"]:::client
            homeProdsJS["homeProducts.js"]:::client
            homeDetailsJS["homeProductDetails.js"]:::client
            kidsJS["kids.js"]:::client
            menJS["men.js"]:::client
            paymentJS["payment.js"]:::client
            prodBeautyJS["productBeautyDetails.js"]:::client
            signJS["signInUp.js"]:::client
        end

        %% In-browser storage
        LS["LocalStorage (Model)"]:::storage
    end

    %% User interaction
    User("User"):::client

    %% Data flows
    SFS -->|"serves HTML/CSS/JS/images"| IDX
    SFS --> aboutHTML
    SFS --> beautyHTML
    SFS --> beautyProdHTML
    SFS --> cartHTML
    SFS --> checkoutHTML
    SFS --> curveHTML
    SFS --> favHTML
    SFS --> forgetHTML
    SFS --> homeHTML
    SFS --> homeProdsHTML
    SFS --> homeDetailsHTML
    SFS --> kidsHTML
    SFS --> menHTML
    SFS --> paymentHTML
    SFS --> prodBeautyHTML
    SFS --> signHTML

    User -->|"interacts with"| IDX
    User --> aboutHTML
    User --> beautyHTML
    User --> beautyProdHTML
    User --> cartHTML
    User --> checkoutHTML
    User --> curveHTML
    User --> favHTML
    User --> forgetHTML
    User --> homeHTML
    User --> homeProdsHTML
    User --> homeDetailsHTML
    User --> kidsHTML
    User --> menHTML
    User --> paymentHTML
    User --> prodBeautyHTML
    User --> signHTML

    IDX -->|"event triggers"| aboutSHEINJS
    IDX --> beautyJS
    IDX --> beautyProdJS
    IDX --> cartJS
    IDX --> checkoutJS
    IDX --> curveJS
    IDX --> favJS
    IDX --> forgetJS
    IDX --> homeJS
    IDX --> homeProdsJS
    IDX --> homeDetailsJS
    IDX --> kidsJS
    IDX --> menJS
    IDX --> paymentJS
    IDX --> prodBeautyJS
    IDX --> signJS

    %% Controllers interact with LocalStorage
    aboutSHEINJS -->|read/write| LS
    beautyJS -->|read/write| LS
    beautyProdJS -->|read/write| LS
    cartJS -->|read/write| LS
    checkoutJS -->|read/write| LS
    curveJS -->|read/write| LS
    favJS -->|read/write| LS
    forgetJS -->|read/write| LS
    homeJS -->|read/write| LS
    homeProdsJS -->|read/write| LS
    homeDetailsJS -->|read/write| LS
    kidsJS -->|read/write| LS
    menJS -->|read/write| LS
    paymentJS -->|read/write| LS
    prodBeautyJS -->|read/write| LS
    signJS -->|read/write| LS

    %% Controllers update UI
    aboutSHEINJS -->|DOM updates| aboutHTML
    beautyJS --> beautyHTML
    beautyProdJS --> beautyProdHTML
    cartJS --> cartHTML
    checkoutJS --> checkoutHTML
    curveJS --> curveHTML
    favJS --> favHTML
    forgetJS --> forgetHTML
    homeJS --> homeHTML
    homeProdsJS --> homeProdsHTML
    homeDetailsJS --> homeDetailsHTML
    kidsJS --> kidsHTML
    menJS --> menHTML
    paymentJS --> paymentHTML
    prodBeautyJS --> prodBeautyHTML
    signJS --> signHTML

    %% Click events for code navigation
    click aboutSHEINJS "https://github.com/noorikhan/sheinproject/blob/main/aboutSHEIN.js"
    click beautyJS "https://github.com/noorikhan/sheinproject/blob/main/beauty.js"
    click beautyProdJS "https://github.com/noorikhan/sheinproject/blob/main/beautyProductPage.js"
    click cartJS "https://github.com/noorikhan/sheinproject/blob/main/cart.js"
    click checkoutJS "https://github.com/noorikhan/sheinproject/blob/main/checkout.js"
    click curveJS "https://github.com/noorikhan/sheinproject/blob/main/curve+plus.js"
    click favJS "https://github.com/noorikhan/sheinproject/blob/main/fav.js"
    click forgetJS "https://github.com/noorikhan/sheinproject/blob/main/forgetPassword.js"
    click homeJS "https://github.com/noorikhan/sheinproject/blob/main/home.js"
    click homeProdsJS "https://github.com/noorikhan/sheinproject/blob/main/homeProducts.js"
    click homeDetailsJS "https://github.com/noorikhan/sheinproject/blob/main/homeProductDetails.js"
    click kidsJS "https://github.com/noorikhan/sheinproject/blob/main/kids.js"
    click menJS "https://github.com/noorikhan/sheinproject/blob/main/men.js"
    click paymentJS "https://github.com/noorikhan/sheinproject/blob/main/payment.js"
    click prodBeautyJS "https://github.com/noorikhan/sheinproject/blob/main/productBeautyDetails.js"
    click signJS "https://github.com/noorikhan/sheinproject/blob/main/signInUp.js"

    click IDX "https://github.com/noorikhan/sheinproject/blob/main/index.html"
    click aboutHTML "https://github.com/noorikhan/sheinproject/blob/main/aboutSHEIN.html"
    click aboutCSS "https://github.com/noorikhan/sheinproject/blob/main/aboutSHEIN.css"
    click beautyHTML "https://github.com/noorikhan/sheinproject/blob/main/beauty.html"
    click beautyCSS "https://github.com/noorikhan/sheinproject/blob/main/beauty.css"
    click beautyProdHTML "https://github.com/noorikhan/sheinproject/blob/main/beautyProductPage.html"
    click beautyProdCSS "https://github.com/noorikhan/sheinproject/blob/main/beautyProductPage.css"
    click cartHTML "https://github.com/noorikhan/sheinproject/blob/main/cart.html"
    click cartCSS "https://github.com/noorikhan/sheinproject/blob/main/cart.css"
    click checkoutHTML "https://github.com/noorikhan/sheinproject/blob/main/checkout.html"
    click checkoutCSS "https://github.com/noorikhan/sheinproject/blob/main/checkout.css"
    click curveHTML "https://github.com/noorikhan/sheinproject/blob/main/curve+plus.html"
    click curveCSS "https://github.com/noorikhan/sheinproject/blob/main/curve+plus.css"
    click favHTML "https://github.com/noorikhan/sheinproject/blob/main/fav.html"
    click favCSS "https://github.com/noorikhan/sheinproject/blob/main/fav.css"
    click forgetHTML "https://github.com/noorikhan/sheinproject/blob/main/forgetPassword.html"
    click forgetCSS "https://github.com/noorikhan/sheinproject/blob/main/forgetPassword.css"
    click homeHTML "https://github.com/noorikhan/sheinproject/blob/main/home.html"
    click homeCSS "https://github.com/noorikhan/sheinproject/blob/main/home.css"
    click homeProdsHTML "https://github.com/noorikhan/sheinproject/blob/main/homeProducts.html"
    click homeProdsCSS "https://github.com/noorikhan/sheinproject/blob/main/homeProducts.css"
    click homeDetailsHTML "https://github.com/noorikhan/sheinproject/blob/main/homeProductDetails.html"
    click homeDetailsCSS "https://github.com/noorikhan/sheinproject/blob/main/homeProductDetails.css"
    click kidsHTML "https://github.com/noorikhan/sheinproject/blob/main/kids.html"
    click kidsCSS "https://github.com/noorikhan/sheinproject/blob/main/kids.css"
    click menHTML "https://github.com/noorikhan/sheinproject/blob/main/men.html"
    click menCSS "https://github.com/noorikhan/sheinproject/blob/main/men.css"
    click paymentHTML "https://github.com/noorikhan/sheinproject/blob/main/payment.html"
    click paymentCSS "https://github.com/noorikhan/sheinproject/blob/main/payment.css"
    click prodBeautyHTML "https://github.com/noorikhan/sheinproject/blob/main/productBeautyDetails.html"
    click prodBeautyCSS "https://github.com/noorikhan/sheinproject/blob/main/productBeautyDetails.css"
    click signHTML "https://github.com/noorikhan/sheinproject/blob/main/signInAndSignUp.html"
    click signCSS "https://github.com/noorikhan/sheinproject/blob/main/signInUp.css"

    %% Styles
    classDef server fill:#b2f2bb,stroke:#2f8f2f,color:#000
    classDef client fill:#bef3ff,stroke:#2196f3,color:#000
    classDef storage fill:#fff3bf,stroke:#f0ad4e,color:#000
```
