Overview
The Siloé Perú website is a single-page HTML application with no build process required. This guide will help you set up a local development environment for making changes and testing modifications.Prerequisites
You’ll need the following tools installed on your system:Web Browser
Modern browser (Chrome, Firefox, Safari, or Edge)
Code Editor
VS Code, Sublime Text, or any text editor
Local Server (Optional)
For testing (Python, Node.js, or VS Code Live Server)
Git (Optional)
For version control and collaboration
No Node.js, npm, or build tools are required! This is a vanilla HTML/CSS/JavaScript project.
File Structure
The project has a simple, straightforward structure:Quick Start
Download or Clone the Repository
Get the source code to your local machine:Or download the ZIP file from GitHub and extract it.
Open with a Local Server (Recommended)
For the best experience, use a local development server:Option 1: VS Code Live Server ExtensionOption 3: Node.js HTTP Server
- Install the “Live Server” extension in VS Code
- Right-click on
index.html - Select “Open with Live Server”
- Your browser will open at
http://localhost:5500
Or Open Directly in Browser
You can also open the file directly:
- Navigate to the project folder
- Double-click
index.html - It will open in your default browser
Recommended Development Tools
VS Code Extensions
For the best development experience, install these VS Code extensions:Live Server
Auto-reload on file changes
HTML CSS Support
Enhanced HTML/CSS IntelliSense
Prettier
Code formatting
Auto Rename Tag
Automatically rename paired HTML tags
Browser Developer Tools
Use your browser’s developer tools for debugging:- Chrome DevTools: Press
F12orCtrl+Shift+I(Windows/Linux) /Cmd+Option+I(Mac) - Firefox Developer Tools: Press
F12 - Safari Web Inspector: Enable in Preferences → Advanced, then press
Cmd+Option+I
Git Workflow
If you’re contributing to the project, follow this workflow:Test Thoroughly
- Test on multiple browsers
- Test on mobile devices or using browser responsive mode
- Click through all navigation buttons
- Test all flip cards
- Test form validation
Testing Checklist
Before submitting changes, verify:Navigation System
Navigation System
Forms
Forms
- ✅ Volunteer form submits correctly
- ✅ Clown form submits correctly
- ✅ Required field validation works
- ✅ Checkbox validation works
Interactive Elements
Interactive Elements
- ✅ Flip cards flip on click
- ✅ Only one card flips at a time
- ✅ WhatsApp button is visible
- ✅ WhatsApp button links correctly
Responsive Design
Responsive Design
- ✅ Layout works on mobile (< 768px)
- ✅ Layout works on tablet (768px - 1024px)
- ✅ Layout works on desktop (> 1024px)
- ✅ Images scale properly
- ✅ Text is readable on all screen sizes
Cross-Browser Compatibility
Cross-Browser Compatibility
- ✅ Works in Chrome
- ✅ Works in Firefox
- ✅ Works in Safari
- ✅ Works in Edge
Common Development Tasks
Hot Reloading Setup
With VS Code Live Server:- Install the “Live Server” extension
- Open
index.htmlwith Live Server - Any changes to HTML or CSS will automatically reload the page
- JavaScript changes may require a manual refresh
Debugging JavaScript
The website includes console logging for debugging (index.html:727-824):CSS Hot Reload
For instant CSS updates without page reload:- Open browser DevTools
- Make changes in the “Styles” panel
- Once satisfied, copy changes to
style.css - The page will reload with your changes
Performance Optimization
Troubleshooting
Images not loading
Images not loading
Problem: Images appear brokenSolution:
- Check that image paths are correct (note: folder names have spaces)
- Use a local server instead of
file://protocol - Verify image files exist in the correct directories
JavaScript not working
JavaScript not working
Problem: Navigation or flip cards don’t workSolution:
- Check browser Console for errors
- Verify script is at the bottom of
index.html(lines 726-856) - Ensure no syntax errors were introduced
- Clear browser cache and reload
CSS not applying
CSS not applying
Problem: Styles don’t appear or look wrongSolution:
- Verify
style.cssis linked correctly (line 13) - Check for CSS syntax errors
- Clear browser cache (Ctrl+Shift+R or Cmd+Shift+R)
- Verify CSS variables are defined in
:root
Next Steps
Styling Guide
Learn about the CSS architecture and styling system
JavaScript Features
Understand the JavaScript functionality and event handling
Responsive Design
Explore mobile-first responsive design patterns
Color Customization
Customize the color scheme for your organization