diff --git a/img/hero-bg-mobile.webp b/img/hero-bg-mobile.webp new file mode 100644 index 0000000..36309d5 Binary files /dev/null and b/img/hero-bg-mobile.webp differ diff --git a/public/config.json b/public/config.json index d68b83d..3df30a9 100644 --- a/public/config.json +++ b/public/config.json @@ -1,4 +1,5 @@ { "heroVideo": "/video/home.mp4", - "heroBg": "/img/hero-bg.webp" + "heroBg": "/img/hero-bg.webp", + "heroBgMobile": "/img/hero-bg-mobile.webp" } diff --git a/src/App.jsx b/src/App.jsx index ed84e0d..e77728f 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,12 +6,16 @@ import GuideSection from './components/GuideSection' import Footer from './components/Footer' export default function App() { - const [bgSrc, setBgSrc] = useState(null) + const [bgSrc, setBgSrc] = useState(null) + const [bgMobileSrc, setBgMobileSrc] = useState(null) useEffect(() => { fetch('/config.json') .then(r => r.json()) - .then(data => setBgSrc(data.heroBg ?? null)) + .then(data => { + if (data.heroBg) setBgSrc(data.heroBg) + if (data.heroBgMobile) setBgMobileSrc(data.heroBgMobile) + }) .catch(() => {}) }, []) @@ -19,9 +23,9 @@ export default function App() {
- + - +
diff --git a/src/components/ComparisonSection.jsx b/src/components/ComparisonSection.jsx index d54c9e9..15c731a 100644 --- a/src/components/ComparisonSection.jsx +++ b/src/components/ComparisonSection.jsx @@ -107,13 +107,13 @@ export default function ComparisonSection() { whileInView={{ opacity: 1, y: 0 }} viewport={{ once: true }} transition={{ duration: 0.5 }} - className="text-center mb-14" + className="text-center mb-8 sm:mb-14" >
Classement officiel 2026
-

+

Les meilleures mutuelles santé

diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 588d4fb..b8bddfd 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -23,11 +23,10 @@ const colLegal = [ export default function Footer() { return (