How macvanthanh123/project-web works
Project type and purpose
• Static, multi-page website for travel/tourism content
• All content (HTML, CSS, JS, images, fonts) is served from a web server or CDN
• No server-side application logic, database, or API
File structure
Top-level “html” folder contains four asset groups:
– html/ (root HTML files: home_page.html, gioi_thieu.html, various tour_*.html pages)
– html/css/ (all .css stylesheets per page)
– html/JavaScript/ (custom JS: tour_mien_bac.js)
– html/img/ (subfolders of images for each section)
– html/fontawesome copy/ (locally hosted FontAwesome assets: CSS, JS, fonts)
Main components
A. User’s Web Browser (Client)
B. Network / CDN / Static Web Server
C. Static Asset Groups on the Server
1. HTML Pages
2. Stylesheets (CSS)
3. JavaScript (JS)
4. Images (PNG/JPG)
Relationships and data flows
• Browser → HTTP GET “index.html” (or another page) → Server responds with HTML
• Browser parses HTML and issues concurrent HTTP GETs for CSS, JS, images, fonts
• CSS files apply styling; CSS may reference image files (backgrounds) and FontAwesome fonts
• JS may enhance interactivity (e.g., tour_mien_bac.js controls a specific page)
Architectural patterns / design principles
• Separation of concerns: HTML (structure) / CSS (presentation) / JS (behavior)
• Asset grouping by type for caching and easier maintenance
• Local hosting of third-party libraries (FontAwesome) to avoid external dependencies
• Static hosting on a CDN/Web server for speed and simplicity