diff --git a/src/App.jsx b/src/App.jsx index 3a7c65b..9446977 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,13 +1,31 @@ +import React, { useState, useEffect } from 'react'; import Navbar from './components/Navbar'; import Hero from './components/Hero'; import SocialProof from './components/SocialProof'; import Features from './components/Features'; import UseCases from './components/UseCases'; import Pricing from './components/Pricing'; +import FAQ from './components/FAQ'; import CallToAction from './components/CallToAction'; import Footer from './components/Footer'; +import Loading from './components/Loading'; +import CookieConsent from './components/CookieConsent'; function App() { + const [isLoading, setIsLoading] = useState(true); + + useEffect(() => { + // Simulate loading delay + const timer = setTimeout(() => { + setIsLoading(false); + }, 1500); + return () => clearTimeout(timer); + }, []); + + if (isLoading) { + return ; + } + return (
@@ -17,9 +35,11 @@ function App() { +
+
); } diff --git a/src/components/CallToAction.jsx b/src/components/CallToAction.jsx index 28d1516..8636fee 100644 --- a/src/components/CallToAction.jsx +++ b/src/components/CallToAction.jsx @@ -1,20 +1,24 @@ +import { useI18n } from '../contexts/I18nContext'; + function CallToAction() { + const { t } = useI18n(); + return (