Fix styling issues on the privacy page (#176)

Fixes #176
This commit is contained in:
Philip 2023-02-19 17:21:36 +01:00
parent 142376e408
commit f1e8f73298
5 changed files with 16 additions and 12 deletions

View file

@ -10,5 +10,13 @@ module.exports = withPWA({
i18n: {
locales: ['de', 'en', 'fr', 'es'],
defaultLocale: 'en',
},
async rewrites() {
return [
{
source: '/datenschutz',
destination: '/privacy-policy',
},
]
}
});

View file

@ -66,16 +66,8 @@ export default function Nav() {
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="msapplication-starturl" content="/" />
<meta
name="theme-color"
media="(prefers-color-scheme: light)"
content="#7f8fa6"
/>
<meta
name="theme-color"
media="(prefers-color-scheme: dark)"
content="#141414"
/>
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#7f8fa6"/>
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#141414" />
<link rel="manifest" href="/manifest.json" />

View file

@ -22,7 +22,7 @@ const PrivacyPolicy = () => {
<p className="small">
{t('germanonly')}
</p>
<div dangerouslySetInnerHTML={{ __html: datenschutz }} />
<div className="privacy" dangerouslySetInnerHTML={{ __html: datenschutz }} />
</Container>
</>
);

View file

@ -0,0 +1,4 @@
.privacy {
word-wrap: break-word;
hyphens: auto;
}

View file

@ -2,7 +2,7 @@
@import '_globals/normalize', '_globals/animate', '_globals/vegancheckicons', '_globals/mixins', '_globals/fonts', '_globals/roots';
/* Import scss pages */
@import '_pages/body', '_pages/frontpage';
@import '_pages/body', '_pages/frontpage', '_pages/more';
/* Import modules */
@import '_modules/modals', '_modules/form', '_modules/label', '_modules/scanner', '_modules/overlays', '_modules/buttons', '_modules/banner', '_modules/navbar', '_modules/nutriscore';