Skip to content

Commit

Permalink
add title in privacy policy and TOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MarBert committed Dec 18, 2024
1 parent bd00977 commit 288119c
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 60 deletions.
43 changes: 13 additions & 30 deletions apps/nextjs-website/src/app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
'use client';
import { Box } from '@mui/material';
import Script from 'next/script';
import PrivacyPolicyTemplate from '@/components/templates/PrivacyPolicyTemplate/PrivacyPolicyAtom';
import { baseUrl } from '@/config';
import { makeMetadata } from '@/helpers/metadata.helpers';
import { Metadata } from 'next';

const PrivacyPolicy = () => {
return (
<Box py={6}>
<div
id='otnotice-5657e5a3-e052-4a97-b533-c60f1c2e1a29'
className='otnotice'
/>
export async function generateMetadata(): Promise<Metadata> {
return makeMetadata({
title: 'Privacy Policy',
url: `${baseUrl}/privacy-policy`,
locale: 'it_IT',
});
}

<Script
src='https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js'
type='text/javascript'
id='otprivacy-notice-script'
onReady={() => {
// eslint-disable-next-line no-var
var settings =
'eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9';
// To ensure external settings are loaded, use the Initialized promise:
if ((window as any).OneTrust) {
(window as any).OneTrust.NoticeApi.Initialized.then(() => {
(window as any).OneTrust.NoticeApi.LoadNotices([
'https://privacyportalde-cdn.onetrust.com/77f17844-04c3-4969-a11d-462ee77acbe1/privacy-notices/5657e5a3-e052-4a97-b533-c60f1c2e1a29.json',
]);
});
}
}}
/>
</Box>
);
const PrivacyPolicy = () => {
return <PrivacyPolicyTemplate />;
};

export default PrivacyPolicy;
43 changes: 13 additions & 30 deletions apps/nextjs-website/src/app/terms-of-service/page.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
'use client';
import { Box } from '@mui/material';
import Script from 'next/script';
import TermsOfServiceTemplate from '@/components/templates/TermsOfServiceTemplate/TermsOfServiceTemplate';
import { baseUrl } from '@/config';
import { makeMetadata } from '@/helpers/metadata.helpers';
import { Metadata } from 'next';

const TermsOfService = () => {
return (
<Box py={6}>
<div
id='otnotice-30a52037-d537-4347-9dfc-cfc0cc7d5d13'
className='otnotice'
/>
export async function generateMetadata(): Promise<Metadata> {
return makeMetadata({
title: 'Termini e condizioni',
url: `${baseUrl}/terms-of-service`,
locale: 'it_IT',
});
}

<Script
src='https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js'
type='text/javascript'
id='otprivacy-notice-script'
onReady={() => {
// eslint-disable-next-line no-var
var settings =
'eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9';
if ((window as any).OneTrust) {
// To ensure external settings are loaded, use the Initialized promise:
(window as any).OneTrust.NoticeApi.Initialized.then(() => {
(window as any).OneTrust.NoticeApi.LoadNotices([
'https://privacyportalde-cdn.onetrust.com/77f17844-04c3-4969-a11d-462ee77acbe1/privacy-notices/30a52037-d537-4347-9dfc-cfc0cc7d5d13.json',
]);
});
}
}}
/>
</Box>
);
const TermsOfService = () => {
return <TermsOfServiceTemplate />;
};

export default TermsOfService;
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
'use client';
import { Box } from '@mui/material';
import Script from 'next/script';

const PrivacyPolicyTemplate = () => {
return (
<Box py={6}>
<div
id='otnotice-5657e5a3-e052-4a97-b533-c60f1c2e1a29'
className='otnotice'
/>

<Script
src='https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js'
type='text/javascript'
id='otprivacy-notice-script'
onReady={() => {
// eslint-disable-next-line no-var
var settings =
'eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9';
// To ensure external settings are loaded, use the Initialized promise:
if ((window as any).OneTrust) {
(window as any).OneTrust.NoticeApi.Initialized.then(() => {
(window as any).OneTrust.NoticeApi.LoadNotices([
'https://privacyportalde-cdn.onetrust.com/77f17844-04c3-4969-a11d-462ee77acbe1/privacy-notices/5657e5a3-e052-4a97-b533-c60f1c2e1a29.json',
]);
});
}
}}
/>
</Box>
);
};

export default PrivacyPolicyTemplate;
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
'use client';
import { Box } from '@mui/material';
import Script from 'next/script';

const TermsOfServiceTemplate = () => {
return (
<Box py={6}>
<div
id='otnotice-30a52037-d537-4347-9dfc-cfc0cc7d5d13'
className='otnotice'
/>

<Script
src='https://privacyportalde-cdn.onetrust.com/privacy-notice-scripts/otnotice-1.0.min.js'
type='text/javascript'
id='otprivacy-notice-script'
onReady={() => {
// eslint-disable-next-line no-var
var settings =
'eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vcHJpdmFjeXBvcnRhbC1kZS5vbmV0cnVzdC5jb20vcmVxdWVzdC92MS9wcml2YWN5Tm90aWNlcy9zdGF0cy92aWV3cyJ9';
if ((window as any).OneTrust) {
// To ensure external settings are loaded, use the Initialized promise:
(window as any).OneTrust.NoticeApi.Initialized.then(() => {
(window as any).OneTrust.NoticeApi.LoadNotices([
'https://privacyportalde-cdn.onetrust.com/77f17844-04c3-4969-a11d-462ee77acbe1/privacy-notices/30a52037-d537-4347-9dfc-cfc0cc7d5d13.json',
]);
});
}
}}
/>
</Box>
);
};

export default TermsOfServiceTemplate;

0 comments on commit 288119c

Please sign in to comment.