SEO upgrade
This commit is contained in:
parent
f036ce8dab
commit
e2d8945b83
102
TODO-SEO.md
Normal file
102
TODO-SEO.md
Normal file
@ -0,0 +1,102 @@
|
||||
# TODO SEO — myinfomate-landing
|
||||
|
||||
Liste des améliorations SEO à réaliser, classées par impact décroissant.
|
||||
|
||||
---
|
||||
|
||||
## 1. Multilingue avec hreflang (impact: ÉLEVÉ) ✅
|
||||
|
||||
Le site a 4 langues (FR/EN/NL/DE) mais tout est servi sur la même URL avec `lang="fr"` figé. Google n'indexe qu'une seule version → on rate les recherches NL et DE.
|
||||
|
||||
- [x] Mettre en place un routing par langue : `/fr`, `/en`, `/nl`, `/de` (ou middleware Next)
|
||||
- [x] Ajouter `metadata.alternates.languages` dans `layout.tsx` et `[segment]/page.tsx`
|
||||
- [x] Rendre `<html lang>` dynamique selon la route
|
||||
- [x] Adapter le `sitemap.ts` pour générer les URLs de chaque langue
|
||||
- [x] Vérifier que les balises `<link rel="alternate" hreflang="x-default">` pointent vers la version par défaut
|
||||
|
||||
---
|
||||
|
||||
## 2. Page d'accueil en Server Component (impact: MOYEN)
|
||||
|
||||
`src/app/page.tsx` est marqué `'use client'` → perte de perfs (FCP/LCP, signaux de ranking).
|
||||
|
||||
- [ ] Convertir `page.tsx` en Server Component
|
||||
- [ ] Extraire les parties interactives (menu langue, `Reveal`, etc.) dans des sous-composants client
|
||||
- [ ] Vérifier l'amélioration via Lighthouse avant/après
|
||||
|
||||
---
|
||||
|
||||
## 3. JSON-LD sur la home (impact: MOYEN)
|
||||
|
||||
Schema.org est présent sur les segments mais pas sur la home.
|
||||
|
||||
- [ ] Ajouter un schéma `Organization` (Unov) avec `logo`, `url`, `sameAs` (LinkedIn, etc.)
|
||||
- [ ] Ajouter un schéma `WebSite`
|
||||
- [ ] Ajouter un schéma `SoftwareApplication` pour MyInfoMate (avec `aggregateRating` si avis disponibles)
|
||||
|
||||
---
|
||||
|
||||
## 4. OG image dédiée (impact: MOYEN)
|
||||
|
||||
Actuellement `/myinfomate-logo.png` est utilisé comme image Open Graph → mauvais rendu sur LinkedIn / WhatsApp / Slack.
|
||||
|
||||
- [ ] Créer une vraie image 1200×630 (titre + visuel produit)
|
||||
- [ ] Idéalement, utiliser `opengraph-image.tsx` (Next 16) pour génération dynamique
|
||||
- [ ] Faire une variante par segment (musées, offices tourisme, etc.)
|
||||
|
||||
---
|
||||
|
||||
## 5. Title et meta description plus stratégiques (impact: MOYEN)
|
||||
|
||||
Le title actuel ("MyInfoMate | La technologie au service de l'expérience visiteur") fait ~63 chars et manque de mots-clés forts.
|
||||
|
||||
- [ ] Réécrire le title de la home avec mots-clés ciblés (ex: "MyInfoMate — Guide visiteur digital pour musées, sites & événements")
|
||||
- [ ] Réviser titles + descriptions de chaque segment pour viser des requêtes précises (ex: "application musée", "kiosk tactile musée", "guide visiteur tablette")
|
||||
- [ ] Garder titles < 60 chars et descriptions ~155 chars
|
||||
|
||||
---
|
||||
|
||||
## 6. Contenu long-tail (impact: ÉLEVÉ à long terme)
|
||||
|
||||
Aujourd'hui : 6 segments + 2 légales = peu de surface SEO.
|
||||
|
||||
- [ ] Créer une section `/cas-clients/[slug]` (un par client référent)
|
||||
- [ ] Créer une section `/blog/[slug]` ou `/ressources/[slug]` avec 3-5 articles fondateurs :
|
||||
- [ ] "Audioguide vs application visiteur : que choisir en 2026 ?"
|
||||
- [ ] "RGPD et tracking visiteur dans un musée"
|
||||
- [ ] "ROI d'une application visiteur pour un site culturel"
|
||||
- [ ] "Comment digitaliser un parcours de visite"
|
||||
- [ ] "Kiosk tactile vs BYOD : avantages et limites"
|
||||
- [ ] Créer des pages comparatives (très efficace B2B) :
|
||||
- [ ] `/comparatif/myinfomate-vs-smartify`
|
||||
- [ ] `/comparatif/myinfomate-vs-stqry`
|
||||
- [ ] `/comparatif/myinfomate-vs-orpheo`
|
||||
|
||||
---
|
||||
|
||||
## 7. Détails techniques (impact: FAIBLE à MOYEN)
|
||||
|
||||
- [ ] Vérifier que toutes les `<Image>` ont un `alt` descriptif (pas juste "logo")
|
||||
- [ ] S'assurer qu'il y a un H1 unique et explicite par page
|
||||
- [ ] Ajouter `priority` sur l'image hero (amélioration LCP)
|
||||
- [ ] Passer la font Material Symbols de `display=block` à `display=swap` (évite le blocage de rendu)
|
||||
- [ ] Vérifier le score PageSpeed/Lighthouse (cible: > 90 sur mobile)
|
||||
- [ ] Soumettre le sitemap dans Google Search Console et Bing Webmaster Tools
|
||||
- [ ] Mettre en place un suivi des positions (Search Console suffit pour démarrer)
|
||||
|
||||
---
|
||||
|
||||
## 8. Backlinks / off-site (impact: ÉLEVÉ, hors code)
|
||||
|
||||
Le SEO on-page sera bientôt solide ; le levier suivant est le netlinking.
|
||||
|
||||
- [ ] Référencement dans les annuaires culture/tech belges :
|
||||
- [ ] Digital Wallonia
|
||||
- [ ] AWEX
|
||||
- [ ] hub.brussels
|
||||
- [ ] Citations dans la presse spécialisée musées :
|
||||
- [ ] CLIC France
|
||||
- [ ] ICOM
|
||||
- [ ] Museumnext
|
||||
- [ ] Demander un lien retour depuis les sites des clients référents
|
||||
- [ ] Profil LinkedIn d'entreprise actif (publications régulières → trafic indirect)
|
||||
@ -1,8 +1,12 @@
|
||||
import type { NextConfig } from "next";
|
||||
import path from "node:path";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
reactCompiler: true,
|
||||
turbopack: {
|
||||
root: path.resolve(__dirname),
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { resolveImage } from '@/data/stitch-images';
|
||||
import translations, { Language } from '@/data/translations';
|
||||
|
||||
@ -14,6 +15,7 @@ const MODULE_META = [
|
||||
{ id: 'offline', icon: 'download_for_offline', theme: 'rose' },
|
||||
{ id: 'web', icon: 'public', theme: 'rose' },
|
||||
{ id: 'stats', icon: 'monitoring', theme: 'rose' },
|
||||
{ id: 'escapegame', icon: 'explore', theme: 'rose' },
|
||||
];
|
||||
|
||||
const LANGUAGES: { code: Language; label: string; name: string }[] = [
|
||||
@ -53,7 +55,11 @@ function Reveal({ children, delay = 0, className = '' }: { children: React.React
|
||||
);
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
export default function Home({ lang }: { lang: Language }) {
|
||||
const router = useRouter();
|
||||
const setLang = (next: Language) => {
|
||||
if (next !== lang) router.push(`/${next}`);
|
||||
};
|
||||
const [formData, setFormData] = useState({
|
||||
firstName: '',
|
||||
lastName: '',
|
||||
@ -64,7 +70,6 @@ export default function Home() {
|
||||
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle');
|
||||
const [activeModule, setActiveModule] = useState(0);
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||
const [lang, setLang] = useState<Language>('fr');
|
||||
const [isLangOpen, setIsLangOpen] = useState(false);
|
||||
const langDropdownRef = useRef<HTMLDivElement>(null);
|
||||
const [navVisible, setNavVisible] = useState(true);
|
||||
@ -100,11 +105,6 @@ export default function Home() {
|
||||
return () => { document.body.style.overflow = 'auto'; };
|
||||
}, [isMenuOpen]);
|
||||
|
||||
// Update html lang attribute
|
||||
useEffect(() => {
|
||||
document.documentElement.lang = lang;
|
||||
}, [lang]);
|
||||
|
||||
// Close lang dropdown on outside click
|
||||
useEffect(() => {
|
||||
const handler = (e: MouseEvent) => {
|
||||
@ -817,58 +817,82 @@ export default function Home() {
|
||||
</Reveal>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
<Reveal delay={0}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/musees`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-accent-violet group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">museum</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item1Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item1Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item1Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item1Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
<Reveal delay={60}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/offices-tourisme`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-primary group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">travel_explore</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item2Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item2Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item2Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item2Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
<Reveal delay={120}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/parcs-naturels`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-emerald-500 group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">park</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item3Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item3Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item3Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item3Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
<Reveal delay={180}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/hotels-loisirs`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-accent-orange group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">hotel</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item4Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item4Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item4Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item4Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
<Reveal delay={240}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/evenements`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-rose-500 group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">festival</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item5Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item5Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item5Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item5Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
<Reveal delay={300}>
|
||||
<div className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<a href={`/${lang}/education-culture`} className="group flex flex-col items-center text-center p-8 rounded-3xl border border-slate-100 hover:border-primary/30 hover:shadow-lg hover:shadow-primary/5 transition-all">
|
||||
<div className="w-20 h-20 icon-circle mb-5 text-indigo-500 group-hover:scale-110 transition-transform">
|
||||
<span className="material-symbols-outlined text-4xl">school</span>
|
||||
</div>
|
||||
<h4 className="text-xl font-extrabold mb-2 text-slate-900">{t.audience.item6Title}</h4>
|
||||
<p className="text-slate-500 text-sm leading-relaxed">{t.audience.item6Desc}</p>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-4">{t.audience.item6Desc}</p>
|
||||
<span className="text-xs font-extrabold text-primary uppercase tracking-widest flex items-center gap-1 group-hover:gap-2 transition-all">
|
||||
{t.audience.item6Cta}
|
||||
<span className="material-symbols-outlined text-sm">arrow_forward</span>
|
||||
</span>
|
||||
</a>
|
||||
</Reveal>
|
||||
</div>
|
||||
</div>
|
||||
@ -885,27 +909,24 @@ export default function Home() {
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6 items-stretch">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-6 items-stretch pt-6">
|
||||
|
||||
{/* Starter */}
|
||||
{/* Essentiel */}
|
||||
<Reveal delay={0}>
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border border-slate-200 p-8 shadow-sm hover:shadow-md transition-shadow">
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border border-slate-200 p-8 shadow-sm hover:shadow-md transition-shadow relative">
|
||||
<div className="absolute -top-4 left-1/2 -translate-x-1/2">
|
||||
<span className="bg-slate-800 text-white text-xs font-extrabold px-4 py-1.5 rounded-full uppercase tracking-wider whitespace-nowrap">{t.pricing.comingSoon}</span>
|
||||
</div>
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Starter</p>
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Essentiel</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-xs text-slate-400 mb-1">{t.pricing.startingFrom}</span>
|
||||
<span className="text-4xl font-extrabold text-slate-900">€69</span>
|
||||
<span className="text-4xl font-extrabold text-slate-900">€39</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva}</p>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva} · {t.pricing.noCommitment}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[
|
||||
t.pricing.features.mobileApp,
|
||||
t.pricing.features.kioskApp,
|
||||
t.pricing.features.backoffice,
|
||||
t.pricing.features.sections,
|
||||
].map((f) => (
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
@ -913,14 +934,13 @@ export default function Home() {
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
2 GB {t.pricing.features.storage}
|
||||
1 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[
|
||||
t.pricing.features.autoTranslation,
|
||||
t.pricing.features.pushNotif,
|
||||
t.pricing.features.stats,
|
||||
t.pricing.features.ai,
|
||||
].map((f) => (
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} — {t.pricing.features.statsBasicLabel}
|
||||
</li>
|
||||
{[t.pricing.features.nativeApp, t.pricing.features.offlineBeacons, t.pricing.features.pushNotif, t.pricing.features.ai, t.pricing.features.autoTranslation].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-400">
|
||||
<span className="material-symbols-outlined text-slate-300 text-base shrink-0">cancel</span>
|
||||
{f}
|
||||
@ -933,28 +953,23 @@ export default function Home() {
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Standard */}
|
||||
<Reveal delay={80}>
|
||||
{/* Pro */}
|
||||
<Reveal delay={60}>
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border-2 border-primary p-8 shadow-xl shadow-primary/10 relative">
|
||||
<div className="absolute -top-4 left-1/2 -translate-x-1/2">
|
||||
<span className="bg-primary text-slate-900 text-xs font-extrabold px-4 py-1.5 rounded-full uppercase tracking-wider">{t.pricing.recommended}</span>
|
||||
</div>
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Standard</p>
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Pro</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-xs text-slate-400 mb-1">{t.pricing.startingFrom}</span>
|
||||
<span className="text-4xl font-extrabold text-slate-900">€99</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva}</p>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.setupFeeNote}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[
|
||||
t.pricing.features.mobileApp,
|
||||
t.pricing.features.kioskApp,
|
||||
t.pricing.features.backoffice,
|
||||
t.pricing.features.sections,
|
||||
].map((f) => (
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.nativeApp, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
@ -962,12 +977,9 @@ export default function Home() {
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
10 GB {t.pricing.features.storage}
|
||||
15 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[
|
||||
t.pricing.features.autoTranslation,
|
||||
t.pricing.features.pushNotif,
|
||||
].map((f) => (
|
||||
{[t.pricing.features.offlineBeacons, t.pricing.features.pushNotif].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
@ -975,12 +987,14 @@ export default function Home() {
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} ({t.pricing.features.statsBasic})
|
||||
{t.pricing.features.stats} — {t.pricing.features.statsBasicLabel}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.ai} — 500 {t.pricing.features.reqPerMonth}
|
||||
{[t.pricing.features.statsAdvancedFeature, t.pricing.features.ai, t.pricing.features.autoTranslation].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-400">
|
||||
<span className="material-symbols-outlined text-slate-300 text-base shrink-0">cancel</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-primary text-slate-900 font-extrabold text-sm hover:brightness-110 transition-all shadow-lg shadow-primary/20">
|
||||
{t.pricing.ctaStart}
|
||||
@ -988,73 +1002,20 @@ export default function Home() {
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Premium */}
|
||||
<Reveal delay={160}>
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border border-slate-200 p-8 shadow-sm hover:shadow-md transition-shadow">
|
||||
{/* Bundle */}
|
||||
<Reveal delay={120}>
|
||||
<div className="flex flex-col h-full bg-gradient-to-br from-slate-900 to-slate-800 rounded-3xl p-8 shadow-xl">
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Premium</p>
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Bundle</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-xs text-slate-400 mb-1">{t.pricing.startingFrom}</span>
|
||||
<span className="text-4xl font-extrabold text-slate-900">€199</span>
|
||||
<span className="text-4xl font-extrabold text-white">€179</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva}</p>
|
||||
<p className="text-xs text-slate-500 mt-1">{t.pricing.setupFeeNote}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[
|
||||
t.pricing.features.mobileApp,
|
||||
t.pricing.features.kioskApp,
|
||||
t.pricing.features.backoffice,
|
||||
t.pricing.features.sections,
|
||||
].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
50 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[
|
||||
t.pricing.features.autoTranslation,
|
||||
t.pricing.features.pushNotif,
|
||||
].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} ({t.pricing.features.statsAdvanced})
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.ai} — 2 000 {t.pricing.features.reqPerMonth}
|
||||
</li>
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl border-2 border-slate-200 text-slate-700 font-bold text-sm hover:border-primary hover:text-primary transition-all">
|
||||
{t.pricing.ctaStart}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Entreprise */}
|
||||
<Reveal delay={240}>
|
||||
<div className="flex flex-col h-full bg-gradient-to-br from-slate-900 to-slate-800 rounded-3xl p-8 shadow-xl">
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Entreprise</p>
|
||||
<p className="text-3xl font-extrabold text-white">{t.pricing.enterprisePrice}</p>
|
||||
</div>
|
||||
<p className="text-slate-400 text-sm leading-relaxed flex-1 mb-8">{t.pricing.enterpriseDesc}</p>
|
||||
<ul className="space-y-3 mb-8">
|
||||
{[
|
||||
t.pricing.features.mobileApp,
|
||||
t.pricing.features.kioskApp,
|
||||
t.pricing.features.autoTranslation,
|
||||
t.pricing.features.pushNotif,
|
||||
].map((f) => (
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.nativeApp, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
@ -1062,18 +1023,83 @@ export default function Home() {
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.storage} {t.pricing.features.custom}
|
||||
50 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[t.pricing.features.offlineBeacons, t.pricing.features.pushNotif].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.statsAdvancedFeature}
|
||||
</li>
|
||||
<li className="flex items-start gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0 mt-0.5">check_circle</span>
|
||||
<span>
|
||||
{t.pricing.features.ai} — 2 000 {t.pricing.features.reqPerMonth}
|
||||
<span className="block text-xs text-slate-500 mt-0.5">{t.pricing.features.aiNeedMore} → Enterprise</span>
|
||||
</span>
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} {t.pricing.features.custom}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.ai} {t.pricing.features.custom}
|
||||
{t.pricing.features.autoTranslation}
|
||||
</li>
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-white/10 text-white font-bold text-sm hover:bg-white/20 transition-all text-center border border-white/10">
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-white/10 text-white font-bold text-sm hover:bg-white/20 transition-all border border-white/10">
|
||||
{t.pricing.ctaContact}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Enterprise */}
|
||||
<Reveal delay={180}>
|
||||
<div className="flex flex-col h-full bg-gradient-to-br from-violet-950 to-slate-900 rounded-3xl p-8 shadow-xl border border-violet-800/40 relative">
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-violet-400 uppercase tracking-widest mb-2">Enterprise</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-3xl font-extrabold text-white">{t.pricing.enterprisePrice}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-2 leading-relaxed">{t.pricing.enterpriseDesc}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[
|
||||
t.pricing.features.webAndKiosk,
|
||||
t.pricing.features.nativeApp,
|
||||
t.pricing.features.backoffice,
|
||||
t.pricing.features.sections,
|
||||
t.pricing.features.multiSite,
|
||||
].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-violet-400 text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-violet-400 text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.customStorage}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-violet-400 text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.customAiQuota}
|
||||
</li>
|
||||
{[
|
||||
t.pricing.features.statsAdvancedFeature,
|
||||
t.pricing.features.offlineBeacons,
|
||||
t.pricing.features.pushNotif,
|
||||
t.pricing.features.autoTranslation,
|
||||
t.pricing.features.slaEnhanced,
|
||||
t.pricing.features.dedicatedSupport,
|
||||
t.pricing.features.customDev,
|
||||
].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-violet-400 text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-violet-600 text-white font-bold text-sm hover:bg-violet-500 transition-all shadow-lg shadow-violet-900/40">
|
||||
{t.pricing.ctaContact}
|
||||
</button>
|
||||
</div>
|
||||
739
src/app/[lang]/[segment]/SegmentPageClient.tsx
Normal file
739
src/app/[lang]/[segment]/SegmentPageClient.tsx
Normal file
@ -0,0 +1,739 @@
|
||||
'use client';
|
||||
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { resolveImage } from '@/data/stitch-images';
|
||||
import translations, { Language } from '@/data/translations';
|
||||
import type { Segment } from '@/data/segments';
|
||||
|
||||
const LANGUAGES: { code: Language; label: string; name: string }[] = [
|
||||
{ code: 'fr', label: 'FR', name: 'Français' },
|
||||
{ code: 'en', label: 'EN', name: 'English' },
|
||||
{ code: 'nl', label: 'NL', name: 'Nederlands' },
|
||||
{ code: 'de', label: 'DE', name: 'Deutsch' },
|
||||
];
|
||||
|
||||
function Reveal({
|
||||
children,
|
||||
delay = 0,
|
||||
className = '',
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
delay?: number;
|
||||
className?: string;
|
||||
}) {
|
||||
const ref = React.useRef<HTMLDivElement>(null);
|
||||
const [visible, setVisible] = React.useState(false);
|
||||
|
||||
React.useEffect(() => {
|
||||
const el = ref.current;
|
||||
if (!el) return;
|
||||
const observer = new IntersectionObserver(
|
||||
([entry]) => {
|
||||
if (entry.isIntersecting) setVisible(true);
|
||||
},
|
||||
{ threshold: 0.12 }
|
||||
);
|
||||
observer.observe(el);
|
||||
return () => observer.disconnect();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={ref}
|
||||
className={className}
|
||||
style={{
|
||||
opacity: visible ? 1 : 0,
|
||||
transform: visible ? 'translateY(0)' : 'translateY(22px)',
|
||||
transition: `opacity 0.55s ease-out ${delay}ms, transform 0.55s ease-out ${delay}ms`,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function SegmentPageClient({ data, lang }: { data: Segment; lang: Language }) {
|
||||
const router = useRouter();
|
||||
const setLang = (next: Language) => {
|
||||
if (next !== lang) router.push(`/${next}/${data.slug}`);
|
||||
};
|
||||
const [isLangOpen, setIsLangOpen] = useState(false);
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||
const [navVisible, setNavVisible] = useState(true);
|
||||
const [openFaq, setOpenFaq] = useState<number | null>(null);
|
||||
const [formData, setFormData] = useState({ firstName: '', lastName: '', email: '', message: '' });
|
||||
const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle');
|
||||
const langDropdownRef = useRef<HTMLDivElement>(null);
|
||||
const lastScrollY = useRef(0);
|
||||
|
||||
const t = translations[lang];
|
||||
const s = data.translations[lang as keyof typeof data.translations];
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
const currentY = window.scrollY;
|
||||
setNavVisible(currentY < lastScrollY.current || currentY < 10);
|
||||
lastScrollY.current = currentY;
|
||||
};
|
||||
window.addEventListener('scroll', handleScroll, { passive: true });
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
document.body.style.overflow = isMenuOpen ? 'hidden' : 'auto';
|
||||
return () => { document.body.style.overflow = 'auto'; };
|
||||
}, [isMenuOpen]);
|
||||
|
||||
useEffect(() => {
|
||||
const handler = (e: MouseEvent) => {
|
||||
if (langDropdownRef.current && !langDropdownRef.current.contains(e.target as Node)) {
|
||||
setIsLangOpen(false);
|
||||
}
|
||||
};
|
||||
document.addEventListener('mousedown', handler);
|
||||
return () => document.removeEventListener('mousedown', handler);
|
||||
}, []);
|
||||
|
||||
const scrollToContact = (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
document.getElementById('contact')?.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
const scrollToPricing = (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
document.getElementById('pricing')?.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
const handleSubmit = async (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
setStatus('loading');
|
||||
try {
|
||||
const response = await fetch('https://formspree.io/f/xbdaajlo', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||
body: JSON.stringify(formData),
|
||||
});
|
||||
if (response.ok) {
|
||||
setStatus('success');
|
||||
setFormData({ firstName: '', lastName: '', email: '', message: '' });
|
||||
} else {
|
||||
setStatus('error');
|
||||
}
|
||||
} catch {
|
||||
setStatus('error');
|
||||
}
|
||||
};
|
||||
|
||||
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
|
||||
const { name, value } = e.target;
|
||||
setFormData((prev) => ({ ...prev, [name]: value }));
|
||||
};
|
||||
|
||||
return (
|
||||
<main className="bg-slate-50 text-slate-900 selection:bg-primary/30 font-display">
|
||||
|
||||
{/* Navbar */}
|
||||
<header className={`fixed top-0 left-0 right-0 z-50 bg-white/80 backdrop-blur-md border-b border-slate-200 transition-transform duration-300 ${navVisible ? 'translate-y-0' : '-translate-y-full'}`}>
|
||||
<div className="max-w-7xl mx-auto px-6 h-20 flex items-center justify-between">
|
||||
<Link href={`/${lang}`} className="flex items-center gap-3 shrink-0">
|
||||
<Image
|
||||
src={resolveImage('{{DATA:IMAGE:IMAGE_14}}')}
|
||||
alt="MyInfoMate Logo"
|
||||
height={40}
|
||||
width={42}
|
||||
className="h-10 w-auto object-contain"
|
||||
/>
|
||||
<span className="text-xl font-extrabold tracking-tight text-slate-900 hidden lg:block">MyInfoMate</span>
|
||||
</Link>
|
||||
<nav className="hidden lg:flex items-center gap-8">
|
||||
<Link href={`/${lang}#deployment-modes`} className="text-sm font-semibold text-slate-600 hover:text-primary transition-colors">{t.nav.solution}</Link>
|
||||
<Link href={`/${lang}#features`} className="text-sm font-semibold text-slate-600 hover:text-primary transition-colors">{t.nav.features}</Link>
|
||||
<Link href={`/${lang}#ai-assistant`} className="text-sm font-semibold text-slate-600 hover:text-primary transition-colors flex items-center gap-1">
|
||||
<span className="material-symbols-outlined text-primary" style={{ fontSize: '15px' }}>auto_awesome</span>
|
||||
{t.nav.ai}
|
||||
</Link>
|
||||
<Link href={`/${lang}#audience`} className="text-sm font-semibold text-slate-600 hover:text-primary transition-colors">{t.nav.audience}</Link>
|
||||
<button onClick={scrollToPricing} className="text-sm font-semibold text-slate-600 hover:text-primary transition-colors">{t.pricing.sectionLabel}</button>
|
||||
</nav>
|
||||
<div className="flex items-center gap-4">
|
||||
<a href="https://manager.myinfomate.be" className="hidden lg:block text-sm font-bold text-slate-900 hover:text-primary px-4 py-2 transition-colors">
|
||||
{t.nav.login}
|
||||
</a>
|
||||
<button
|
||||
onClick={scrollToContact}
|
||||
className="bg-primary hover:brightness-110 text-slate-900 font-extrabold text-sm px-6 py-3 rounded-full shadow-lg shadow-primary/20 transition-all active:scale-95 hidden sm:block"
|
||||
>
|
||||
{t.nav.demo}
|
||||
</button>
|
||||
<div ref={langDropdownRef} className="relative hidden lg:block">
|
||||
<button
|
||||
onClick={() => setIsLangOpen(!isLangOpen)}
|
||||
className="flex items-center gap-1.5 px-3 py-2 rounded-xl text-sm font-bold text-slate-500 hover:text-slate-900 hover:bg-slate-100 transition-all"
|
||||
>
|
||||
<span className="material-symbols-outlined text-[18px] text-primary">language</span>
|
||||
<span>{lang.toUpperCase()}</span>
|
||||
<span className={`material-symbols-outlined text-[16px] transition-transform duration-200 ${isLangOpen ? 'rotate-180' : ''}`}>keyboard_arrow_down</span>
|
||||
</button>
|
||||
{isLangOpen && (
|
||||
<div className="absolute top-full right-0 mt-2 bg-white border border-slate-100 rounded-2xl shadow-xl overflow-hidden py-1.5 z-50">
|
||||
{LANGUAGES.map((l) => (
|
||||
<button
|
||||
key={l.code}
|
||||
onClick={() => { setLang(l.code); setIsLangOpen(false); }}
|
||||
className={`w-full flex items-center gap-3 px-4 py-2.5 text-left transition-colors ${lang === l.code ? 'text-primary bg-primary/5' : 'text-slate-600 hover:bg-slate-50 hover:text-slate-900'}`}
|
||||
>
|
||||
<span className="text-sm font-black w-7 shrink-0">{l.label}</span>
|
||||
<span className="text-sm text-slate-400 whitespace-nowrap">{l.name}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<button
|
||||
onClick={() => setIsMenuOpen(!isMenuOpen)}
|
||||
className="lg:hidden w-10 h-10 flex items-center justify-center text-slate-600 hover:text-primary transition-colors"
|
||||
>
|
||||
<span className="material-symbols-outlined text-3xl">{isMenuOpen ? 'close' : 'menu'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{/* Mobile Menu */}
|
||||
<div
|
||||
className={`lg:hidden fixed inset-0 bg-slate-900/60 backdrop-blur-sm z-[150] transition-opacity duration-300 ${isMenuOpen ? 'opacity-100 visible' : 'opacity-0 invisible pointer-events-none'}`}
|
||||
onClick={() => setIsMenuOpen(false)}
|
||||
/>
|
||||
<div className={`lg:hidden fixed inset-y-0 right-0 w-[300px] h-screen bg-white z-[200] shadow-2xl transition-transform duration-500 ease-in-out transform ${isMenuOpen ? 'translate-x-0' : 'translate-x-full'}`}>
|
||||
<div className="flex flex-col h-full bg-white">
|
||||
<div className="flex justify-end p-6 border-b border-slate-50">
|
||||
<button onClick={() => setIsMenuOpen(false)} className="w-10 h-10 flex items-center justify-center">
|
||||
<span className="material-symbols-outlined text-3xl font-bold text-slate-900">close</span>
|
||||
</button>
|
||||
</div>
|
||||
<nav className="flex-1 flex flex-col p-8 gap-8 overflow-y-auto">
|
||||
<div className="flex flex-col gap-6">
|
||||
{[
|
||||
{ label: t.mobileMenu.home, href: `/${lang}` },
|
||||
{ label: t.mobileMenu.solution, href: `/${lang}#deployment-modes` },
|
||||
{ label: t.mobileMenu.features, href: `/${lang}#features` },
|
||||
{ label: t.mobileMenu.ai, href: `/${lang}#ai-assistant` },
|
||||
{ label: t.mobileMenu.audience, href: `/${lang}#audience` },
|
||||
{ label: t.pricing.sectionLabel.toUpperCase(), href: '#pricing' },
|
||||
{ label: t.mobileMenu.contact, href: '#contact' },
|
||||
].map((item) => (
|
||||
<a
|
||||
key={item.label}
|
||||
className="text-sm font-bold tracking-[0.2em] text-slate-900 hover:text-primary transition-colors py-3 border-b border-slate-50"
|
||||
href={item.href}
|
||||
onClick={() => setIsMenuOpen(false)}
|
||||
>
|
||||
{item.label}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex flex-col gap-4 pt-4">
|
||||
<div className="flex flex-col gap-2">
|
||||
{LANGUAGES.map((l) => (
|
||||
<button
|
||||
key={l.code}
|
||||
onClick={() => { setLang(l.code); setIsMenuOpen(false); }}
|
||||
className={`flex items-center gap-3 px-4 py-2.5 rounded-xl text-left transition-colors ${lang === l.code ? 'text-primary bg-primary/5 font-bold' : 'text-slate-500'}`}
|
||||
>
|
||||
<span className="text-sm font-black w-7">{l.label}</span>
|
||||
<span className="text-sm">{l.name}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div className="p-8 pt-0">
|
||||
<button
|
||||
onClick={(e) => { scrollToContact(e); setIsMenuOpen(false); }}
|
||||
className="w-full py-4 bg-primary text-slate-900 font-extrabold rounded-2xl"
|
||||
>
|
||||
{t.nav.demo}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="pt-20">
|
||||
|
||||
{/* Breadcrumb */}
|
||||
<div className="max-w-7xl mx-auto px-6 pt-6">
|
||||
<Link href={`/${lang}`} className="inline-flex items-center gap-1 text-sm text-slate-500 hover:text-primary transition-colors">
|
||||
<span className="material-symbols-outlined text-base">arrow_back</span>
|
||||
{s.nav.backLabel}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{/* Hero */}
|
||||
<section className="py-16 lg:py-24 bg-slate-50">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal className="max-w-4xl mx-auto text-center">
|
||||
<span className="inline-flex items-center gap-2 bg-primary/10 text-primary font-extrabold text-xs uppercase tracking-widest px-4 py-2 rounded-full mb-6">
|
||||
<span className="material-symbols-outlined text-sm">museum</span>
|
||||
{s.hero.badge}
|
||||
</span>
|
||||
<h1 className="text-4xl lg:text-6xl font-extrabold text-slate-900 leading-tight mb-6">
|
||||
{s.hero.title}
|
||||
</h1>
|
||||
<p className="text-lg lg:text-xl text-slate-500 mb-10 max-w-2xl mx-auto leading-relaxed">
|
||||
{s.hero.subtitle}
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row gap-4 justify-center">
|
||||
<button
|
||||
onClick={scrollToContact}
|
||||
className="px-8 py-4 bg-primary text-slate-900 font-extrabold rounded-full shadow-xl shadow-primary/30 hover:scale-105 transition-all"
|
||||
>
|
||||
{s.hero.cta}
|
||||
</button>
|
||||
<button
|
||||
onClick={scrollToPricing}
|
||||
className="px-8 py-4 bg-white text-slate-700 font-bold rounded-full border-2 border-slate-200 hover:border-primary hover:text-primary transition-all"
|
||||
>
|
||||
{s.hero.ctaSecondary}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Pain Points */}
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{s.painPoints.label}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900">{s.painPoints.title}</h3>
|
||||
</Reveal>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
||||
{s.painPoints.items.map((item, i) => (
|
||||
<Reveal key={i} delay={i * 80}>
|
||||
<div className="flex flex-col items-center text-center p-8 rounded-3xl bg-slate-50 border border-slate-100">
|
||||
<div className="w-16 h-16 bg-red-50 text-red-400 rounded-2xl flex items-center justify-center mb-5">
|
||||
<span className="material-symbols-outlined text-3xl">{item.icon}</span>
|
||||
</div>
|
||||
<h4 className="text-lg font-extrabold text-slate-900 mb-3">{item.title}</h4>
|
||||
<p className="text-sm text-slate-500 leading-relaxed">{item.desc}</p>
|
||||
</div>
|
||||
</Reveal>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Features */}
|
||||
<section className="py-20 bg-slate-50">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{s.features.label}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900 mb-4">{s.features.title}</h3>
|
||||
<p className="text-slate-500 max-w-xl mx-auto">{s.features.desc}</p>
|
||||
</Reveal>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||||
{s.features.items.map((item, i) => (
|
||||
<Reveal key={i} delay={i * 60}>
|
||||
<div className="flex flex-col bg-white rounded-3xl border border-slate-100 p-8 hover:shadow-lg hover:shadow-primary/5 hover:border-primary/20 transition-all h-full">
|
||||
<div className="w-14 h-14 bg-primary/10 text-primary rounded-2xl flex items-center justify-center mb-5 shrink-0">
|
||||
<span className="material-symbols-outlined text-2xl">{item.icon}</span>
|
||||
</div>
|
||||
<h4 className="text-lg font-extrabold text-slate-900 mb-3">{item.title}</h4>
|
||||
<p className="text-sm text-slate-500 leading-relaxed flex-1 mb-4">{item.desc}</p>
|
||||
<div className="pt-4 border-t border-slate-100">
|
||||
<p className="text-xs text-primary font-bold">
|
||||
<span className="text-slate-400 font-normal">{s.features.valueLabel} </span>
|
||||
{item.value}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Reveal>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Comparison */}
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{s.comparison.label}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900">{s.comparison.title}</h3>
|
||||
</Reveal>
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
||||
{s.comparison.items.map((item, i) => (
|
||||
<Reveal key={i} delay={i * 80}>
|
||||
<div className="bg-slate-50 rounded-3xl border border-slate-200 p-8 h-full">
|
||||
<div className="flex items-center gap-3 mb-6">
|
||||
<div className="w-10 h-10 bg-slate-200 rounded-xl flex items-center justify-center">
|
||||
<span className="material-symbols-outlined text-slate-500 text-lg">compare</span>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-xs text-slate-400 uppercase tracking-widest font-bold">vs</p>
|
||||
<p className="font-extrabold text-slate-900">{item.competitor}</p>
|
||||
</div>
|
||||
</div>
|
||||
<ul className="space-y-3">
|
||||
{item.advantages.map((adv, j) => (
|
||||
<li key={j} className="flex items-start gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0 mt-0.5">check_circle</span>
|
||||
{adv}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</Reveal>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Pricing */}
|
||||
<section className="py-20 bg-slate-50" id="pricing">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{t.pricing.sectionLabel}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900 mb-4">{t.pricing.sectionTitle}</h3>
|
||||
<p className="text-slate-500 max-w-xl mx-auto">{t.pricing.sectionDesc}</p>
|
||||
</Reveal>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6 items-stretch pt-6">
|
||||
|
||||
{/* Essentiel */}
|
||||
<Reveal delay={0}>
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border border-slate-200 p-8 shadow-sm hover:shadow-md transition-shadow relative">
|
||||
<div className="absolute -top-4 left-1/2 -translate-x-1/2">
|
||||
<span className="bg-slate-800 text-white text-xs font-extrabold px-4 py-1.5 rounded-full uppercase tracking-wider whitespace-nowrap">{t.pricing.comingSoon}</span>
|
||||
</div>
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Essentiel</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-4xl font-extrabold text-slate-900">€39</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva} · {t.pricing.noCommitment}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
1 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} — {t.pricing.features.statsBasicLabel}
|
||||
</li>
|
||||
{[t.pricing.features.nativeApp, t.pricing.features.offlineBeacons, t.pricing.features.pushNotif, t.pricing.features.ai, t.pricing.features.autoTranslation].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-400">
|
||||
<span className="material-symbols-outlined text-slate-300 text-base shrink-0">cancel</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl border-2 border-slate-200 text-slate-700 font-bold text-sm hover:border-primary hover:text-primary transition-all">
|
||||
{t.pricing.ctaStart}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Pro */}
|
||||
<Reveal delay={60}>
|
||||
<div className="flex flex-col h-full bg-white rounded-3xl border-2 border-primary p-8 shadow-xl shadow-primary/10 relative">
|
||||
<div className="absolute -top-4 left-1/2 -translate-x-1/2">
|
||||
<span className="bg-primary text-slate-900 text-xs font-extrabold px-4 py-1.5 rounded-full uppercase tracking-wider">{t.pricing.recommended}</span>
|
||||
</div>
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Pro</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-4xl font-extrabold text-slate-900">€99</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva}</p>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.setupFeeNote}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.nativeApp, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
15 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[t.pricing.features.offlineBeacons, t.pricing.features.pushNotif].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-700">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.stats} — {t.pricing.features.statsBasicLabel}
|
||||
</li>
|
||||
{[t.pricing.features.statsAdvancedFeature, t.pricing.features.ai, t.pricing.features.autoTranslation].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-400">
|
||||
<span className="material-symbols-outlined text-slate-300 text-base shrink-0">cancel</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-primary text-slate-900 font-extrabold text-sm hover:brightness-110 transition-all shadow-lg shadow-primary/20">
|
||||
{t.pricing.ctaStart}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
{/* Bundle */}
|
||||
<Reveal delay={120}>
|
||||
<div className="flex flex-col h-full bg-gradient-to-br from-slate-900 to-slate-800 rounded-3xl p-8 shadow-xl">
|
||||
<div className="mb-6">
|
||||
<p className="text-sm font-bold text-slate-400 uppercase tracking-widest mb-2">Bundle</p>
|
||||
<div className="flex items-end gap-1">
|
||||
<span className="text-4xl font-extrabold text-white">€179</span>
|
||||
<span className="text-slate-400 mb-1">{t.pricing.perMonth}</span>
|
||||
</div>
|
||||
<p className="text-xs text-slate-400 mt-1">{t.pricing.htva}</p>
|
||||
<p className="text-xs text-slate-500 mt-1">{t.pricing.setupFeeNote}</p>
|
||||
</div>
|
||||
<ul className="space-y-3 flex-1 mb-8">
|
||||
{[t.pricing.features.webAndKiosk, t.pricing.features.nativeApp, t.pricing.features.backoffice, t.pricing.features.sections].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
50 GB {t.pricing.features.storage}
|
||||
</li>
|
||||
{[t.pricing.features.offlineBeacons, t.pricing.features.pushNotif].map((f) => (
|
||||
<li key={f} className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.statsAdvancedFeature}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.ai} — 2 000 {t.pricing.features.reqPerMonth}
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-300">
|
||||
<span className="material-symbols-outlined text-primary text-base shrink-0">check_circle</span>
|
||||
{t.pricing.features.autoTranslation}
|
||||
</li>
|
||||
</ul>
|
||||
<button onClick={scrollToContact} className="w-full py-3 rounded-2xl bg-white/10 text-white font-bold text-sm hover:bg-white/20 transition-all border border-white/10">
|
||||
{t.pricing.ctaContact}
|
||||
</button>
|
||||
</div>
|
||||
</Reveal>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* FAQ */}
|
||||
<section className="py-20 bg-white">
|
||||
<div className="max-w-3xl mx-auto px-6">
|
||||
<Reveal className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{s.faq.label}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900">{s.faq.title}</h3>
|
||||
</Reveal>
|
||||
<div className="space-y-3">
|
||||
{s.faq.items.map((item, i) => (
|
||||
<Reveal key={i} delay={i * 40}>
|
||||
<div className="bg-slate-50 rounded-2xl border border-slate-100 overflow-hidden">
|
||||
<button
|
||||
onClick={() => setOpenFaq(openFaq === i ? null : i)}
|
||||
className="w-full flex items-center justify-between p-6 text-left hover:bg-slate-100 transition-colors"
|
||||
>
|
||||
<span className="font-bold text-slate-900 pr-4 text-sm lg:text-base">{item.question}</span>
|
||||
<span className={`material-symbols-outlined text-primary shrink-0 transition-transform duration-300 ${openFaq === i ? 'rotate-180' : ''}`}>
|
||||
expand_more
|
||||
</span>
|
||||
</button>
|
||||
<div className={`overflow-hidden transition-all duration-300 ${openFaq === i ? 'max-h-96' : 'max-h-0'}`}>
|
||||
<p className="px-6 pb-6 text-sm text-slate-600 leading-relaxed">{item.answer}</p>
|
||||
</div>
|
||||
</div>
|
||||
</Reveal>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* CTA */}
|
||||
<section className="py-20 bg-slate-50">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<Reveal>
|
||||
<div className="bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 rounded-[3rem] p-12 lg:p-24 text-center relative overflow-hidden">
|
||||
<div className="absolute top-0 left-0 w-full h-full opacity-10 pointer-events-none">
|
||||
<div className="absolute top-10 left-10 w-40 h-40 bg-primary rounded-full blur-3xl"></div>
|
||||
<div className="absolute bottom-10 right-10 w-60 h-60 bg-accent-violet rounded-full blur-3xl"></div>
|
||||
</div>
|
||||
<h2 className="text-3xl lg:text-5xl font-extrabold text-white mb-6 relative z-10">{s.cta.title}</h2>
|
||||
<p className="text-slate-400 text-lg mb-12 max-w-2xl mx-auto relative z-10">{s.cta.subtitle}</p>
|
||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-6 relative z-10">
|
||||
<button
|
||||
onClick={scrollToContact}
|
||||
className="w-full sm:w-auto px-10 py-5 bg-primary text-slate-900 font-extrabold rounded-full shadow-2xl shadow-primary/40 hover:scale-105 transition-all"
|
||||
>
|
||||
{s.cta.button1}
|
||||
</button>
|
||||
<a
|
||||
href="mailto:contact@unov.be"
|
||||
className="w-full sm:w-auto px-10 py-5 bg-white/10 text-white font-bold rounded-full hover:bg-white/20 transition-all border border-white/10 text-center"
|
||||
>
|
||||
{s.cta.button2}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</Reveal>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Contact */}
|
||||
<section className="py-24 bg-white relative overflow-hidden" id="contact">
|
||||
<div className="absolute top-0 right-0 -z-10 w-64 h-64 bg-primary/5 rounded-full blur-3xl"></div>
|
||||
<div className="absolute bottom-0 left-0 -z-10 w-96 h-96 bg-accent-violet/5 rounded-full blur-3xl"></div>
|
||||
<div className="max-w-4xl mx-auto px-6">
|
||||
<div className="bg-white rounded-[3rem] shadow-2xl border border-slate-100 p-10 lg:p-16 relative">
|
||||
<div className="text-center mb-12">
|
||||
<h2 className="text-accent-orange font-extrabold uppercase tracking-widest text-sm mb-4">{t.contact.sectionLabel}</h2>
|
||||
<h3 className="text-3xl lg:text-4xl font-extrabold text-slate-900 mb-4">{t.contact.title}</h3>
|
||||
<p className="text-slate-600">{t.contact.subtitle}</p>
|
||||
</div>
|
||||
{status === 'success' ? (
|
||||
<div className="text-center py-20">
|
||||
<div className="w-20 h-20 bg-primary/20 text-primary rounded-full flex items-center justify-center mx-auto mb-6">
|
||||
<span className="material-symbols-outlined text-5xl">task_alt</span>
|
||||
</div>
|
||||
<h3 className="text-3xl font-extrabold text-slate-900 mb-4">{t.contact.successTitle}</h3>
|
||||
<p className="text-slate-600 mb-8">{t.contact.successDesc}</p>
|
||||
<button onClick={() => setStatus('idle')} className="text-primary font-bold hover:underline">
|
||||
{t.contact.successButton}
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
{status === 'error' && (
|
||||
<div className="p-4 bg-red-50 text-red-600 rounded-xl text-sm font-medium border border-red-100 flex items-center gap-2">
|
||||
<span className="material-symbols-outlined text-sm">error</span>
|
||||
{t.contact.errorMsg}
|
||||
</div>
|
||||
)}
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-bold text-slate-700 ml-1">{t.contact.firstNameLabel}</label>
|
||||
<input type="text" name="firstName" required value={formData.firstName} onChange={handleChange}
|
||||
className="w-full px-6 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all"
|
||||
placeholder={t.contact.firstNamePlaceholder} />
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-bold text-slate-700 ml-1">{t.contact.lastNameLabel}</label>
|
||||
<input type="text" name="lastName" required value={formData.lastName} onChange={handleChange}
|
||||
className="w-full px-6 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all"
|
||||
placeholder={t.contact.lastNamePlaceholder} />
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-bold text-slate-700 ml-1">{t.contact.emailLabel}</label>
|
||||
<input type="email" name="email" required value={formData.email} onChange={handleChange}
|
||||
className="w-full px-6 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all"
|
||||
placeholder={t.contact.emailPlaceholder} />
|
||||
</div>
|
||||
<div className="space-y-2">
|
||||
<label className="text-sm font-bold text-slate-700 ml-1">{t.contact.messageLabel}</label>
|
||||
<textarea name="message" rows={4} value={formData.message} onChange={handleChange}
|
||||
className="w-full px-6 py-4 bg-slate-50 border border-slate-200 rounded-2xl focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition-all resize-none"
|
||||
placeholder={t.contact.messagePlaceholder}></textarea>
|
||||
</div>
|
||||
<button type="submit" disabled={status === 'loading'}
|
||||
className={`w-full py-5 bg-slate-900 text-white font-extrabold rounded-2xl shadow-xl hover:bg-slate-800 transition-all flex items-center justify-center gap-3 group ${status === 'loading' ? 'opacity-70 cursor-not-allowed' : ''}`}>
|
||||
{status === 'loading' ? (
|
||||
<span className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin"></span>
|
||||
) : (
|
||||
<>
|
||||
{t.contact.submitButton}
|
||||
<span className="material-symbols-outlined group-hover:translate-x-1 transition-transform">send</span>
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
</form>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
|
||||
{/* Footer */}
|
||||
<footer className="bg-slate-50 pt-20 pb-10 border-t border-slate-200">
|
||||
<div className="max-w-7xl mx-auto px-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12 mb-16">
|
||||
<div className="col-span-1 lg:col-span-1">
|
||||
<div className="flex items-center gap-3 mb-6">
|
||||
<Image
|
||||
src={resolveImage('{{DATA:IMAGE:IMAGE_14}}')}
|
||||
alt="MyInfoMate Logo"
|
||||
height={32}
|
||||
width={33}
|
||||
className="h-8 w-auto object-contain"
|
||||
/>
|
||||
<span className="text-lg font-extrabold tracking-tight text-slate-900">MyInfoMate</span>
|
||||
</div>
|
||||
<p className="text-slate-500 text-sm leading-relaxed mb-6">{t.footer.desc}</p>
|
||||
<div className="flex gap-4">
|
||||
<a className="w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center text-slate-600 hover:bg-primary hover:text-slate-900 transition-all" href="#">
|
||||
<span className="material-symbols-outlined">public</span>
|
||||
</a>
|
||||
<a className="w-10 h-10 rounded-full bg-slate-200 flex items-center justify-center text-slate-600 hover:bg-primary hover:text-slate-900 transition-all" href="mailto:contact@unov.be">
|
||||
<span className="material-symbols-outlined">alternate_email</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div>
|
||||
<h4 className="font-bold text-slate-900 mb-6 uppercase text-xs tracking-widest">{t.footer.contactTitle}</h4>
|
||||
<ul className="space-y-4">
|
||||
<li className="flex items-start gap-3 text-sm text-slate-500">
|
||||
<span className="material-symbols-outlined text-primary text-sm">location_on</span>
|
||||
UNOV, 5020 Namur
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-500">
|
||||
<span className="material-symbols-outlined text-primary text-sm">mail</span>
|
||||
contact@unov.be
|
||||
</li>
|
||||
<li className="flex items-center gap-3 text-sm text-slate-500">
|
||||
<span className="material-symbols-outlined text-primary text-sm">call</span>
|
||||
+32 (0)498 07 95 35
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div className="pt-8 border-t border-slate-200 flex flex-col md:flex-row justify-between items-center gap-4">
|
||||
<p className="text-xs text-slate-400">{t.footer.copyright}</p>
|
||||
<div className="flex gap-8">
|
||||
<a className="text-xs text-slate-400 hover:text-slate-600" href="/mentions-legales">{t.footer.legal}</a>
|
||||
<a className="text-xs text-slate-400 hover:text-slate-600" href="/confidentialite">{t.footer.privacy}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</main>
|
||||
);
|
||||
}
|
||||
112
src/app/[lang]/[segment]/page.tsx
Normal file
112
src/app/[lang]/[segment]/page.tsx
Normal file
@ -0,0 +1,112 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { getSegmentData, getAllSegmentSlugs } from '@/data/segments';
|
||||
import { LOCALES, LOCALE_HTML_LANG, LOCALE_OG, DEFAULT_LOCALE, isLocale } from '@/i18n';
|
||||
import SegmentPageClient from './SegmentPageClient';
|
||||
|
||||
const SITE_URL = 'https://myinfomate.be';
|
||||
|
||||
export function generateStaticParams() {
|
||||
const slugs = getAllSegmentSlugs();
|
||||
return LOCALES.flatMap((lang) =>
|
||||
slugs.map((segment) => ({ lang, segment }))
|
||||
);
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ lang: string; segment: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { lang, segment } = await params;
|
||||
if (!isLocale(lang)) return {};
|
||||
const data = getSegmentData(segment);
|
||||
if (!data) return {};
|
||||
const m = data.meta[lang];
|
||||
const languages = Object.fromEntries(
|
||||
LOCALES.map((l) => [LOCALE_HTML_LANG[l], `/${l}/${segment}`])
|
||||
);
|
||||
return {
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
openGraph: {
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
url: `${SITE_URL}/${lang}/${segment}`,
|
||||
siteName: 'MyInfoMate',
|
||||
locale: LOCALE_OG[lang],
|
||||
alternateLocale: LOCALES.filter((l) => l !== lang).map((l) => LOCALE_OG[l]),
|
||||
type: 'website',
|
||||
images: [{ url: '/myinfomate-logo.png' }],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
},
|
||||
alternates: {
|
||||
canonical: `/${lang}/${segment}`,
|
||||
languages: { ...languages, 'x-default': `/${DEFAULT_LOCALE}/${segment}` },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default async function SegmentPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ lang: string; segment: string }>;
|
||||
}) {
|
||||
const { lang, segment } = await params;
|
||||
if (!isLocale(lang)) notFound();
|
||||
const data = getSegmentData(segment);
|
||||
if (!data) notFound();
|
||||
|
||||
const faqItems = data.translations[lang].faq.items;
|
||||
const faqSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'FAQPage',
|
||||
mainEntity: faqItems.map((item) => ({
|
||||
'@type': 'Question',
|
||||
name: item.question,
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: item.answer,
|
||||
},
|
||||
})),
|
||||
};
|
||||
|
||||
const softwareSchema = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'SoftwareApplication',
|
||||
name: 'MyInfoMate',
|
||||
applicationCategory: 'BusinessApplication',
|
||||
operatingSystem: 'iOS, Android, Web',
|
||||
offers: {
|
||||
'@type': 'Offer',
|
||||
price: '39',
|
||||
priceCurrency: 'EUR',
|
||||
priceSpecification: {
|
||||
'@type': 'UnitPriceSpecification',
|
||||
price: '39',
|
||||
priceCurrency: 'EUR',
|
||||
unitText: 'MONTH',
|
||||
},
|
||||
},
|
||||
description: data.meta[lang].description,
|
||||
url: `${SITE_URL}/${lang}/${segment}`,
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(faqSchema) }}
|
||||
/>
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(softwareSchema) }}
|
||||
/>
|
||||
<SegmentPageClient data={data} lang={lang} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
71
src/app/[lang]/page.tsx
Normal file
71
src/app/[lang]/page.tsx
Normal file
@ -0,0 +1,71 @@
|
||||
import type { Metadata } from 'next';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { LOCALES, LOCALE_HTML_LANG, LOCALE_OG, DEFAULT_LOCALE, isLocale, type Locale } from '@/i18n';
|
||||
import HomeClient from './HomeClient';
|
||||
|
||||
const SITE_URL = 'https://myinfomate.be';
|
||||
|
||||
const META_BY_LOCALE: Record<Locale, { title: string; description: string }> = {
|
||||
fr: {
|
||||
title: "MyInfoMate | La technologie au service de l'expérience visiteur",
|
||||
description: "La solution SaaS pour digitaliser l'expérience de vos visiteurs. Créativité et technologie au service de l'expérience visiteur.",
|
||||
},
|
||||
en: {
|
||||
title: "MyInfoMate | Technology serving the visitor experience",
|
||||
description: "The SaaS solution to digitalize your visitor experience. Creativity and technology at the service of the visitor experience.",
|
||||
},
|
||||
nl: {
|
||||
title: "MyInfoMate | Technologie ten dienste van de bezoekerservaring",
|
||||
description: "De SaaS-oplossing om uw bezoekerservaring te digitaliseren. Creativiteit en technologie ten dienste van de bezoekerservaring.",
|
||||
},
|
||||
de: {
|
||||
title: "MyInfoMate | Technologie im Dienste des Besuchererlebnisses",
|
||||
description: "Die SaaS-Lösung zur Digitalisierung Ihres Besuchererlebnisses. Kreativität und Technologie im Dienste des Besuchererlebnisses.",
|
||||
},
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return LOCALES.map((lang) => ({ lang }));
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ lang: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { lang } = await params;
|
||||
if (!isLocale(lang)) return {};
|
||||
const m = META_BY_LOCALE[lang];
|
||||
const languages = Object.fromEntries(
|
||||
LOCALES.map((l) => [LOCALE_HTML_LANG[l], `/${l}`])
|
||||
);
|
||||
return {
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
openGraph: {
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
url: `${SITE_URL}/${lang}`,
|
||||
siteName: 'MyInfoMate',
|
||||
locale: LOCALE_OG[lang],
|
||||
alternateLocale: LOCALES.filter((l) => l !== lang).map((l) => LOCALE_OG[l]),
|
||||
type: 'website',
|
||||
images: [{ url: '/myinfomate-logo.png' }],
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
},
|
||||
alternates: {
|
||||
canonical: `/${lang}`,
|
||||
languages: { ...languages, 'x-default': `/${DEFAULT_LOCALE}` },
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export default async function HomePage({ params }: { params: Promise<{ lang: string }> }) {
|
||||
const { lang } = await params;
|
||||
if (!isLocale(lang)) notFound();
|
||||
return <HomeClient lang={lang} />;
|
||||
}
|
||||
@ -1,6 +1,8 @@
|
||||
import type { Metadata } from "next";
|
||||
import { headers } from "next/headers";
|
||||
import { Plus_Jakarta_Sans } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { DEFAULT_LOCALE, LOCALES, LOCALE_HTML_LANG, LOCALE_OG, isLocale, type Locale } from "@/i18n";
|
||||
|
||||
const plusJakartaSans = Plus_Jakarta_Sans({
|
||||
subsets: ["latin"],
|
||||
@ -9,43 +11,77 @@ const plusJakartaSans = Plus_Jakarta_Sans({
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
metadataBase: new URL("https://myinfomate.be"),
|
||||
const SITE_URL = "https://myinfomate.be";
|
||||
|
||||
const META_BY_LOCALE: Record<Locale, { title: string; description: string }> = {
|
||||
fr: {
|
||||
title: "MyInfoMate | La technologie au service de l'expérience visiteur",
|
||||
description: "La solution SaaS pour digitaliser l'expérience de vos visiteurs. Créativité et technologie au service de l'expérience visiteur.",
|
||||
icons: {
|
||||
icon: "/myinfomate-logo.png",
|
||||
},
|
||||
en: {
|
||||
title: "MyInfoMate | Technology serving the visitor experience",
|
||||
description: "The SaaS solution to digitalize your visitor experience. Creativity and technology at the service of the visitor experience.",
|
||||
},
|
||||
nl: {
|
||||
title: "MyInfoMate | Technologie ten dienste van de bezoekerservaring",
|
||||
description: "De SaaS-oplossing om uw bezoekerservaring te digitaliseren. Creativiteit en technologie ten dienste van de bezoekerservaring.",
|
||||
},
|
||||
de: {
|
||||
title: "MyInfoMate | Technologie im Dienste des Besuchererlebnisses",
|
||||
description: "Die SaaS-Lösung zur Digitalisierung Ihres Besuchererlebnisses. Kreativität und Technologie im Dienste des Besuchererlebnisses.",
|
||||
},
|
||||
};
|
||||
|
||||
async function resolveLocale(): Promise<Locale> {
|
||||
const h = await headers();
|
||||
const pathname = h.get("x-pathname") ?? "/";
|
||||
const seg = pathname.split("/").filter(Boolean)[0];
|
||||
return seg && isLocale(seg) ? seg : DEFAULT_LOCALE;
|
||||
}
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
const locale = await resolveLocale();
|
||||
const m = META_BY_LOCALE[locale];
|
||||
const languages = Object.fromEntries(
|
||||
LOCALES.map((l) => [LOCALE_HTML_LANG[l], `/${l}`])
|
||||
);
|
||||
return {
|
||||
metadataBase: new URL(SITE_URL),
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
icons: { icon: "/myinfomate-logo.png" },
|
||||
openGraph: {
|
||||
title: "MyInfoMate | La technologie au service de l'expérience visiteur",
|
||||
description: "La solution SaaS pour digitaliser l'expérience de vos visiteurs. Créativité et technologie au service de l'expérience visiteur.",
|
||||
url: "https://myinfomate.be",
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
url: `${SITE_URL}/${locale}`,
|
||||
siteName: "MyInfoMate",
|
||||
locale: "fr_BE",
|
||||
locale: LOCALE_OG[locale],
|
||||
alternateLocale: LOCALES.filter((l) => l !== locale).map((l) => LOCALE_OG[l]),
|
||||
type: "website",
|
||||
images: [{ url: "/myinfomate-logo.png" }],
|
||||
},
|
||||
twitter: {
|
||||
card: "summary_large_image",
|
||||
title: "MyInfoMate | La technologie au service de l'expérience visiteur",
|
||||
description: "La solution SaaS pour digitaliser l'expérience de vos visiteurs. Créativité et technologie au service de l'expérience visiteur.",
|
||||
title: m.title,
|
||||
description: m.description,
|
||||
},
|
||||
alternates: {
|
||||
canonical: "/",
|
||||
canonical: `/${locale}`,
|
||||
languages: { ...languages, "x-default": `/${DEFAULT_LOCALE}` },
|
||||
},
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
}: Readonly<{ children: React.ReactNode }>) {
|
||||
const locale = await resolveLocale();
|
||||
return (
|
||||
<html lang="fr" className={plusJakartaSans.variable}>
|
||||
<html lang={LOCALE_HTML_LANG[locale]} className={plusJakartaSans.variable}>
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=block" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
{children}
|
||||
|
||||
@ -1,24 +1,58 @@
|
||||
import { MetadataRoute } from "next";
|
||||
import { LOCALES, LOCALE_HTML_LANG, DEFAULT_LOCALE } from "@/i18n";
|
||||
import { getAllSegmentSlugs } from "@/data/segments";
|
||||
|
||||
const SITE_URL = "https://myinfomate.be";
|
||||
|
||||
function alternates(buildPath: (locale: string) => string) {
|
||||
const languages: Record<string, string> = {};
|
||||
for (const l of LOCALES) {
|
||||
languages[LOCALE_HTML_LANG[l]] = `${SITE_URL}${buildPath(l)}`;
|
||||
}
|
||||
languages["x-default"] = `${SITE_URL}${buildPath(DEFAULT_LOCALE)}`;
|
||||
return languages;
|
||||
}
|
||||
|
||||
export default function sitemap(): MetadataRoute.Sitemap {
|
||||
return [
|
||||
{
|
||||
url: "https://myinfomate.be",
|
||||
lastModified: new Date(),
|
||||
const now = new Date();
|
||||
const entries: MetadataRoute.Sitemap = [];
|
||||
|
||||
for (const lang of LOCALES) {
|
||||
entries.push({
|
||||
url: `${SITE_URL}/${lang}`,
|
||||
lastModified: now,
|
||||
changeFrequency: "monthly",
|
||||
priority: 1,
|
||||
},
|
||||
priority: lang === DEFAULT_LOCALE ? 1 : 0.9,
|
||||
alternates: { languages: alternates((l) => `/${l}`) },
|
||||
});
|
||||
}
|
||||
|
||||
for (const slug of getAllSegmentSlugs()) {
|
||||
for (const lang of LOCALES) {
|
||||
entries.push({
|
||||
url: `${SITE_URL}/${lang}/${slug}`,
|
||||
lastModified: now,
|
||||
changeFrequency: "monthly",
|
||||
priority: 0.8,
|
||||
alternates: { languages: alternates((l) => `/${l}/${slug}`) },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
entries.push(
|
||||
{
|
||||
url: "https://myinfomate.be/mentions-legales",
|
||||
lastModified: new Date(),
|
||||
url: `${SITE_URL}/mentions-legales`,
|
||||
lastModified: now,
|
||||
changeFrequency: "yearly",
|
||||
priority: 0.3,
|
||||
},
|
||||
{
|
||||
url: "https://myinfomate.be/confidentialite",
|
||||
lastModified: new Date(),
|
||||
url: `${SITE_URL}/confidentialite`,
|
||||
lastModified: now,
|
||||
changeFrequency: "yearly",
|
||||
priority: 0.3,
|
||||
},
|
||||
];
|
||||
}
|
||||
);
|
||||
|
||||
return entries;
|
||||
}
|
||||
|
||||
3813
src/data/segments.ts
Normal file
3813
src/data/segments.ts
Normal file
File diff suppressed because it is too large
Load Diff
@ -106,6 +106,11 @@ const translations = {
|
||||
description: "Analysez le comportement de vos visiteurs. Contenus populaires, temps de lecture et engagement : pilotez par la donnée.",
|
||||
value: "Prenez des décisions éclairées basées sur l'usage réel.",
|
||||
},
|
||||
{
|
||||
title: 'Escape Game & Parcours',
|
||||
description: "Créez des expériences immersives uniques. Escape games avec narration et énigmes, chasses au trésor avec points cachés révélés à la complétion, et parcours guidés séquentiels en mode balade ou aventure.",
|
||||
value: "La seule solution du marché intégrant un escape game complet dans votre CMS.",
|
||||
},
|
||||
],
|
||||
},
|
||||
ai: {
|
||||
@ -146,22 +151,28 @@ const translations = {
|
||||
subtitle: "MyInfoMate s'adapte à chaque contexte. Si vous avez des visiteurs à guider, du contenu à partager ou des expériences à créer — cette solution est faite pour vous.",
|
||||
item1Title: 'Musées & Patrimoine',
|
||||
item1Desc: "Digitalisez vos collections, créez des parcours multimédias immersifs et offrez à chaque visiteur un guide intelligent dans sa langue.",
|
||||
item1Cta: 'Découvrir la solution musées',
|
||||
item2Title: 'Offices de Tourisme',
|
||||
item2Desc: "Guidez les visiteurs à travers votre ville ou région avec des cartes interactives, un agenda des événements et un assistant IA disponible 24h/24.",
|
||||
item2Cta: 'Découvrir la solution tourisme',
|
||||
item3Title: 'Parcs & Sites Naturels',
|
||||
item3Desc: "Balisez vos sentiers, valorisez votre biodiversité et proposez des quiz et jeux de piste pour toute la famille — même en zone sans réseau.",
|
||||
item3Cta: 'Découvrir la solution parcs naturels',
|
||||
item4Title: 'Hôtels & Loisirs',
|
||||
item4Desc: "Offrez à vos clients une expérience premium : services, activités, carte interactive du domaine et concierge virtuel disponible à toute heure.",
|
||||
item4Cta: 'Découvrir la solution hôtels',
|
||||
item5Title: 'Événementiel',
|
||||
item5Desc: "Festivals, salons, foires : donnez à vos participants un plan interactif, un agenda en temps réel et un assistant pour ne rien manquer.",
|
||||
item5Cta: 'Découvrir la solution événements',
|
||||
item6Title: 'Éducation & Culture',
|
||||
item6Desc: "Campus, centres de science, bibliothèques : guidez, informez et engagez votre public avec des contenus adaptés à chaque espace.",
|
||||
item6Cta: 'Découvrir la solution éducation',
|
||||
},
|
||||
cta: {
|
||||
titleBefore: 'Prêt à transformer votre ',
|
||||
titleHighlight: 'expérience visiteur',
|
||||
titleAfter: ' ?',
|
||||
subtitle: "Rejoignez des dizaines de lieux qui font confiance à MyInfoMate pour engager leurs visiteurs.",
|
||||
subtitle: "Déjà présent à Namur et en Wallonie pour transformer l'expérience de vos visiteurs.",
|
||||
button1: 'Demander une démo gratuite',
|
||||
button2: 'Nous contacter',
|
||||
},
|
||||
@ -186,13 +197,16 @@ const translations = {
|
||||
pricing: {
|
||||
sectionLabel: 'Tarifs',
|
||||
sectionTitle: 'Un plan pour chaque lieu',
|
||||
sectionDesc: "Tous nos plans incluent l'app mobile, le kiosk et le back-office. Abonnement mensuel. Frais de mise en place à l'activation.",
|
||||
sectionDesc: "Du simple affichage web à la solution complète. Abonnement mensuel.",
|
||||
setupFeeNote: "Frais de mise en place + engagement 12 mois (app mobile).",
|
||||
noCommitment: "Sans engagement.",
|
||||
perMonth: '/mois',
|
||||
htva: 'HTVA',
|
||||
startingFrom: 'À partir de',
|
||||
recommended: 'Recommandé',
|
||||
ctaStart: 'Demander une démo',
|
||||
ctaContact: 'Nous contacter',
|
||||
comingSoon: 'Bientôt disponible',
|
||||
enterprisePrice: 'Sur devis',
|
||||
enterpriseDesc: 'Pour les organisations multi-sites ou aux besoins spécifiques (développements custom, accompagnement, SLA renforcé).',
|
||||
multiYearLabel: 'Budget pluriannuel ?',
|
||||
@ -211,8 +225,22 @@ const translations = {
|
||||
reqPerMonth: 'req/mois',
|
||||
statsBasic: '30 jours',
|
||||
statsAdvanced: 'Illimitées',
|
||||
webDisplayUrl: 'Affichage web sur URL dédiée',
|
||||
webAndKiosk: 'Display web + kiosk tablette',
|
||||
nativeApp: 'App mobile white-label publiée sur les stores (iOS & Android)',
|
||||
offlineBeacons: 'Offline + beacons BLE',
|
||||
statsBasicLabel: 'Visiteurs / jour',
|
||||
statsAdvancedLabel: 'Parcours, temps, clics',
|
||||
statsAdvancedFeature: 'Stats avancées',
|
||||
custom: 'Sur mesure',
|
||||
none: 'Non inclus',
|
||||
multiSite: 'Multi-sites',
|
||||
dedicatedSupport: 'Accompagnement dédié',
|
||||
slaEnhanced: 'SLA renforcé',
|
||||
customStorage: 'Stockage illimité',
|
||||
customAiQuota: 'IA : quota sur mesure',
|
||||
aiNeedMore: 'Besoin de plus ?',
|
||||
customDev: 'Développements sur mesure',
|
||||
},
|
||||
},
|
||||
footer: {
|
||||
@ -329,6 +357,11 @@ const translations = {
|
||||
description: "Analyze your visitors' behavior. Popular content, reading time and engagement: manage by data.",
|
||||
value: 'Make informed decisions based on actual usage.',
|
||||
},
|
||||
{
|
||||
title: 'Escape Game & Trails',
|
||||
description: "Create unique immersive experiences. Escape games with narrative and riddles, treasure hunts with hidden points revealed on completion, and sequential guided trails in classic walk or adventure mode.",
|
||||
value: 'The only solution on the market with a full escape game built into your CMS.',
|
||||
},
|
||||
],
|
||||
},
|
||||
ai: {
|
||||
@ -369,22 +402,28 @@ const translations = {
|
||||
subtitle: "MyInfoMate adapts to any context. If you have visitors to guide, content to share or experiences to create — this solution is made for you.",
|
||||
item1Title: 'Museums & Heritage',
|
||||
item1Desc: 'Digitize your collections, create immersive multimedia tours and offer every visitor an intelligent guide in their language.',
|
||||
item1Cta: 'Discover the museum solution',
|
||||
item2Title: 'Tourism Offices',
|
||||
item2Desc: 'Guide visitors through your city or region with interactive maps, an event agenda and an AI assistant available 24/7.',
|
||||
item2Cta: 'Discover the tourism solution',
|
||||
item3Title: 'Parks & Natural Sites',
|
||||
item3Desc: 'Mark your trails, showcase your biodiversity and offer quizzes and treasure hunts for the whole family — even offline.',
|
||||
item3Cta: 'Discover the natural parks solution',
|
||||
item4Title: 'Hotels & Leisure',
|
||||
item4Desc: 'Offer your guests a premium experience: services, activities, interactive map of the estate and a virtual concierge available at any time.',
|
||||
item4Cta: 'Discover the hotel solution',
|
||||
item5Title: 'Events & Exhibitions',
|
||||
item5Desc: 'Festivals, trade shows, fairs: give your attendees an interactive map, a real-time agenda and an assistant so they never miss a thing.',
|
||||
item5Cta: 'Discover the events solution',
|
||||
item6Title: 'Education & Culture',
|
||||
item6Desc: 'Campuses, science centers, libraries: guide, inform and engage your audience with content tailored to every space.',
|
||||
item6Cta: 'Discover the education solution',
|
||||
},
|
||||
cta: {
|
||||
titleBefore: 'Ready to transform your ',
|
||||
titleHighlight: 'visitor experience',
|
||||
titleAfter: '?',
|
||||
subtitle: 'Join dozens of venues that trust MyInfoMate to engage their visitors.',
|
||||
subtitle: 'Already present in Namur and Wallonia, transforming visitor experience.',
|
||||
button1: 'Request a free demo',
|
||||
button2: 'Contact us',
|
||||
},
|
||||
@ -409,13 +448,16 @@ const translations = {
|
||||
pricing: {
|
||||
sectionLabel: 'Pricing',
|
||||
sectionTitle: 'A plan for every venue',
|
||||
sectionDesc: 'All plans include the mobile app, kiosk and back-office. Monthly subscription. Setup fee applies at activation.',
|
||||
sectionDesc: 'From simple web display to the full solution. Monthly subscription.',
|
||||
setupFeeNote: 'Setup fee + 12-month commitment (mobile app).',
|
||||
noCommitment: 'No commitment.',
|
||||
perMonth: '/month',
|
||||
htva: 'excl. VAT',
|
||||
startingFrom: 'Starting from',
|
||||
recommended: 'Recommended',
|
||||
ctaStart: 'Request a demo',
|
||||
ctaContact: 'Contact us',
|
||||
comingSoon: 'Coming soon',
|
||||
enterprisePrice: 'Custom quote',
|
||||
enterpriseDesc: 'For multi-site organizations or specific needs (custom development, onboarding, enhanced SLA).',
|
||||
multiYearLabel: 'Multi-year budget?',
|
||||
@ -434,8 +476,22 @@ const translations = {
|
||||
reqPerMonth: 'req/month',
|
||||
statsBasic: '30 days',
|
||||
statsAdvanced: 'Unlimited',
|
||||
webDisplayUrl: 'Web display on dedicated URL',
|
||||
webAndKiosk: 'Web display + tablet kiosk',
|
||||
nativeApp: 'White-label mobile app published on stores (iOS & Android)',
|
||||
offlineBeacons: 'Offline + BLE beacons',
|
||||
statsBasicLabel: 'Visitors / day',
|
||||
statsAdvancedLabel: 'Paths, time, clicks',
|
||||
statsAdvancedFeature: 'Advanced statistics',
|
||||
custom: 'Custom',
|
||||
none: 'Not included',
|
||||
multiSite: 'Multi-site',
|
||||
dedicatedSupport: 'Dedicated support',
|
||||
slaEnhanced: 'Enhanced SLA',
|
||||
customStorage: 'Unlimited storage',
|
||||
customAiQuota: 'AI: custom quota',
|
||||
aiNeedMore: 'Need more?',
|
||||
customDev: 'Custom development',
|
||||
},
|
||||
},
|
||||
footer: {
|
||||
@ -552,6 +608,11 @@ const translations = {
|
||||
description: 'Analyseer het gedrag van uw bezoekers. Populaire inhoud, leestijd en betrokkenheid: stuur op basis van gegevens.',
|
||||
value: 'Neem weloverwogen beslissingen op basis van werkelijk gebruik.',
|
||||
},
|
||||
{
|
||||
title: 'Escape Game & Parcours',
|
||||
description: 'Creëer unieke meeslepende ervaringen. Escape games met verhaal en raadsels, schattenjachten met verborgen punten die na voltooiing worden onthuld, en sequentiële begeleide routes in wandel- of avonturenmodus.',
|
||||
value: 'De enige oplossing op de markt met een volledig escape game geïntegreerd in uw CMS.',
|
||||
},
|
||||
],
|
||||
},
|
||||
ai: {
|
||||
@ -592,22 +653,28 @@ const translations = {
|
||||
subtitle: "MyInfoMate past zich aan elke context aan. Als u bezoekers te begeleiden heeft, inhoud te delen of ervaringen te creëren — deze oplossing is voor u gemaakt.",
|
||||
item1Title: 'Musea & Erfgoed',
|
||||
item1Desc: 'Digitaliseer uw collecties, creëer meeslepende multimediale routes en bied elke bezoeker een intelligente gids in zijn taal.',
|
||||
item1Cta: 'Ontdek de museumoplossing',
|
||||
item2Title: 'VVV-kantoren',
|
||||
item2Desc: 'Begeleid bezoekers door uw stad of regio met interactieve kaarten, een evenementenagenda en een AI-assistent die 24/7 beschikbaar is.',
|
||||
item2Cta: 'Ontdek de toerisme-oplossing',
|
||||
item3Title: 'Parken & Natuurgebieden',
|
||||
item3Desc: 'Markeer uw wandelpaden, toon uw biodiversiteit en bied quizzen en schattenjachten voor het hele gezin — ook offline.',
|
||||
item3Cta: 'Ontdek de natuur-oplossing',
|
||||
item4Title: 'Hotels & Vrije Tijd',
|
||||
item4Desc: 'Bied uw gasten een premium ervaring: services, activiteiten, interactieve kaart van het domein en een virtuele conciërge op elk moment.',
|
||||
item4Cta: 'Ontdek de hotel-oplossing',
|
||||
item5Title: 'Evenementen & Beurzen',
|
||||
item5Desc: 'Festivals, beurzen, markten: geef uw deelnemers een interactief plan, een realtime agenda en een assistent zodat ze niets missen.',
|
||||
item5Cta: 'Ontdek de evenementen-oplossing',
|
||||
item6Title: 'Onderwijs & Cultuur',
|
||||
item6Desc: 'Campussen, wetenschapscentra, bibliotheken: begeleid, informeer en betrek uw publiek met inhoud op maat van elke ruimte.',
|
||||
item6Cta: 'Ontdek de onderwijs-oplossing',
|
||||
},
|
||||
cta: {
|
||||
titleBefore: 'Klaar om uw ',
|
||||
titleHighlight: 'bezoekerservaring',
|
||||
titleAfter: ' te transformeren?',
|
||||
subtitle: 'Sluit u aan bij tientallen locaties die MyInfoMate vertrouwen om hun bezoekers te betrekken.',
|
||||
subtitle: 'Al aanwezig in Namen en Wallonië om de bezoekerservaring te transformeren.',
|
||||
button1: 'Gratis demo aanvragen',
|
||||
button2: 'Neem contact op',
|
||||
},
|
||||
@ -632,13 +699,16 @@ const translations = {
|
||||
pricing: {
|
||||
sectionLabel: 'Tarieven',
|
||||
sectionTitle: 'Een plan voor elke locatie',
|
||||
sectionDesc: 'Alle plannen bevatten de mobiele app, kiosk en back-office. Maandelijks abonnement. Opstartkosten bij activatie.',
|
||||
sectionDesc: 'Van eenvoudige webweergave tot de volledige oplossing. Maandelijks abonnement.',
|
||||
setupFeeNote: 'Opstartkosten + 12 maanden engagement (mobiele app).',
|
||||
noCommitment: 'Zonder engagement.',
|
||||
perMonth: '/maand',
|
||||
htva: 'excl. BTW',
|
||||
startingFrom: 'Vanaf',
|
||||
recommended: 'Aanbevolen',
|
||||
ctaStart: 'Demo aanvragen',
|
||||
ctaContact: 'Neem contact op',
|
||||
comingSoon: 'Binnenkort beschikbaar',
|
||||
enterprisePrice: 'Op maat',
|
||||
enterpriseDesc: 'Voor organisaties met meerdere locaties of specifieke behoeften (maatwerk ontwikkeling, begeleiding, verbeterde SLA).',
|
||||
multiYearLabel: 'Meerjarig budget?',
|
||||
@ -657,8 +727,22 @@ const translations = {
|
||||
reqPerMonth: 'req/maand',
|
||||
statsBasic: '30 dagen',
|
||||
statsAdvanced: 'Onbeperkt',
|
||||
webDisplayUrl: 'Webweergave op toegewijd URL',
|
||||
webAndKiosk: 'Webweergave + tablet kiosk',
|
||||
nativeApp: 'White-label mobiele app gepubliceerd in de stores (iOS & Android)',
|
||||
offlineBeacons: 'Offline + BLE-bakens',
|
||||
statsBasicLabel: 'Bezoekers / dag',
|
||||
statsAdvancedLabel: 'Trajecten, tijd, klikken',
|
||||
statsAdvancedFeature: 'Geavanceerde statistieken',
|
||||
custom: 'Op maat',
|
||||
none: 'Niet inbegrepen',
|
||||
multiSite: 'Multi-site',
|
||||
dedicatedSupport: 'Toegewijde begeleiding',
|
||||
slaEnhanced: 'Verbeterde SLA',
|
||||
customStorage: 'Onbeperkte opslag',
|
||||
customAiQuota: 'IA: aangepast quotum',
|
||||
aiNeedMore: 'Meer nodig?',
|
||||
customDev: 'Maatwerkontwikkeling',
|
||||
},
|
||||
},
|
||||
footer: {
|
||||
@ -775,6 +859,11 @@ const translations = {
|
||||
description: 'Analysieren Sie das Verhalten Ihrer Besucher. Beliebte Inhalte, Lesezeit und Engagement: Steuern Sie durch Daten.',
|
||||
value: 'Treffen Sie fundierte Entscheidungen auf Basis der tatsächlichen Nutzung.',
|
||||
},
|
||||
{
|
||||
title: 'Escape Game & Touren',
|
||||
description: 'Schaffen Sie einzigartige immersive Erlebnisse. Escape Games mit Handlung und Rätseln, Schatzsuchen mit verborgenen Punkten und sequenzielle geführte Touren im Spaziergang- oder Abenteuermodus.',
|
||||
value: 'Die einzige Lösung auf dem Markt mit einem vollständigen Escape Game in Ihrem CMS.',
|
||||
},
|
||||
],
|
||||
},
|
||||
ai: {
|
||||
@ -815,22 +904,28 @@ const translations = {
|
||||
subtitle: "MyInfoMate passt sich jedem Kontext an. Wenn Sie Besucher zu führen, Inhalte zu teilen oder Erlebnisse zu schaffen haben — diese Lösung ist für Sie gemacht.",
|
||||
item1Title: 'Museen & Kulturerbe',
|
||||
item1Desc: 'Digitalisieren Sie Ihre Sammlungen, erstellen Sie immersive Multimedia-Touren und bieten Sie jedem Besucher einen intelligenten Führer in seiner Sprache.',
|
||||
item1Cta: 'Museum-Lösung entdecken',
|
||||
item2Title: 'Tourismusbüros',
|
||||
item2Desc: 'Führen Sie Besucher durch Ihre Stadt oder Region mit interaktiven Karten, einer Veranstaltungsagenda und einem KI-Assistenten, der rund um die Uhr verfügbar ist.',
|
||||
item2Cta: 'Tourismuslösung entdecken',
|
||||
item3Title: 'Parks & Naturgebiete',
|
||||
item3Desc: 'Markieren Sie Ihre Wanderwege, präsentieren Sie Ihre Biodiversität und bieten Sie Quizze und Schatzsuchen für die ganze Familie — auch offline.',
|
||||
item3Cta: 'Naturparks-Lösung entdecken',
|
||||
item4Title: 'Hotels & Freizeit',
|
||||
item4Desc: 'Bieten Sie Ihren Gästen ein Premium-Erlebnis: Services, Aktivitäten, interaktive Karte des Geländes und einen virtuellen Concierge jederzeit.',
|
||||
item4Cta: 'Hotel-Lösung entdecken',
|
||||
item5Title: 'Veranstaltungen & Messen',
|
||||
item5Desc: 'Festivals, Messen, Märkte: geben Sie Ihren Teilnehmern einen interaktiven Plan, eine Echtzeit-Agenda und einen Assistenten, damit sie nichts verpassen.',
|
||||
item5Cta: 'Veranstaltungs-Lösung entdecken',
|
||||
item6Title: 'Bildung & Kultur',
|
||||
item6Desc: 'Campusse, Wissenschaftszentren, Bibliotheken: führen, informieren und begeistern Sie Ihr Publikum mit auf jeden Raum zugeschnittenen Inhalten.',
|
||||
item6Cta: 'Bildungs-Lösung entdecken',
|
||||
},
|
||||
cta: {
|
||||
titleBefore: 'Bereit, Ihr ',
|
||||
titleHighlight: 'Besuchererlebnis',
|
||||
titleAfter: ' zu transformieren?',
|
||||
subtitle: 'Schließen Sie sich Dutzenden von Standorten an, die MyInfoMate vertrauen, um ihre Besucher einzubinden.',
|
||||
subtitle: 'Bereits in Namur und der Wallonie präsent, um das Besuchererlebnis zu transformieren.',
|
||||
button1: 'Kostenlose Demo anfordern',
|
||||
button2: 'Kontaktieren Sie uns',
|
||||
},
|
||||
@ -855,13 +950,16 @@ const translations = {
|
||||
pricing: {
|
||||
sectionLabel: 'Preise',
|
||||
sectionTitle: 'Ein Plan für jeden Standort',
|
||||
sectionDesc: 'Alle Pläne beinhalten die mobile App, den Kiosk und das Back-Office. Monatliches Abonnement. Einrichtungsgebühr bei Aktivierung.',
|
||||
sectionDesc: 'Von der einfachen Web-Anzeige bis zur Komplettlösung. Monatliches Abonnement.',
|
||||
setupFeeNote: 'Einrichtungsgebühr + 12 Monate Mindestlaufzeit (mobile App).',
|
||||
noCommitment: 'Ohne Verpflichtung.',
|
||||
perMonth: '/Monat',
|
||||
htva: 'zzgl. MwSt.',
|
||||
startingFrom: 'Ab',
|
||||
recommended: 'Empfohlen',
|
||||
ctaStart: 'Demo anfordern',
|
||||
ctaContact: 'Kontaktieren Sie uns',
|
||||
comingSoon: 'Demnächst verfügbar',
|
||||
enterprisePrice: 'Auf Anfrage',
|
||||
enterpriseDesc: 'Für Organisationen mit mehreren Standorten oder spezifischen Anforderungen (individuelle Entwicklung, Begleitung, erweiterter SLA).',
|
||||
multiYearLabel: 'Mehrjähriges Budget?',
|
||||
@ -880,8 +978,22 @@ const translations = {
|
||||
reqPerMonth: 'Req/Monat',
|
||||
statsBasic: '30 Tage',
|
||||
statsAdvanced: 'Unbegrenzt',
|
||||
webDisplayUrl: 'Web-Anzeige auf dedizierter URL',
|
||||
webAndKiosk: 'Web-Anzeige + Tablet-Kiosk',
|
||||
nativeApp: 'White-Label-Mobile-App in den Stores veröffentlicht (iOS & Android)',
|
||||
offlineBeacons: 'Offline + BLE-Beacons',
|
||||
statsBasicLabel: 'Besucher / Tag',
|
||||
statsAdvancedLabel: 'Wege, Zeit, Klicks',
|
||||
statsAdvancedFeature: 'Erweiterte Statistiken',
|
||||
custom: 'Individuell',
|
||||
none: 'Nicht enthalten',
|
||||
multiSite: 'Multi-Standort',
|
||||
dedicatedSupport: 'Dedizierter Support',
|
||||
slaEnhanced: 'Erweiterter SLA',
|
||||
customStorage: 'Unbegrenzter Speicher',
|
||||
customAiQuota: 'KI: individuelles Kontingent',
|
||||
aiNeedMore: 'Mehr benötigt?',
|
||||
customDev: 'Individuelle Entwicklung',
|
||||
},
|
||||
},
|
||||
footer: {
|
||||
|
||||
41
src/i18n.ts
Normal file
41
src/i18n.ts
Normal file
@ -0,0 +1,41 @@
|
||||
export const LOCALES = ['fr', 'en', 'nl', 'de'] as const;
|
||||
export type Locale = typeof LOCALES[number];
|
||||
export const DEFAULT_LOCALE: Locale = 'fr';
|
||||
|
||||
export const LOCALE_NAMES: Record<Locale, string> = {
|
||||
fr: 'Français',
|
||||
en: 'English',
|
||||
nl: 'Nederlands',
|
||||
de: 'Deutsch',
|
||||
};
|
||||
|
||||
export const LOCALE_HTML_LANG: Record<Locale, string> = {
|
||||
fr: 'fr-BE',
|
||||
en: 'en',
|
||||
nl: 'nl-BE',
|
||||
de: 'de',
|
||||
};
|
||||
|
||||
export const LOCALE_OG: Record<Locale, string> = {
|
||||
fr: 'fr_BE',
|
||||
en: 'en_US',
|
||||
nl: 'nl_BE',
|
||||
de: 'de_DE',
|
||||
};
|
||||
|
||||
export function isLocale(value: string): value is Locale {
|
||||
return (LOCALES as readonly string[]).includes(value);
|
||||
}
|
||||
|
||||
export function detectLocaleFromAcceptLanguage(header: string | null): Locale {
|
||||
if (!header) return DEFAULT_LOCALE;
|
||||
const parts = header
|
||||
.split(',')
|
||||
.map((p) => p.split(';')[0].trim().toLowerCase())
|
||||
.filter(Boolean);
|
||||
for (const part of parts) {
|
||||
const short = part.slice(0, 2);
|
||||
if (isLocale(short)) return short;
|
||||
}
|
||||
return DEFAULT_LOCALE;
|
||||
}
|
||||
37
src/proxy.ts
Normal file
37
src/proxy.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
import { DEFAULT_LOCALE, detectLocaleFromAcceptLanguage, isLocale } from './i18n';
|
||||
|
||||
const PUBLIC_FILE = /\.(.*)$/;
|
||||
const SKIP_PATHS = ['/mentions-legales', '/confidentialite'];
|
||||
|
||||
export function proxy(request: NextRequest) {
|
||||
const { pathname } = request.nextUrl;
|
||||
|
||||
if (
|
||||
pathname.startsWith('/_next') ||
|
||||
pathname.startsWith('/api') ||
|
||||
PUBLIC_FILE.test(pathname) ||
|
||||
SKIP_PATHS.some((p) => pathname === p || pathname.startsWith(p + '/'))
|
||||
) {
|
||||
return NextResponse.next();
|
||||
}
|
||||
|
||||
const segments = pathname.split('/').filter(Boolean);
|
||||
const first = segments[0];
|
||||
|
||||
if (first && isLocale(first)) {
|
||||
const requestHeaders = new Headers(request.headers);
|
||||
requestHeaders.set('x-pathname', pathname);
|
||||
return NextResponse.next({ request: { headers: requestHeaders } });
|
||||
}
|
||||
|
||||
const detected = detectLocaleFromAcceptLanguage(request.headers.get('accept-language'));
|
||||
const target = detected || DEFAULT_LOCALE;
|
||||
const url = request.nextUrl.clone();
|
||||
url.pathname = `/${target}${pathname === '/' ? '' : pathname}`;
|
||||
return NextResponse.redirect(url);
|
||||
}
|
||||
|
||||
export const config = {
|
||||
matcher: ['/((?!_next|api|.*\\..*).*)'],
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user