diff --git a/next.config.mjs b/next.config.mjs index 0ee755b..ea66f5f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -11,8 +11,16 @@ const config = { /* If trying out the experimental appDir, comment the i18n config out * @see https://github.com/vercel/next.js/issues/41980 */ i18n: { - locales: ["en"], - defaultLocale: "en", + locales: ["fr"], + defaultLocale: "fr", + }, + images: { + remotePatterns: [ + { + protocol: "https", + hostname: "picsum.photos", + } + ], }, }; export default config; diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx index 7a7e1bf..46dfb48 100644 --- a/src/pages/contact.tsx +++ b/src/pages/contact.tsx @@ -8,7 +8,7 @@ export default function Contact() {

Contact

- Vous pouvez nous contacter par mail à l'adresse suivante : {" "} + Vous pouvez nous contacter par mail à l'adresse suivante : {" "} contact@pchl.fr

diff --git a/src/pages/galeries.tsx b/src/pages/galeries.tsx index 71a3aed..b1a45f3 100644 --- a/src/pages/galeries.tsx +++ b/src/pages/galeries.tsx @@ -1,6 +1,7 @@ import { Layout } from "./index"; +import Image from "next/image"; -export default function Galeries() { +export default function Galeries({ pictures }: { pictures: string[] }) { return (

@@ -8,11 +9,26 @@ export default function Galeries() {

Galeries

- Voici les photos des galeries du club. + Voici les photos des galeries du club.

+
+ {pictures?.map((picture) => ( +
+ +
+ ))} +
); } + +export function getServerSideProps() { + return { + props: { + pictures: ["https://picsum.photos/seed/1/500","https://picsum.photos/seed/2/500","https://picsum.photos/seed/3/500"], + }, + }; +} diff --git a/src/styles/globals.css b/src/styles/globals.css index d506975..88a4ba2 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -13,4 +13,4 @@ h1 { font-family: 'Poppins', sans-serif; -} \ No newline at end of file +}