Bob AI: Added English language switch button to layout
This commit is contained in:
@@ -4,6 +4,7 @@ import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot";
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import { StyleProvider } from "@/components/ui/StyleProvider";
|
||||
import Button from "@/components/ui/Button";
|
||||
|
||||
export default function Layout() {
|
||||
const navItems = [
|
||||
@@ -52,6 +53,9 @@ export default function Layout() {
|
||||
<main className="flex-grow">
|
||||
<Outlet />
|
||||
</main>
|
||||
<div className="fixed bottom-6 right-6 z-50">
|
||||
<Button text="EN" variant="secondary" className="rounded-full shadow-lg px-4 py-2 font-bold" />
|
||||
</div>
|
||||
<SectionErrorBoundary name="footer">
|
||||
<FooterSimple
|
||||
brand="Taller los Bricio"
|
||||
|
||||
@@ -1,199 +1,33 @@
|
||||
import AboutMediaOverlay from '@/components/sections/about/AboutMediaOverlay';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion';
|
||||
import FeaturesBorderGlow from '@/components/sections/features/FeaturesBorderGlow';
|
||||
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||
import MetricsIconCards from '@/components/sections/metrics/MetricsIconCards';
|
||||
import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards';
|
||||
import { Award, CheckCircle, Droplet, Users, Wrench, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
// AUTO-GENERATED shell by per-section-migrate.
|
||||
// Section bodies live in ./<PageBase>/sections/<X>.tsx. Edit the section
|
||||
// files directly. Non-block content (wrappers, non-inlinable sections) is
|
||||
// preserved inline; extracted section blocks become <XSection/> refs.
|
||||
|
||||
export default function HomePage() {
|
||||
import React from 'react';
|
||||
import HeroSection from './HomePage/sections/Hero';
|
||||
import AboutSection from './HomePage/sections/About';
|
||||
import ServicesSection from './HomePage/sections/Services';
|
||||
import MetricsSection from './HomePage/sections/Metrics';
|
||||
import TestimonialsSection from './HomePage/sections/Testimonials';
|
||||
import FaqSection from './HomePage/sections/Faq';
|
||||
import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroBillboardCarousel
|
||||
tag="Expertos en Mecánica"
|
||||
title="Taller los Bricio - Soluciones Automotrices"
|
||||
description="Tu coche en las mejores manos. Servicio integral de reparación, mantenimiento y diagnóstico para tu vehículo."
|
||||
primaryButton={{
|
||||
text: "Agenda una cita",
|
||||
href: "#contact",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Ver servicios",
|
||||
href: "#services",
|
||||
}}
|
||||
items={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/car-mechanic-working-laptop-auto-repair-shop_637285-12727.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/car-repairmen-using-laptop-while-doing-car-engine-diagnostic-auto-repair-shop_637285-4273.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<>
|
||||
<HeroSection />
|
||||
|
||||
<div id="about" data-section="about">
|
||||
<SectionErrorBoundary name="about">
|
||||
<AboutMediaOverlay
|
||||
tag="Nuestra Historia"
|
||||
title="Compromiso con la excelencia"
|
||||
description="Con más de 20 años de experiencia, Taller los Bricio se ha consolidado como referente local en mecánica automotriz, priorizando la honestidad y la calidad técnica en cada reparación."
|
||||
imageSrc="http://img.b2bpic.net/free-photo/happy-african-american-car-repairman-greeting-with-male-customer-auto-repair-shop_637285-2425.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<AboutSection />
|
||||
|
||||
<div id="services" data-section="services">
|
||||
<SectionErrorBoundary name="services">
|
||||
<FeaturesBorderGlow
|
||||
tag="Nuestros Servicios"
|
||||
title="Mecánica general y especializada"
|
||||
description="Ofrecemos una amplia gama de soluciones para mantener tu vehículo funcionando a la perfección."
|
||||
features={[
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "Mecánica General",
|
||||
description: "Reparación de motor, frenos, suspensión y transmisiones.",
|
||||
},
|
||||
{
|
||||
icon: Zap,
|
||||
title: "Diagnóstico Electrónico",
|
||||
description: "Detección precisa de fallas mediante escáner avanzado.",
|
||||
},
|
||||
{
|
||||
icon: Droplet,
|
||||
title: "Mantenimiento Preventivo",
|
||||
description: "Cambio de aceite, filtros y chequeos periódicos de seguridad.",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ServicesSection />
|
||||
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsIconCards
|
||||
tag="Logros"
|
||||
title="Calidad que nos avala"
|
||||
description="Resultados que hablan por nuestro trabajo diario."
|
||||
metrics={[
|
||||
{
|
||||
icon: CheckCircle,
|
||||
title: "Vehículos reparados",
|
||||
value: "5000+",
|
||||
},
|
||||
{
|
||||
icon: Award,
|
||||
title: "Años de experiencia",
|
||||
value: "20+",
|
||||
},
|
||||
{
|
||||
icon: Users,
|
||||
title: "Clientes satisfechos",
|
||||
value: "98%",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<MetricsSection />
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialRatingCards
|
||||
tag="Reseñas"
|
||||
title="Lo que dicen nuestros clientes"
|
||||
description="Tu satisfacción es nuestra mejor publicidad."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Carlos M.",
|
||||
role: "Cliente frecuente",
|
||||
quote: "Excelente servicio, honestos y muy profesionales con mis reparaciones.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/he-is-confident-small-business-owner_637285-9324.jpg",
|
||||
},
|
||||
{
|
||||
name: "Laura G.",
|
||||
role: "Cliente nuevo",
|
||||
quote: "Resolvieron una falla que otros no pudieron detectar. Muy recomendado.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-using-mobile-phone_1170-1193.jpg",
|
||||
},
|
||||
{
|
||||
name: "Roberto S.",
|
||||
role: "Flotilla",
|
||||
quote: "Siempre cumplen con los tiempos de entrega pactados.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-car-mechanic-auto-repair-shop-looking-camera_637285-7794.jpg",
|
||||
},
|
||||
{
|
||||
name: "Ana L.",
|
||||
role: "Cliente frecuente",
|
||||
quote: "Precios justos y atención amable. Confianza total.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-auto-repairman-pulling-rack-with-car-tires-looking-camera-workshop_637285-7542.jpg",
|
||||
},
|
||||
{
|
||||
name: "José R.",
|
||||
role: "Cliente fiel",
|
||||
quote: "Taller de primera, mantienen mi auto como nuevo desde hace años.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-pretty-delivery-woman-uniform-holds-hands-open-isolated-orange-wall_141793-65954.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<TestimonialsSection />
|
||||
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqTabbedAccordion
|
||||
tag="Dudas frecuentes"
|
||||
title="Preguntas habituales"
|
||||
categories={[
|
||||
{
|
||||
name: "General",
|
||||
items: [
|
||||
{
|
||||
question: "¿Requieren cita previa?",
|
||||
answer: "Es recomendable para garantizar disponibilidad, pero atendemos emergencias.",
|
||||
},
|
||||
{
|
||||
question: "¿Dan garantía?",
|
||||
answer: "Sí, garantizamos todas nuestras reparaciones y refacciones instaladas.",
|
||||
},
|
||||
{
|
||||
question: "¿Qué formas de pago aceptan?",
|
||||
answer: "Efectivo, transferencia bancaria y tarjetas de crédito/débito.",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
description="Respondemos a las inquietudes más comunes de nuestros clientes."
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<FaqSection />
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="Contacto"
|
||||
text="¿Necesitas una reparación? Contáctanos hoy para un presupuesto personalizado."
|
||||
primaryButton={{
|
||||
text: "WhatsApp",
|
||||
href: "https://wa.me/521234567890",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Llamar ahora",
|
||||
href: "tel:+521234567890",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ContactSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
21
src/pages/HomePage/sections/About.tsx
Normal file
21
src/pages/HomePage/sections/About.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "about" section.
|
||||
|
||||
import React from 'react';
|
||||
import AboutMediaOverlay from '@/components/sections/about/AboutMediaOverlay';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function AboutSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="about" data-section="about">
|
||||
<SectionErrorBoundary name="about">
|
||||
<AboutMediaOverlay
|
||||
tag="Nuestra Historia"
|
||||
title="Compromiso con la excelencia"
|
||||
description="Con más de 20 años de experiencia, Taller los Bricio se ha consolidado como referente local en mecánica automotriz, priorizando la honestidad y la calidad técnica en cada reparación."
|
||||
imageSrc="http://img.b2bpic.net/free-photo/happy-african-american-car-repairman-greeting-with-male-customer-auto-repair-shop_637285-2425.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
27
src/pages/HomePage/sections/Contact.tsx
Normal file
27
src/pages/HomePage/sections/Contact.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "contact" section.
|
||||
|
||||
import React from 'react';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ContactSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="Contacto"
|
||||
text="¿Necesitas una reparación? Contáctanos hoy para un presupuesto personalizado."
|
||||
primaryButton={{
|
||||
text: "WhatsApp",
|
||||
href: "https://wa.me/521234567890",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Llamar ahora",
|
||||
href: "tel:+521234567890",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
39
src/pages/HomePage/sections/Faq.tsx
Normal file
39
src/pages/HomePage/sections/Faq.tsx
Normal file
@@ -0,0 +1,39 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "faq" section.
|
||||
|
||||
import React from 'react';
|
||||
import FaqTabbedAccordion from '@/components/sections/faq/FaqTabbedAccordion';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function FaqSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqTabbedAccordion
|
||||
tag="Dudas frecuentes"
|
||||
title="Preguntas habituales"
|
||||
categories={[
|
||||
{
|
||||
name: "General",
|
||||
items: [
|
||||
{
|
||||
question: "¿Requieren cita previa?",
|
||||
answer: "Es recomendable para garantizar disponibilidad, pero atendemos emergencias.",
|
||||
},
|
||||
{
|
||||
question: "¿Dan garantía?",
|
||||
answer: "Sí, garantizamos todas nuestras reparaciones y refacciones instaladas.",
|
||||
},
|
||||
{
|
||||
question: "¿Qué formas de pago aceptan?",
|
||||
answer: "Efectivo, transferencia bancaria y tarjetas de crédito/débito.",
|
||||
},
|
||||
],
|
||||
},
|
||||
]}
|
||||
description="Respondemos a las inquietudes más comunes de nuestros clientes."
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
36
src/pages/HomePage/sections/Hero.tsx
Normal file
36
src/pages/HomePage/sections/Hero.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "hero" section.
|
||||
|
||||
import React from 'react';
|
||||
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function HeroSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroBillboardCarousel
|
||||
tag="Expertos en Mecánica"
|
||||
title="Taller los Bricio - Soluciones Automotrices"
|
||||
description="Tu coche en las mejores manos. Servicio integral de reparación, mantenimiento y diagnóstico para tu vehículo."
|
||||
primaryButton={{
|
||||
text: "Agenda una cita",
|
||||
href: "#contact",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Ver servicios",
|
||||
href: "#services",
|
||||
}}
|
||||
items={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/car-mechanic-working-laptop-auto-repair-shop_637285-12727.jpg",
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/car-repairmen-using-laptop-while-doing-car-engine-diagnostic-auto-repair-shop_637285-4273.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
38
src/pages/HomePage/sections/Metrics.tsx
Normal file
38
src/pages/HomePage/sections/Metrics.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "metrics" section.
|
||||
|
||||
import React from 'react';
|
||||
import MetricsIconCards from '@/components/sections/metrics/MetricsIconCards';
|
||||
import { Award, CheckCircle, Droplet, Users, Wrench, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function MetricsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsIconCards
|
||||
tag="Logros"
|
||||
title="Calidad que nos avala"
|
||||
description="Resultados que hablan por nuestro trabajo diario."
|
||||
metrics={[
|
||||
{
|
||||
icon: CheckCircle,
|
||||
title: "Vehículos reparados",
|
||||
value: "5000+",
|
||||
},
|
||||
{
|
||||
icon: Award,
|
||||
title: "Años de experiencia",
|
||||
value: "20+",
|
||||
},
|
||||
{
|
||||
icon: Users,
|
||||
title: "Clientes satisfechos",
|
||||
value: "98%",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
38
src/pages/HomePage/sections/Services.tsx
Normal file
38
src/pages/HomePage/sections/Services.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "services" section.
|
||||
|
||||
import React from 'react';
|
||||
import FeaturesBorderGlow from '@/components/sections/features/FeaturesBorderGlow';
|
||||
import { Award, CheckCircle, Droplet, Users, Wrench, Zap } from "lucide-react";
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ServicesSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="services" data-section="services">
|
||||
<SectionErrorBoundary name="services">
|
||||
<FeaturesBorderGlow
|
||||
tag="Nuestros Servicios"
|
||||
title="Mecánica general y especializada"
|
||||
description="Ofrecemos una amplia gama de soluciones para mantener tu vehículo funcionando a la perfección."
|
||||
features={[
|
||||
{
|
||||
icon: Wrench,
|
||||
title: "Mecánica General",
|
||||
description: "Reparación de motor, frenos, suspensión y transmisiones.",
|
||||
},
|
||||
{
|
||||
icon: Zap,
|
||||
title: "Diagnóstico Electrónico",
|
||||
description: "Detección precisa de fallas mediante escáner avanzado.",
|
||||
},
|
||||
{
|
||||
icon: Droplet,
|
||||
title: "Mantenimiento Preventivo",
|
||||
description: "Cambio de aceite, filtros y chequeos periódicos de seguridad.",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
57
src/pages/HomePage/sections/Testimonials.tsx
Normal file
57
src/pages/HomePage/sections/Testimonials.tsx
Normal file
@@ -0,0 +1,57 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "testimonials" section.
|
||||
|
||||
import React from 'react';
|
||||
import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function TestimonialsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialRatingCards
|
||||
tag="Reseñas"
|
||||
title="Lo que dicen nuestros clientes"
|
||||
description="Tu satisfacción es nuestra mejor publicidad."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Carlos M.",
|
||||
role: "Cliente frecuente",
|
||||
quote: "Excelente servicio, honestos y muy profesionales con mis reparaciones.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/he-is-confident-small-business-owner_637285-9324.jpg",
|
||||
},
|
||||
{
|
||||
name: "Laura G.",
|
||||
role: "Cliente nuevo",
|
||||
quote: "Resolvieron una falla que otros no pudieron detectar. Muy recomendado.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-using-mobile-phone_1170-1193.jpg",
|
||||
},
|
||||
{
|
||||
name: "Roberto S.",
|
||||
role: "Flotilla",
|
||||
quote: "Siempre cumplen con los tiempos de entrega pactados.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-car-mechanic-auto-repair-shop-looking-camera_637285-7794.jpg",
|
||||
},
|
||||
{
|
||||
name: "Ana L.",
|
||||
role: "Cliente frecuente",
|
||||
quote: "Precios justos y atención amable. Confianza total.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-auto-repairman-pulling-rack-with-car-tires-looking-camera-workshop_637285-7542.jpg",
|
||||
},
|
||||
{
|
||||
name: "José R.",
|
||||
role: "Cliente fiel",
|
||||
quote: "Taller de primera, mantienen mi auto como nuevo desde hace años.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-pretty-delivery-woman-uniform-holds-hands-open-isolated-orange-wall_141793-65954.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user