Dashboard Access
The admin panel is located at/admin and requires authentication. See Authentication for login details.
Dashboard Layout
The admin interface (src/routes/admin/+page.svelte) uses a sidebar navigation layout:
Sidebar Navigation
TheAdminSidebar component provides access to all management sections:
The Sugerencias tab displays a badge with the count of unread suggestions for quick notification.
Management Sections
Dashboard
Overview and analytics (coming soon)
Personalización
Global theme color management
Sliders
Hero slider configuration
Productos
Product showcase editor
Nosotros
About page content editor
Footer
Footer links and branch information
Páginas Legales
Terms and privacy policy editor
Sugerencias
Customer feedback inbox
Candidatos
Job application management
Concursos
Contest and winner management
Configuración
Site-wide configuration
Slider Management
The Sliders tab (src/lib/components/admin/SlidersTab.svelte) provides full control over homepage hero slides.
Adding a Slide
Click 'Nuevo Slide'
Opens the slide creation form with image upload, text fields, and visual configuration.
Configure Text Content
- Título principal: Main title text (white, 3-5 words)
- Palabra destacada: Highlighted keyword (colored, 1-2 words, max 30 chars)
- Descripción corta: Subtitle text (max 150 chars)
- Etiqueta superior: Optional badge label
Visual Settings
- Posición del texto: Left, Center, or Right alignment
- Color de la palabra: Yellow, Blue, Red, or White for the highlighted word
Slide Configuration Options
- Text Alignment
- Highlight Colors
Editing Slides
Click the edit icon on any existing slide to modify its properties. The edit form appears inline with:- Image replacement
- All text field updates
- Position and color adjustments
Deleting Slides
Click the delete icon to remove a slide. When all slides are deleted, the system reverts to showing 3 default slides on the public site.Product Management
The Productos tab (src/lib/components/admin/ProductosTab.svelte) manages the product showcase section.
Product Structure
Display Types
Features Display
Features Display
Shows product benefits in a vertical list with icons:
- Up to 3-4 features recommended
- Each feature has a title and description
- Icons rotate through BadgeCheck, ShoppingBasket, Truck, Award
- Best for single product highlights
Categories Display
Categories Display
Shows product categories in a 2×2 grid:
- Numbered categories (01, 02, 03, etc.)
- Category name and description
- Best for product line overviews
Image Management
Products support multiple images (recommended: 3 images):- Click the + icon to upload images
- Images auto-rotate on the public site every 4 seconds
- Hover over thumbnails in edit mode to remove images
Theme Customization
See dedicated Theme Customization page for detailed color management.User Profile
The sidebar footer displays the logged-in user:Header Features
The sticky header displays:- Current active tab name
- Search bar (placeholder for future functionality)
- Site status indicator (green dot = active)
Form Handling
All forms use SvelteKit’s progressive enhancement withuse:enhance:
- Loading states during submission
- Automatic page data refresh
- Error handling
- No full page reload
Success Notifications
Successful form submissions show temporary success messages:Responsive Design
The admin dashboard is optimized for desktop use but includes responsive breakpoints:- Mobile/Tablet: Sidebar hidden, hamburger menu (planned)
- Desktop (lg+): Sidebar always visible at 288px width (w-72)
Design System
The admin interface uses a consistent design language:- Font: Work Sans
- Backgrounds: F1F5F9 (slate-100), F8FAFC (slate-50)
- Border Radius: 16px+ (rounded-2xl to rounded-[40px])
- Shadows: Subtle with hover elevation
- Icons: Material Icons
- Transitions: Smooth scale and opacity effects
Material Icons
All icons use Google Material Icons:dashboard,palette,slideshow,inventory_2save,edit,delete,add,closecheck_circle,error,info
