A modern, responsive landing page for Taxipoint, a taxi service operating 24/7 across the Netherlands. Built with vanilla HTML, CSS, and JavaScript — optimized for GitHub Pages deployment.
getataxi/
├── index.html # Main landing page
├── 404.html # Custom 404 error page
├── README.md # Project documentation
├── script/
│ └── script.js # Language switching, theme toggle, form handling
└── style/
└── styles.css # All styles including dark theme and print styles
| Technology | Purpose |
|---|---|
| HTML5 | Semantic markup |
| CSS3 | Styling, CSS variables, Grid, Flexbox |
| JavaScript (ES6+) | Interactivity, i18n, theme management |
| GitHub Pages | Hosting |
git clone https://github.com/robinslevel/getataxi.git
cd getataxi
Open in browser
Simply open index.html in your browser, or use a local server:
# Using Python
python -m http.server 8000
# Using Node.js (npx)
npx serve
# Using VS Code
# Install "Live Server" extension and click "Go Live"
View the site
Navigate to http://localhost:8000 (or the port shown)
main branch and / (root) folderhttps://<username>.github.io/getataxi/The site works out of the box with GitHub Pages. No build step required.
Edit the CSS variables in style/styles.css:
:root {
--primary: #2563eb; /* Main brand color */
--primary2: #22c55e; /* Secondary/accent color */
--bg: #f6f7fb; /* Light theme background */
--surface: #ffffff; /* Card backgrounds */
--text: #0f172a; /* Main text color */
}
:root[data-theme="dark"] {
--bg: #0b1220; /* Dark theme background */
--surface: #0f1a30; /* Dark card backgrounds */
--text: #e5e7eb; /* Dark theme text */
}
Edit the translations object in script/script.js:
const translations = {
nl: {
hero_title: "Taxi in Nederland",
// ... add more keys
},
en: {
hero_title: "Taxi in the Netherlands",
// ... add more keys
},
// Add new language
de: {
hero_title: "Taxi in den Niederlanden",
// ...
}
};
Then add the language button in index.html:
<button class="lang__btn" type="button" data-lang="de" aria-label="Deutsch">DE</button>
Search and replace these values in index.html:
+31203586204info@taxipoint.nlwa.me/31203586204Also update the JSON-LD structured data in the <head> section.
Replace the placeholder in the hero section:
<!-- Before -->
<div class="media-card" role="img" aria-label="Taxi afbeelding placeholder">
<p>Jouw hero afbeelding komt hier</p>
</div>
<!-- After -->
<img
src="images/hero.jpg"
alt="Taxipoint taxi service"
class="hero__image"
loading="lazy"
/>
| Browser | Supported |
|---|---|
| Chrome | ✅ Latest 2 versions |
| Firefox | ✅ Latest 2 versions |
| Safari | ✅ Latest 2 versions |
| Edge | ✅ Latest 2 versions |
| IE11 | ❌ Not supported |
This site follows WCAG 2.1 guidelines:
prefers-reduced-motion)index.htmlMain landing page containing:
404.htmlCustom error page for GitHub Pages with:
script/script.jsJavaScript functionality:
translations object — All UI strings in NL/EN/ESapplyLanguage() — Switches language and updates DOMstyle/styles.cssComplete styling including:
The booking form currently shows an alert on submission. To integrate with a backend:
<form action="https://formspree.io/f/YOUR_FORM_ID" method="POST">
bookingForm.addEventListener("submit", (e) => {
e.preventDefault();
const data = new FormData(bookingForm);
const text = `Nieuwe aanvraag:\nNaam: ${data.get('name')}\nTel: ${data.get('phone')}\nVan: ${data.get('pickup')}\nNaar: ${data.get('destination')}\nDatum: ${data.get('date')} ${data.get('time')}`;
window.open(`https://wa.me/31203586204?text=${encodeURIComponent(text)}`);
});
bookingForm.addEventListener("submit", (e) => {
e.preventDefault();
const data = new FormData(bookingForm);
const subject = `Taxi aanvraag - ${data.get('name')}`;
const body = `Van: ${data.get('pickup')}\nNaar: ${data.get('destination')}\nDatum: ${data.get('date')} om ${data.get('time')}`;
window.location.href = `mailto:info@taxipoint.nl?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`;
});
This project is licensed under the MIT License — see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Taxipoint
Made with ❤️ for reliable taxi service in the Netherlands