[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 using styles.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. ๐ŸŒฑ

LayerTool/LanguagePurpose
๐Ÿงฉ StructureHTML5For creating semantic layout and sectioned content (home, about, services, tours)
๐ŸŽจ StylingCSS3 (with Grid, Flexbox, Media Queries)For layout, responsiveness, and theming (via custom variables)
๐Ÿง  BehaviorVanilla JavaScript (ES6)For DOM manipulation, scroll behavior, navbar control, and filtering logic
๐Ÿ’ป IconsFont AwesomeFor clean and scalable icons (hamburger menu, arrow-up button)
๐Ÿ”ค FontsGoogle FontsFor a modern and clean UI with Roboto and Open Sans
๐ŸŒ Hosting(Optional) GitHub Pages / NetlifyTo 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.

0
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

Mohammad Saad Ansari
Mohammad Saad Ansari