Prerequisites
Before setting up the project locally, ensure you have the following installed:- A modern web browser (Chrome, Firefox, Safari, or Edge)
- A code editor (VS Code, Sublime Text, or similar)
- A local web server (optional, but recommended for testing)
- Git (for version control)
Project Structure
The project follows a simple static website structure:Installation
1. Clone or Download the Repository
2. Set Up a Local Server
3. Open in Browser
Navigate tohttp://localhost:8000 in your web browser.
You can also open the HTML files directly in your browser by double-clicking them, but using a local server is recommended to avoid CORS issues and better simulate production behavior.
Development Workflow
Editing HTML Files
All HTML files are located in the root directory. Open them in your code editor:Editing Styles
CSS files are organized by page and component:- style.css - Global variables and reset styles
- headerfooter.css - Header and footer component styles
- [page].css - Page-specific styles
Live Reload (Optional)
For automatic browser refresh on file changes, use a tool like Live Server:Testing
Visual Testing
Desktop Testing
Desktop Testing
Test the application on desktop browsers:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Tablet Testing
Tablet Testing
Test responsive behavior on tablet devices:
- iPad (768x1024)
- Android Tablets (various sizes)
Mobile Testing
Mobile Testing
Test mobile responsiveness:
- iPhone (375x667, 390x844)
- Android phones (360x640, 412x915)
- Mobile navigation toggle works
- Forms are usable on small screens
- Text is readable without zooming
- Buttons are easily tappable
Functional Testing
Navigation Tests
-
Header Navigation
- Click all header links
- Verify external links open in new tabs
- Test mobile menu toggle on small screens
-
Page Flow
- Homepage → Iniciar Solicitud → Seleccionar Cita → Resumen
- Verify back buttons work correctly
- Test form submission flow
Form Validation Tests
- Empty fields (should show validation error)
- Invalid DNI format (e.g., “123” instead of “12345678X”)
- Valid data submission
- Date field constraints
Performance Testing
Accessibility Testing
Keyboard Navigation
- Tab through all interactive elements
- Verify focus indicators are visible
- Test form submission with keyboard only
Screen Reader Testing
- Test with NVDA (Windows) or VoiceOver (Mac)
- Verify all images have alt text
- Check form labels are properly associated
Color Contrast
Verify color contrast ratios meet WCAG AA standards:- Normal text: 4.5:1 minimum
- Large text: 3:1 minimum
Common Issues
Images Not Loading
Problem: Images appear broken or don’t load. Solution: Verify image paths are correct and files exist:CSS Not Applying
Problem: Styles don’t appear or are outdated. Solution: Hard refresh the browser:- Chrome/Firefox:
Ctrl + F5(Windows) orCmd + Shift + R(Mac) - Clear browser cache if issue persists
Mobile Menu Not Working
Problem: Menu toggle button doesn’t respond. Solution: Check JavaScript is loaded:Browser Compatibility
The project is compatible with:| Browser | Minimum Version |
|---|---|
| Chrome | 90+ |
| Firefox | 88+ |
| Safari | 14+ |
| Edge | 90+ |
Modern CSS features like
:has(), @container, and advanced flexbox/grid are used. Older browsers may require polyfills or fallbacks.Next Steps
Once your local environment is set up:- Explore Components - Review the Header and Footer documentation
- Understand Forms - Read about Form Components
- Deploy - Check Hosting Options when ready to deploy
Support
For development issues:- Check browser console for errors (F12)
- Verify all file paths are correct
- Ensure you’re running a local server, not opening files directly
- Review the Components documentation for usage examples