How basliel-sisay/info-site works
Odin Info Site is a small static multi-page website served by a hand-written Node.js HTTP server. A browser requests a route; info.js selects and reads the matching page, serves the shared stylesheet on its own route, or returns the custom 404 with status 404 for unknown routes. File-read errors produce a plain-text 500 response. The README documents responsive and accessible page features; source excerpts here show server behavior but not the HTML or CSS details.
Main entry points: info.js Router and file server · index.html Home page · about.html About page · contact-me.html Contact page
Components 7
HTTP server
- Router and file server
info.js
Site content
- Home page
index.html - About page
about.html - Contact page
contact-me.html - 404 page
404.html - Shared styles
styles.css
Other components
- Browser
Connections 8
- Browser → Router and file server: requests routes
- Router and file server → Home page: reads for /
- Router and file server → About page: reads for /about.html
- Router and file server → Contact page: reads for /contact-me.html
- Router and file server → Shared styles: reads for /styles.css
- Router and file server → 404 page: reads for unknown routes
- Router and file server → Browser: returns page or error response
- Browser → Router and file server: requests stylesheet