Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ all from the browser, and deployed in milliseconds.
A futuristic but realistic automotive dashboard built with vanilla HTML, CSS, and JavaScript. Features a modern, vehicle-control interface with simulated (demo) sensor data โ clearly labelled as prototype data.
- โ Settings & Themes โ gear button opens a settings panel to switch between Red, Blue, Green, Dark, and White themes. The active theme is saved to
localStorageand restored after refresh. - ๐ Live Clock โ real-time digital clock in the header.
- ๐ Location โ shows current location, GPS status, and lat/long when a GPS fix is available. When no real GPS data exists it clearly shows "Location unavailable" rather than fake coordinates.
- ๐ Speed Dashboard โ animated circular speed gauge (SVG) with current speed, speed limit, average, and maximum. Uses clearly-labelled simulated speed data.
- ๐ Vehicle Status โ cards for fuel level, battery, engine temperature, engine RPM, oil status, tire pressure, and connection status, each with a visual indicator.
- ๐ฟ Ultra Fuel Save Mode โ retained toggle that switches to ACTIVE state with a visual indicator and an estimated fuel-savings percentage (demo values).
- ๐งญ Trip Information โ distance travelled, trip duration, average speed, and estimated fuel consumed (simulated).
- โก Quick Actions โ responsive buttons for Vehicle Status, Trip, Fuel Economy, and Settings.
- ๐ Alerts โ demo warnings such as low fuel and elevated engine temperature.
- ๐ท Branding โ clean footer: "DriveIQ" with a subtle "Made by Vandra".
- All vehicle metrics (speed, fuel, battery, temperature, RPM, trip, fuel savings) are simulated demo data and are labelled as such in the UI. They do not read from a real vehicle.
- GPS uses the browser's Geolocation API only when the user grants permission; otherwise the interface reports "Location unavailable".
| File | Purpose |
|---|---|
main.ts | HTTP handler that serves the static assets |
index.html | Page markup |
styles.css | Styling, themes, and animations |
script.js | Client-side interactivity |
- Vanilla HTML / CSS / JS (no frameworks or build step)
- Served from a Val Town HTTP endpoint via
serveFile