-
-
- {/* Check if body has the "iframe-mode" class name and if so add the static class to the footer */}
-
)
diff --git a/src/app/accueil-iframe/page.tsx b/src/app/accueil-iframe/page.tsx
new file mode 100644
index 000000000..21a5412ed
--- /dev/null
+++ b/src/app/accueil-iframe/page.tsx
@@ -0,0 +1,102 @@
+import DynamicCTAButtons from '@/components/cta/DynamicCTAButtons'
+import Partners from '@/components/landing-pages/Partners'
+import Trans from '@/components/translation/Trans'
+import { noIndexObject } from '@/constants/metadata'
+import { trackingActionClickCTA } from '@/constants/tracking/actions'
+import LandingPage from '@/design-system/layout/LandingPage'
+import { getServerTranslation } from '@/helpers/getServerTranslation'
+import { getMetadataObject } from '@/helpers/metadata/getMetadataObject'
+import {
+ getLandingClickCTARestart,
+ getLandingClickCTAResults,
+ getLandingClickCTAResume,
+ getLandingClickCTAStart,
+} from '@/helpers/tracking/landings'
+import { headers } from 'next/headers'
+import InteractiveIllustration from '../_components/InteractiveIllustration'
+
+export async function generateMetadata() {
+ const { t } = await getServerTranslation()
+ return getMetadataObject({
+ title: t('Calculez votre empreinte carbone et eau en 10 minutes !'),
+ description: t(
+ "2 millions de personnes ont déjà calculé leur empreinte sur le climat avec le calculateur Nos Gestes Climat ! Et vous, qu'attendez-vous pour faire le test ?"
+ ),
+ image: '/images/misc/calculer-empreinte-carbone-et-eau.png',
+ alternates: {
+ canonical: '',
+ },
+ robots: noIndexObject,
+ })
+}
+
+export default async function Homepage() {
+ const headersList = headers()
+ const pathname = headersList.get('x-pathname') || '/'
+
+ return (
+ <>
+
}
+ heroTitle={
Connaissez-vous votre empreinte écologique ?}
+ heroDescription={
+
+
+
+ Calculez votre{' '}
+ empreinte carbone{' '}
+ et votre{' '}
+ empreinte eau en{' '}
+
+ seulement 10 minutes
+
+ .
+
+
+
+
+
+
+ {/* Displayed on mobile only */}
+
+
+
+
+ {/* Displayed on desktop only */}
+
+
+
+ 2 millions de personnes
+ {' '}
+ ont déjà calculé leur empreinte !
+
+
+
+
+ }
+ heroPartners={
}>
+ <>>
+
+ >
+ )
+}
diff --git a/src/components/layout/header/HeaderDesktop.tsx b/src/components/layout/header/HeaderDesktop.tsx
index dfbc378e7..fe6d910ec 100644
--- a/src/components/layout/header/HeaderDesktop.tsx
+++ b/src/components/layout/header/HeaderDesktop.tsx
@@ -17,6 +17,7 @@ import { HIDE_CTA_PATHS } from '@/constants/urls'
import { linkToClassement } from '@/helpers/navigation/classementPages'
import { useSimulateurPage } from '@/hooks/navigation/useSimulateurPage'
import { useClientTranslation } from '@/hooks/useClientTranslation'
+import { useIframe } from '@/hooks/useIframe'
import { useUser } from '@/publicodes-state'
import { trackEvent } from '@/utils/matomo/trackEvent'
import { usePathname } from 'next/navigation'
@@ -26,7 +27,6 @@ import OrganisationLink from './_components/OrganisationLink'
import ProfileIcon from './_components/ProfileIcon'
import DebugIndicator from './headerDesktop/DebugIndicator'
import CTAButton from './headerDesktop/MenuCTAButton'
-
type Props = {
isSticky: boolean
}
@@ -39,6 +39,8 @@ export default function HeaderDesktop({ isSticky }: Props) {
const { getLinkToSimulateurPage } = useSimulateurPage()
+ const { isIframeOnlySimulation } = useIframe()
+
return (
trackEvent(headerClickLogo)} />
-
+
+
-
+
-
trackEvent(headerClickProfil)}>
- Profil
-
+
trackEvent(headerClickProfil)}>
+ Profil
+
- {user?.organisation?.administratorEmail ? (
- <>
-
+ {user?.organisation?.administratorEmail ? (
+ <>
+
-
- >
- ) : !HIDE_CTA_PATHS.find((path) => pathname.includes(path)) ? (
-
- ) : null}
-
+
+ >
+ ) : !HIDE_CTA_PATHS.find((path) => pathname.includes(path)) ? (
+
+ ) : null}
+