From 4d3d9fd8d65e2161b40bcc3a9c8ff1ac09fa4cd6 Mon Sep 17 00:00:00 2001 From: OpenCode Date: Sat, 16 May 2026 14:07:03 +0100 Subject: [PATCH] Refine contact and trust UI --- CHANGELOG.md | 1 + components/ContactSection.tsx | 8 ++++---- components/Navbar.tsx | 18 ++++++++++-------- components/TrustSection.tsx | 2 +- messages/en.ts | 6 +++--- messages/fr.ts | 10 +++++----- 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 505fc90..6dc00dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ All notable changes to the New Optic website will be documented in this file. ### Changed +- Refined contact and trust UI: stat labels are now accented above values, French WhatsApp CTA says "Discuter sur WhatsApp", hours information is emphasized, and mobile navbar shows WhatsApp without opening the menu. - Updated customer-corrected business facts: New Optic is active since around 2004, does not offer eye exams, and offers contact lenses plus colored contact lenses. - Optimized mobile rendering by disabling heavy blur, fixed backgrounds, ambient animations, and WebGL glass below desktop widths. - Changed mobile CSS to reference only the compressed mobile background by default, keeping the full PNG desktop-only. diff --git a/components/ContactSection.tsx b/components/ContactSection.tsx index 14ad297..31c3778 100644 --- a/components/ContactSection.tsx +++ b/components/ContactSection.tsx @@ -29,7 +29,7 @@ export default function ContactSection({ t, whatsappUrl }: { t: Messages; whatsa } /> } /> } wide /> - } /> + } wide accent /> @@ -48,14 +48,14 @@ export default function ContactSection({ t, whatsappUrl }: { t: Messages; whatsa ); } -function Info({ label, value, icon, wide = false }: { label: string; value: string; icon: React.ReactNode; wide?: boolean }) { +function Info({ label, value, icon, wide = false, accent = false }: { label: string; value: string; icon: React.ReactNode; wide?: boolean; accent?: boolean }) { return ( -
+
{icon}

{label}

-

{value}

+

{value}

); } diff --git a/components/Navbar.tsx b/components/Navbar.tsx index ca80227..2a1d134 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -24,12 +24,12 @@ export default function Navbar({ locale, onLocaleChange, t, whatsappUrl }: { loc return (
-
- - {t.nav.cta} -
) : null} diff --git a/components/TrustSection.tsx b/components/TrustSection.tsx index 1ea5a2d..8740281 100644 --- a/components/TrustSection.tsx +++ b/components/TrustSection.tsx @@ -11,8 +11,8 @@ export default function TrustSection({ t }: { t: Messages }) { {t.trust.stats.map((stat) => ( +

{stat.label}

{stat.value}

-

{stat.label}

))}
diff --git a/messages/en.ts b/messages/en.ts index 303c457..8c78388 100644 --- a/messages/en.ts +++ b/messages/en.ts @@ -68,9 +68,9 @@ export const en = { eyebrow: "Reputation", title: "A neighborhood optician with lasting standards.", stats: [ - { value: "2004", label: "local presence since around" }, - { value: "100%", label: "authentic frames" }, - { value: "360°", label: "guidance, lenses, frames and support" } + { value: "2004", label: "Local presence since around" }, + { value: "100%", label: "Authentic frames" }, + { value: "360°", label: "Guidance, lenses, frames and support" } ], body: "No exaggerated claims. New Optic earns trust through guidance, consistent service and a selection of authentic products." }, diff --git a/messages/fr.ts b/messages/fr.ts index 786a202..58246eb 100644 --- a/messages/fr.ts +++ b/messages/fr.ts @@ -68,9 +68,9 @@ export const fr = { eyebrow: "Reputation", title: "Un opticien de quartier avec une exigence durable.", stats: [ - { value: "2004", label: "presence locale depuis autour de" }, - { value: "100%", label: "montures originales" }, - { value: "360°", label: "conseil, verres, montures et suivi" } + { value: "2004", label: "Présence locale depuis autour de" }, + { value: "100%", label: "Montures originales" }, + { value: "360°", label: "Conseil, verres, montures et suivi" } ], body: "Pas de promesses exagérées. New Optic construit la relation par le conseil, la régularité du service et une sélection de produits authentiques." }, @@ -78,7 +78,7 @@ export const fr = { eyebrow: "Contact", title: "Passez en magasin ou contactez-nous directement.", body: "Une question sur vos verres, une reparation ou une nouvelle monture ? Envoyez un message WhatsApp, appelez, ou venez nous voir a Massira 1, Temara.", - whatsapp: "Ecrire sur WhatsApp", + whatsapp: "Discuter sur WhatsApp", call: "Appeler maintenant", visit: "Ouvrir l'itineraire", qr: "Scannez pour ouvrir l'adresse", @@ -86,7 +86,7 @@ export const fr = { whatsappLabel: "WhatsApp", addressLabel: "Adresse", hoursLabel: "Horaires", - hoursValue: "Horaires non publies en ligne. Contactez le magasin avant de vous deplacer.", + hoursValue: "Horaires non publiés en ligne. Contactez le magasin avant de vous déplacer.", whatsappMessage: "Bonjour New Optic, je souhaite avoir des informations sur vos lunettes et services." }, footer: {