-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
96 additions
and
60 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
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; |
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 |
---|---|---|
@@ -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; |
35 changes: 35 additions & 0 deletions
35
apps/nextjs-website/src/components/templates/PrivacyPolicyTemplate/PrivacyPolicyAtom.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,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; |
35 changes: 35 additions & 0 deletions
35
...nextjs-website/src/components/templates/TermsOfServiceTemplate/TermsOfServiceTemplate.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,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; |