Skip to content

Commit 6d4cd5b

Browse files
TCatinaudThomas Catinaud Taris
andauthored
feat: add legal notices page (#82)
* feat: add legal notices page * fixed: unused components --------- Co-authored-by: Thomas Catinaud Taris <[email protected]>
1 parent d58c6bc commit 6d4cd5b

File tree

10 files changed

+89
-4
lines changed

10 files changed

+89
-4
lines changed

messages/en/layout.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"footer": {
1212
"allRight": "All rights reserved",
1313
"and": "and",
14-
"donation": "Make a donation"
14+
"donation": "Make a donation",
15+
"legalNotice": "Legal notices"
1516
}
1617
},
1718
"siteConfig": {

messages/en/pages/legal.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"legal": {
3+
"meta": {
4+
"title": "Legal notices"
5+
},
6+
"title": "PinkBombs - Legal notices",
7+
"sub": "In force as of October 10, 2024",
8+
"content": "<p>In accordance with the provisions of Law No. 2004-575 of June 21, 2004 on Confidence in the Digital Economy, users and visitors, hereinafter the \"<strong>User</strong>\", of the site <a href=\"https://www.pinkbombs.org/en\">www.pinkbombs.org</a>, hereinafter the \"<strong>Site</strong>\", are hereby informed of these legal notices.</p><p>Connection and navigation on the Site by the User implies full and unreserved acceptance of these legal notices.</p><h2>Site publisher:</h2><p>The website <a href=\"https://www.pinkbombs.org/en\">www.pinkbombs.org</a> is published by the Seastemik association.</p><h2>Corporate name:</h2><p>Seastemik, Association declared according to the law of 1901, with the SIRET 92449298600014 and the head office at 6 rue Gambetta, 56100 Lorient, France</p><h2>Contact:</h2><p>Email: <a href=\"mailto:[email protected]\">[email protected]</a></p><h2>Publication manager:</h2><p>The publication manager is the Seastemik association.</p><h2>Website host:</h2><p>The website <a href=\"https://www.pinkbombs.org/en\">www.pinkbombs.org</a> is hosted by:<br />Vercel Inc.<br />Located at 340 S Lemon Ave #4133 Walnut, CA 91789<br />Phone: (559) 288-7060.</p><h2>Intellectual Property:</h2><p>All content on the <a href=\"https://www.pinkbombs.org/en\">www.pinkbombs.org</a> website, including but not limited to text, images, logos and graphics, is protected by copyright. Any total or partial reproduction of the site without the express authorization of the Seastemik association is prohibited.</p><h2>Personal data:</h2><p>The site <a href=\"https://www.pinkbombs.org/en\">www.pinkbombs.org</a> may collect personal data from its users, in accordance with the amended \"Informatique et Libertés\" law of January 6, 1978 and the General Data Protection Regulation (GDPR). Users have the right to access, rectify and delete personal data concerning them, which they can exercise by contacting the association at the following address: <a href=\"mailto:[email protected]\">[email protected]</a>.</p>"
9+
}
10+
}

