-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reduce with of custom pages to 1024px for easier readability
- Loading branch information
1 parent
2da89e3
commit c9c7def
Showing
4 changed files
with
77 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,58 +1,78 @@ | ||
// SPDX-FileCopyrightText: 2022 Dusan Mijatovic (dv4all) | ||
// SPDX-FileCopyrightText: 2022 Matthias Rüster (GFZ) <[email protected]> | ||
// SPDX-FileCopyrightText: 2022 dv4all | ||
// SPDX-FileCopyrightText: 2024 Dusan Mijatovic (Netherlands eScience Center) | ||
// SPDX-FileCopyrightText: 2024 Netherlands eScience Center | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import Head from 'next/head' | ||
import {GetServerSidePropsContext} from 'next/types' | ||
|
||
import {app} from '~/config/app' | ||
import DefaultLayout from '~/components/layout/DefaultLayout' | ||
import AppHeader from '~/components/AppHeader' | ||
import AppFooter from '~/components/AppFooter' | ||
import PageTitle from '~/components/layout/PageTitle' | ||
import MatomoTracking, {MatomoTrackingProps} from '~/components/cookies/MatomoTracking' | ||
import {getMatomoConsent} from '~/components/cookies/nodeCookies' | ||
import PageMeta from '~/components/seo/PageMeta' | ||
import OgMetaTags from '~/components/seo/OgMetaTags' | ||
import PageBackground from '~/components/layout/PageBackground' | ||
import MainContent from '~/components/layout/MainContent' | ||
|
||
const pageTitle = `Cookies | ${app.title}` | ||
const description = ` | ||
Cookies are small blocks of data created by our website and stored by your web browser on your computer. | ||
Using cookies allows our website to store information between your visits. You have full control over | ||
these cookies and can deactivate or restrict them by changing your web browser's cookie settings. | ||
Any cookies already stored can be deleted at any time. This may limit the functionality of our website, | ||
however. | ||
` | ||
|
||
export default function Cookies({matomoId,matomoConsent}: MatomoTrackingProps) { | ||
|
||
// console.group('Cookies') | ||
// console.log('matomoId...', matomoId) | ||
// console.log('matomoConsent...', matomoConsent) | ||
// console.groupEnd() | ||
return ( | ||
<DefaultLayout> | ||
<Head> | ||
<title>{pageTitle}</title> | ||
</Head> | ||
|
||
<PageTitle title="Cookies" /> | ||
|
||
<p className="mb-4"> | ||
Cookies are small blocks of data created by our website and stored by your web browser on your computer. | ||
Using cookies allows our website to store information between your visits. You have full control over | ||
these cookies and can deactivate or restrict them by changing your web browser's cookie settings. | ||
Any cookies already stored can be deleted at any time. This may limit the functionality of our website, | ||
however. | ||
</p> | ||
return ( | ||
<> | ||
{/* Page Head meta tags */} | ||
<PageMeta | ||
title={pageTitle} | ||
description={description} | ||
/> | ||
<OgMetaTags | ||
title={pageTitle} | ||
description={description} | ||
/> | ||
<PageBackground> | ||
<AppHeader/> | ||
<MainContent className="lg:w-[64rem] lg:mx-auto lg:px-12 pb-12 bg-base-100"> | ||
<PageTitle title="Cookies" /> | ||
|
||
<h2 className="mb-4">Functional cookies</h2> | ||
<p className="mb-4"> | ||
{description} | ||
</p> | ||
|
||
<p className="mb-8"> | ||
We use several functional cookies that are necessary for our website to function. | ||
These are used to remember your privacy preferences and if you are logged in to the website. You can set your browser to block these cookies, | ||
but some parts of the site will not work properly if you do so. | ||
</p> | ||
<h2 className="mb-4">Functional cookies</h2> | ||
|
||
{ /* Matomo specific section */ } | ||
<MatomoTracking | ||
matomoId={matomoId} | ||
matomoConsent={matomoConsent} | ||
/> | ||
<p className="mb-8"> | ||
We use several functional cookies that are necessary for our website to function. | ||
These are used to remember your privacy preferences and if you are logged in to the website. You can set your browser to block these cookies, | ||
but some parts of the site will not work properly if you do so. | ||
</p> | ||
|
||
<div className="py-8"></div> | ||
{ /* Matomo specific section */ } | ||
<MatomoTracking | ||
matomoId={matomoId} | ||
matomoConsent={matomoConsent} | ||
/> | ||
|
||
</DefaultLayout> | ||
</MainContent> | ||
<AppFooter/> | ||
</PageBackground> | ||
</> | ||
) | ||
} | ||
|
||
|
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