# adarsh275/travel-blog-website architecture

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

- Interactive diagram: https://gitdiagram.com/adarsh275/travel-blog-website
- Repository: https://github.com/adarsh275/travel-blog-website

## Overview

##### Project type and purpose
- Travel-Blog-Website is a multi-page, static front-end website. There is no server-side code or database in the repository; all logic runs in the browser (HTML/CSS/JS). Each folder (HomePage, ContactUs, Login, Recommendations, Review) corresponds to a feature or “page” of the blog.

##### File structure
- Top-level folders:
- HomePage – landing page with its assets, styles, scripts, fonts.
- ContactUs – contact form page.
- Login – client-side login page and app.js.
- Recommendations – travel recommendations page + CSS + images.
- Review – user review page with main.js.
- Common file types: HTML (views), CSS (styles), JS (behaviors), images, fonts, webfonts.
- No backend or build scripts—pure static hosting.

##### README
- README only contains the title “Travel-Blog-Website.” No further architectural clues.

##### Main components and interactions
a. Components
1. User’s Browser (Client)
2. Web Server / Static Hosting (e.g., Netlify, GitHub Pages, S3 + CloudFront)
3. HTML Views (HomePage, ContactUs, Recommendations, Review, Login)
4. CSS Stylesheets (global and page-specific)
5. JS Modules (app.js for login, main.js for review interactions, AOS library)
6. Assets Store (Images, Fonts, Webfonts)
b. Relationships & Data Flow
- Browser → HTTP GET → Server: requests .html → receives HTML
- HTML page → browser parses → loads CSS, JS, image/font assets
- JS modules handle client-side interactivity (login form validation, scroll animations, review submission)
c. Architectural Patterns & Principles
- Separation of concerns: one folder per feature/page
- Client-side rendering for interactive parts (no SSR)
- Static asset hosting (CDN recommended)
d. Key Technologies
- HTML5, CSS3, JavaScript
- AOS.js (Animate on Scroll)
- Font Awesome webfonts
- Google Fonts (Abel, Anton, etc.)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Client
    Browser["User's Browser"]:::browser

    %% Hosting
    Hosting["Static Hosting / CDN"]:::cloud

    %% Pages Module
    subgraph "Pages"
        direction TB
        HomePage["HomePage Module"]:::page
        ContactUs["ContactUs Module"]:::page
        LoginPage["Login Module"]:::page
        Recommendations["Recommendations Module"]:::page
        ReviewPage["Review Module"]:::page
    end

    %% Assets Module
    subgraph "Assets"
        direction TB
        CSS_Global["all.css, fonts.css"]:::css
        CSS_AOS["aos.css"]:::css
        CSS_PageContact["style.css, style1.css"]:::css
        CSS_Recommendations["recommendations.css"]:::css
        CSS_Review["main.css"]:::css
        JS_AOS["aos.js"]:::js
        JS_HomeMain["main.js (HomePage)"]:::js
        JS_Login["app.js"]:::js
        JS_Review["main.js (Review)"]:::js
        Images["Images, assets, img folders"]:::img
        Fonts["Webfonts, Fonts folders"]:::font
    end

    %% Connections
    Browser -->|"HTTP GET /HomePage/Index.html"| Hosting
    Browser -->|"HTTP GET /ContactUs/Contact.html"| Hosting
    Browser -->|"HTTP GET /Login/Login.html"| Hosting
    Browser -->|"HTTP GET /Recommendations/recommendations.html"| Hosting
    Browser -->|"HTTP GET /Review/review.html"| Hosting

    Hosting -->|serves HTML| HomePage
    Hosting -->|serves HTML| ContactUs
    Hosting -->|serves HTML| LoginPage
    Hosting -->|serves HTML| Recommendations
    Hosting -->|serves HTML| ReviewPage

    HomePage -->|"load CSS, JS, Images, Fonts"| CSS_Global
    HomePage -->|"load CSS, JS, Images, Fonts"| CSS_AOS
    HomePage -->|"load CSS, JS, Images, Fonts"| JS_AOS
    HomePage -->|"load CSS, JS, Images, Fonts"| JS_HomeMain
    HomePage -->|"load CSS, JS, Images, Fonts"| Images
    HomePage -->|"load CSS, JS, Images, Fonts"| Fonts

    ContactUs -->|"load CSS, Images"| CSS_PageContact
    ContactUs -->|"load CSS, Images"| Images

    LoginPage -->|"load CSS, JS, Images"| CSS_PageContact
    LoginPage -->|"load CSS, JS, Images"| JS_Login
    LoginPage -->|"load CSS, JS, Images"| Images

    Recommendations -->|"load CSS, Images"| CSS_Recommendations
    Recommendations -->|"load CSS, Images"| Images

    ReviewPage -->|"load CSS, JS, Images"| CSS_Review
    ReviewPage -->|"load CSS, JS, Images"| JS_Review
    ReviewPage -->|"load CSS, JS, Images"| Images

    %% Click Events
    click HomePage "https://github.com/adarsh275/travel-blog-website/blob/main/HomePage/Index.html"
    click ContactUs "https://github.com/adarsh275/travel-blog-website/blob/main/ContactUs/Contact.html"
    click LoginPage "https://github.com/adarsh275/travel-blog-website/blob/main/Login/Login.html"
    click Recommendations "https://github.com/adarsh275/travel-blog-website/blob/main/Recommendations/recommendations.html"
    click ReviewPage "https://github.com/adarsh275/travel-blog-website/blob/main/Review/review.html"
    click CSS_AOS "https://github.com/adarsh275/travel-blog-website/blob/main/HomePage/css/aos.css"
    click JS_AOS "https://github.com/adarsh275/travel-blog-website/blob/main/HomePage/js/aos.js"
    click JS_HomeMain "https://github.com/adarsh275/travel-blog-website/blob/main/HomePage/js/main.js"
    click CSS_Global "https://github.com/adarsh275/travel-blog-website/blob/main/HomePage/css/all.css"
    click Fonts "https://github.com/adarsh275/travel-blog-website/tree/main/HomePage/fonts/"
    click Fonts "https://github.com/adarsh275/travel-blog-website/tree/main/HomePage/webfonts/"
    click JS_Login "https://github.com/adarsh275/travel-blog-website/blob/main/Login/app.js"

    %% Styles
    classDef browser fill:#f9f,stroke:#333,stroke-width:1px;
    classDef cloud fill:#ddd,stroke:#999,stroke-width:1px;
    classDef page fill:#D0E8FF,stroke:#0275d8,stroke-width:1px;
    classDef css fill:#D5F5E3,stroke:#27ae60,stroke-width:1px;
    classDef js fill:#FDEBD0,stroke:#E67E22,stroke-width:1px;
    classDef img fill:#FADBD8,stroke:#C0392B,stroke-width:1px;
    classDef font fill:#E8DAEF,stroke:#8E44AD,stroke-width:1px;
```
