Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JFVela/SchoolScience/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Adding new science projects to the School Science platform is straightforward. All project data is centralized in a single JavaScript file, making it easy to add, edit, or remove experiments without touching component code.Project Data Structure
All projects are defined insrc/data/proyectos.js. Each project follows this structure:
src/data/proyectos.js
Adding a New Project
Follow these steps to add a new science experiment:Copy Existing Project
Copy one of the existing project objects as a template. This ensures you have all required fields.
Set Unique ID
Choose a unique, URL-friendly ID:This ID will be used in the URL:
/proyecto/magnetic-levitationFill in Project Details
Complete all fields with your project information:
- titulo: Display name shown on cards and detail pages
- descripcion: Brief summary (2-3 sentences)
- integrantes: Array of team member names
- materiales: Array of objects with
nombreandcantidad - costo: Total cost as a string (e.g., “30.00”)
- imagenes: Array of image paths in
/public/image/ - videoUrl: YouTube video ID (not full URL)
- pdfs: Array of downloadable resources
- conclusion: Scientific findings or learning outcomes
Add Project Images
Create a folder in Reference these images in the
public/image/ for your project:imagenes array:Complete Example
Here’s a full example of a new project:src/data/proyectos.js
Field Guidelines
ID (Required)
- Use lowercase with hyphens
- Must be unique across all projects
- No spaces or special characters
- Keep it short but descriptive
Titulo (Required)
Display name with proper capitalization:Descripcion (Required)
2-3 sentences explaining:- What the experiment does
- Scientific principles demonstrated
- Key learning outcomes
Materiales (Required)
Array of objects with specific quantities:Costo (Required)
Total cost as a string (for currency display):Imagenes (Required)
At least 1 image, maximum 10 recommended:- Format: JPG, PNG, or WebP
- Max size: 2MB per image
- Min dimensions: 800x600px
- Recommended: 1200x900px
VideoUrl (Optional)
YouTube video ID only:PDFs (Optional)
Array of downloadable resources:Conclusion (Required)
Scientific findings or learning outcomes:Routing
The platform automatically handles routing for new projects. Once added toproyectos.js, your project is immediately accessible at:
App.jsx:
src/App.jsx
:slug parameter matches your project’s id field.
Image Optimization
Recommended Image Workflow
Edit and Crop
- Crop to remove unnecessary background
- Adjust brightness and contrast
- Ensure aspect ratio is consistent (4:3 or 16:9)
Compress Images
Use tools like TinyPNG or Squoosh to reduce file size while maintaining quality.
Target: less than 500KB per image
Testing Your Project
After adding a project, verify:Home Page Display
Home Page Display
- Project card appears on home page
- Title displays correctly
- Description is visible (truncated at 3 lines)
- First image loads properly
- “Ver más” button works
Detail Page
Detail Page
- Detail page loads at
/proyecto/your-id - All images display in carousel
- Carousel navigation works
- Materials list shows all items
- Cost displays correctly
- Team members list appears
- Video embeds properly
- PDF download buttons work
- Conclusion text displays
Responsive Design
Responsive Design
Test on multiple screen sizes:
- Desktop (1920x1080)
- Laptop (1366x768)
- Tablet (768x1024)
- Mobile (375x667)
Common Issues
Next Steps
Customize Styling
Learn how to modify colors and styling
Deploy Your Site
Publish your updated project list