-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'preprod' into refactor-migration
- Loading branch information
Showing
83 changed files
with
746 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
src/app/(layout-with-navigation)/(pages-statiques)/ambassadeurs/page.tsx
This file was deleted.
Oops, something went wrong.
124 changes: 124 additions & 0 deletions
124
src/app/(layout-with-navigation)/(pages-statiques)/nos-relais/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
import Trans from '@/components/translation/Trans' | ||
import InlineLink from '@/design-system/inputs/InlineLink' | ||
import Card from '@/design-system/layout/Card' | ||
import Title from '@/design-system/layout/Title' | ||
import { getServerTranslation } from '@/helpers/getServerTranslation' | ||
import { getMetadataObject } from '@/helpers/metadata/getMetadataObject' | ||
import ambassadeursYaml from '@/locales/ambassadeurs/fr/ambassadeurs.yaml' | ||
import Image from 'next/image' | ||
|
||
export async function generateMetadata() { | ||
const { t } = await getServerTranslation() | ||
return getMetadataObject({ | ||
title: t('Nos relais - Nos Gestes Climat'), | ||
description: t( | ||
'Découvrez les relais de Nos Gestes Climat : organisations, collectivités, médias, influenceurs, etc.' | ||
), | ||
alternates: { | ||
canonical: '/relais', | ||
}, | ||
}) | ||
} | ||
|
||
const ambassadeurs = ambassadeursYaml as any | ||
const categories = Object.keys(ambassadeurs) | ||
|
||
export default async function NosRelais() { | ||
const { t } = await getServerTranslation() | ||
|
||
return ( | ||
<div> | ||
<Title> | ||
<Trans> | ||
Ils relaient{' '} | ||
<span className="text-primary-700">Nos Gestes Climat</span> | ||
</Trans> | ||
</Title> | ||
|
||
<div className="flex flex-wrap items-center md:flex-nowrap md:gap-16"> | ||
<div> | ||
<p> | ||
<Trans> | ||
Plus de 40 acteurs relaient{' '} | ||
<span className="text-secondary-700">ou</span> ont relayé Nos | ||
Gestes Climat à travers | ||
<a | ||
href="https://accelerateur-transition-ecologique-ademe.notion.site/Int-grer-Nos-Gestes-Climat-en-iframe-abdeb175baf84143922006964d80348c" | ||
target="_blank" | ||
rel="noopener noreferrer"> | ||
l’intégration du calculateur | ||
</a>{' '} | ||
sur leur site internet{' '} | ||
<span className="text-secondary-700">ou</span> sa diffusion via{' '} | ||
<InlineLink href="/organisations">des campagnes</InlineLink>{' '} | ||
(mail, réseaux sociaux et/ou affichage). C’est majoritairement | ||
grâce à eux que nous sensibilisons près de 2 000 nouvelles | ||
personnes en moyenne chaque jour et nous les en remercions. | ||
</Trans> | ||
</p> | ||
|
||
<p> | ||
<Trans> | ||
Vous avez relayé Nos Gestes Climat et souhaitez apparaître dans | ||
notre galerie de relais ? Merci de nous envoyer un message avec{' '} | ||
<span className="text-secondary-700">votre logo</span> via{' '} | ||
<InlineLink href="/contact">notre page de contact</InlineLink>. | ||
</Trans> | ||
</p> | ||
|
||
<p className="mb-8 italic"> | ||
<Trans> | ||
N.B. : aucun acteur cité ci-dessous ne finance Nos Gestes Climat, | ||
qui est et restera un service public, indépendant et gratuit de | ||
l’ADEME. | ||
</Trans> | ||
</p> | ||
</div> | ||
<Image | ||
width="300" | ||
height="400" | ||
className="ml-auto w-48 self-start md:-mt-16 md:w-auto" | ||
alt={t( | ||
'Un grand-père et sa petite-fille au cinéma, mangeant du pop-corn.' | ||
)} | ||
src="/images/ambassadeurs/illu-cinema.svg" | ||
/> | ||
</div> | ||
|
||
{categories.map((category: any) => ( | ||
<div key={category} className="mb-16"> | ||
<h2>{category}</h2> | ||
<div className="grid grid-cols-1 gap-4 sm:grid-cols-3"> | ||
{ambassadeurs[category].map((ambassadeur: any) => ( | ||
<Card | ||
key={ambassadeur.title} | ||
href={ambassadeur.link} | ||
tag="a" | ||
className="border-none bg-primary-50 no-underline" | ||
target="_blank"> | ||
<Image | ||
src={'/images/ambassadeurs/' + ambassadeur.image} | ||
width="100" | ||
height="100" | ||
className="mx-auto mb-4 h-36 w-2/3 object-contain" | ||
alt={ambassadeur.title} | ||
/> | ||
<p className="mb-4 font-bold">{ambassadeur.title}</p> | ||
{ambassadeur.link ? ( | ||
<p className="my-0 underline"> | ||
{ | ||
ambassadeur.link | ||
.replace('https://', '') | ||
.replace('www.', '') | ||
.split('/')[0] | ||
} | ||
</p> | ||
) : null} | ||
</Card> | ||
))} | ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.