messages/fr/layout.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"footer": {
1212
"allRight": "Tous droits réservés",
1313
"and": "et",
14-
"donation": "Faire un don"
14+
"donation": "Faire un don",
15+
"legalNotice": "Mentions légales"
1516
}
1617
},
1718
"siteConfig": {

messages/fr/pages/legal.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"legal": {
3+
"meta": {
4+
"title": "Mentions légales"
5+
},
6+
"title": "PinkBombs - Mentions légales",
7+
"sub": "En vigueur au 10 octobre 2024",
8+
"content": "<p>Conformément aux dispositions de la loi n°2004-575 du 21 juin 2004 pour la Confiance en l’économie numérique, il est porté à la connaissance des utilisateurs et visiteurs, ci-après l’« <strong>Utilisateur</strong> », du site <a href=\"https://www.pinkbombs.org\">www.pinkbombs.org</a>, ci-après le « <strong>Site</strong> », les présentes mentions légales.</p><p>La connexion et la navigation sur le Site par l’Utilisateur implique acceptation intégrale et sans réserve des présentes mentions légales.</p><h2>Éditeur du site :</h2><p>Le site internet <a href=\"https://www.pinkbombs.org\">www.pinkbombs.org</a> est édité par l’association Seastemik.</p><h2>Dénomination sociale :</h2><p>Seastemik, Association déclarée selon la loi de 1901, avec le SIRET 92449298600014 et le siège social au 6 rue Gambetta, 56100 Lorient, France</p><h2>Contact :</h2><p>Email : <a href=\"mailto:[email protected]\">[email protected]</a></p><h2>Responsable de la publication :</h2><p>Le responsable de la publication est l'association Seastemik.</p><h2>Hébergeur du site :</h2><p>Le site <a href=\"https://www.pinkbombs.org\">www.pinkbombs.org</a> est hébergé par :<br />Vercel Inc.<br />Située 340 S Lemon Ave #4133 Walnut, CA 91789<br />Téléphone : (559) 288-7060.</p><h2>Propriété intellectuelle :</h2><p>L’ensemble des contenus présents sur le site <a href=\"https://www.pinkbombs.org\">www.pinkbombs.org</a>, y compris, mais sans s’y limiter, les textes, images, logos et graphismes, sont protégés par le droit d’auteur. Toute reproduction totale ou partielle du site sans autorisation expresse de l’association Seastemik est interdite.</p><h2>Données personnelles :</h2><p>Le site <a href=\"https://www.pinkbombs.org\">www.pinkbombs.org</a> peut collecter des données personnelles de ses utilisateurs, conformément à la loi « Informatique et Libertés » du 6 janvier 1978 modifiée et au Règlement Général sur la Protection des Données (RGPD). Les utilisateurs disposent d’un droit d’accès, de rectification et de suppression des données personnelles les concernant, qu’ils peuvent exercer en contactant l’association à l’adresse : <a href=\"mailto:[email protected]\">[email protected]</a>.</p>"
9+
}
10+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"use client";
2+
3+
import { useTranslations } from "next-intl";
4+
import * as React from "react";
5+
import "@/lib/env";
6+
7+
import IntroBlock from "@/components/IntroBlock";
8+
9+
const LegalNotice = () => {
10+
const t = useTranslations("legal");
11+
12+
return (
13+
<>
14+
<IntroBlock title={t("title")} baseline={t("sub")} />
15+
16+
<div
17+
className="p-6 md:p-12 max-w-[1000px] mx-auto prose"
18+
dangerouslySetInnerHTML={{ __html: t.raw("content") }}
19+
/>
20+
</>
21+
);
22+
};
23+
24+
export default LegalNotice;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { getTranslations } from "next-intl/server";
2+
import React from "react";
3+
import "@/lib/env";
4+
5+
import { locales } from "@/navigation";
6+
7+
import LegalNotice from "./legal-notice";
8+
9+
export async function generateMetadata({
10+
params: { locale },
11+
}: {
12+
params: { locale: typeof locales };
13+
}) {
14+
const t = await getTranslations({ locale, namespace: "legal" });
15+
16+
return {
17+
title: t("meta.title"),
18+
};
19+
}
20+
21+
const Page = () => {
22+
return <LegalNotice />;
23+
};
24+
25+
export default Page;

src/components/IntroBlock.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ import Summary, { SummaryLinksProps } from "@/components/Summary";
77
const IntroBlock = ({
88
className,
99
title,
10+
baseline,
1011
image,
1112
summary,
1213
}: {
1314
className?: string;
1415
title: string;
1516
image?: string;
17+
baseline?: string;
1618
summary?: SummaryLinksProps;
1719
}) => {
1820
if (!title) {
@@ -35,6 +37,9 @@ const IntroBlock = ({
3537
)}
3638
<div className="row-start-3 self-end items-left flex flex-wrap gap-2 items-end">
3739
<h1 className={clsx("h1", "flex-1")}>{title}</h1>
40+
{baseline ? (
41+
<p className="mt-2 w-full text-black">{baseline}</p>
42+
) : null}
3843

3944
{summary ? <Summary className="w-full" links={summary} /> : null}
4045
</div>

src/components/layout/Footer.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,12 @@ const Footer = () => {
9797
</div>
9898

9999
<p className="p-caption mt-6 lg:mt-12">
100-
{t("footer.allRight")} <br />© {currentYear} Seastemik{" "}
101-
{t("footer.and")} Data for Good
100+
{t("footer.allRight")} - © {currentYear} Seastemik {t("footer.and")}{" "}
101+
Data for Good
102+
<br />
103+
<a href="/legal-notice" className="underline hover:no-underline">
104+
{t("footer.legalNotice")}
105+
</a>
102106
</p>
103107
</div>
104108
</footer>

src/i18n.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default getRequestConfig(async ({ locale }) => {
1111
messages: {
1212
...(await import(`../messages/${locale}/pages/about.json`)).default,
1313
...(await import(`../messages/${locale}/pages/act.json`)).default,
14+
...(await import(`../messages/${locale}/pages/legal.json`)).default,
1415
...(await import(`../messages/${locale}/pages/dashboard.json`)).default,
1516
...(await import(`../messages/${locale}/pages/story.json`)).default,
1617
...(await import(`../messages/${locale}/components.json`)).default,

src/styles/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
@apply font-bold;
101101
}
102102

103+
.prose h2 {
104+
@apply text-red1 mt-16 lg:mt-20 mb-8;
105+
}
106+
103107
.prose h3 {
104108
@apply text-red1 mt-16 lg:mt-20 mb-8;
105109
}

0 commit comments

Comments
 (0)