Taller Perú is a professional website for a specialized automotive garage in Las Palmas. The platform combines an intuitive client interface to view services and promotions with a powerful admin panel to dynamically manage promotional offers. This project demonstrates complete content management with advanced image optimization.
Secure login (email/password, bcrypt hash) with real-time dashboard showing: ✅ Total promotions | 🔥 Active | 📅 Upcoming | 🗑️ Expired
Create, edit, delete offers. Intuitive interface with:
Champs : Título, Descripción, Imagen (JPG/PNG/GIF/WebP max 5MB), Fecha de Inicio/Fin (date pickers), Reducción optionnelle. Boutons : "Agregar Promoción" et "Volver al Dashboard"
Compression légère (200px/500px) avec image-optimizer.js.
BLOB MySQL, lazy loading, contrôleurs cache optimisés.
Dates flexibles avec archivage auto. Programmation à l'avance des promotions. Affichage dynamique actives/à venir/expirées.
PDO préparées (SQL injection). Hash bcrypt. Sessions sécurisées. Service Worker. Redirection admin protégée. Indexes base.
Utilisation de PHP avec PDO pour requêtes sécurisées. Classes de contrôleurs spécialisées pour chaque fonctionnalité. Architecture modulaire facilitant la maintenance et l'évolution.
Fichiers de migration SQL disponibles :
migration_discount.sql - Table réductionsmigration_image_cache.sql - Cache images
Utilisation de image-optimizer.js pour optimisation légère des images de promotions.
Compression automatique en 2 résolutions : thumbnail (200px) et medium (500px).
Contrôleurs : image_production.php (affichage) et image_cache.php (cache gestion).
Lazy loading pour améliorer performance sur mobiles.
JavaScript Validation on the client side for immediate UX.
Server Processing with process_contact.php.
HTML escaping of inputs for security.