[02] - 01 - Architecture & Tech Stack

๐งฑ Architecture: MVC-Inspired Structure
While not a full MVC (Model-View-Controller) framework, this project loosely follows its principles to keep the structure modular and clean:
Model (Data) โ All tour destinations are stored in a structured JavaScript array (
menu[]
) that represents our "travel database."View (UI) โ The layout and components are built in
index.html
and styled usingstyles.css
with responsive design in mind.Controller (Logic) โ The interactive behavior, such as navbar scroll logic, button filtering, and DOM rendering, is handled in
app.js
.
This separation ensures each file has a clear responsibility, making it easier to maintain or expand in the future.
โ๏ธ Tech Stack
No frameworks. No dependencies. 100% pure frontend fundamentals. ๐ฑ
Layer | Tool/Language | Purpose |
๐งฉ Structure | HTML5 | For creating semantic layout and sectioned content (home, about, services, tours) |
๐จ Styling | CSS3 (with Grid, Flexbox, Media Queries) | For layout, responsiveness, and theming (via custom variables) |
๐ง Behavior | Vanilla JavaScript (ES6) | For DOM manipulation, scroll behavior, navbar control, and filtering logic |
๐ป Icons | Font Awesome | For clean and scalable icons (hamburger menu, arrow-up button) |
๐ค Fonts | Google Fonts | For a modern and clean UI with Roboto and Open Sans |
๐ Hosting | (Optional) GitHub Pages / Netlify | To easily deploy the static site live |
๐๏ธ File Structure (Simplified)
๐ TravelScroll
โโโ index.html # main HTML structure
โโโ styles.css # custom styles and layout
โโโ app.js # all interactive logic and data
โโโ images/ # all destination images
This simple yet powerful tech stack was chosen intentionally to reinforce core frontend concepts without the complexity of external libraries or frameworks.
Subscribe to my newsletter
Read articles from Mohammad Saad Ansari directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
