Prerequisites
You only need:- A modern web browser (Chrome, Firefox, Safari, or Edge)
- Git installed on your machine
- A text editor (VS Code, Sublime Text, etc.) if you want to explore the code
No build tools, package managers, or dependencies required! This is pure HTML/CSS.
Getting Started
Clone the repository
Open your terminal and clone the project:This will download all the source files to your local machine.
Open the project
Navigate to the project directory and open Option 2: Use a local server (recommended for testing)Then open
index.html in your browser:Option 1: Direct file openhttp://localhost:8000 in your browser.Explore the pages
The website has 5 main pages you can navigate:
- index.html - Home page with hero section and feature cards
- ocio.html - Leisure and entertainment offerings (cinema, arcade, bowling)
- gastro.html - Gastronomy section with restaurant information
- proyecto.html - Detailed project information and vision
- contact.html - Contact form with conditional fields
Project File Structure
Here’s what you’ll find in the repository:All pages share a single
style.css file, making it easy to maintain a consistent design system across the entire site.Understanding the Code
HTML Structure
Each HTML page follows the same structure:CSS Organization
Thestyle.css file is organized into logical sections:
- Font imports - Google Fonts (Playfair Display, Montserrat)
- CSS Variables - Color palette and theme tokens
- Reset styles - Normalize default browser styles
- Header - Navigation and hamburger menu
- Hero sections - Landing page hero and page headers
- Components - Cards, buttons, forms, grids
- Footer - Footer layout and links
- Media queries - Responsive breakpoints
Key CSS Features
CSS Custom Properties
Responsive Navigation
Making Changes
Customize Colors
Edit the CSS variables instyle.css (lines 8-26):
Modify Content
Edit the HTML files directly. For example, change the hero text inindex.html:36-37:
Add New Pages
- Copy an existing HTML file (e.g.,
cp index.html nueva-pagina.html) - Update the
<title>and content - Add a link in the
<nav>section of all pages - Save and refresh your browser
Remember to add the new page link to the footer navigation as well for consistency!
Common Issues
Images not loading?
Make sure you’re using a local server or the paths are correct. Some browsers restrict file:// protocol access to local files.Hamburger menu not working?
Resize your browser window below 768px width to trigger the mobile view. The hamburger menu only appears on smaller screens.Fonts not displaying?
Check your internet connection. Google Fonts are loaded from a CDN and require an active connection.Next Steps
View Live Demo
See the deployed version in action
Deploy Your Own
Learn how to deploy your version to GitHub Pages