perf: avoid layout re-rendering

This commit is contained in:
Riccardo
2024-01-25 18:12:37 +01:00
parent 551bff815f
commit dbefdc49e2
15 changed files with 137 additions and 135 deletions

View File

@@ -1,7 +1,7 @@
import { Analytics } from '@vercel/analytics/react';
import type { Metadata } from 'next';
import { Inter as FontSans } from 'next/font/google';
import { Background } from '../components/custom/background/background';
import { Tiles } from '../components/custom/tiles/tiles';
import { cn } from '../utils/ui';
import './globals.css';
@@ -30,9 +30,9 @@ export default function RootLayout({
fontSans.variable
)}
>
<Background>
<Tiles>
<div style={{ zIndex: 2 }}>{children}</div>
</Background>
</Tiles>
<Analytics />
</body>
</html>

View File

@@ -1,4 +1,5 @@
'use client';
import Link from 'next/link';
import { Card } from '../../components/custom/card';
export default function Privacy() {
@@ -15,12 +16,12 @@ export default function Privacy() {
the Service, You agree to the collection and use of information in
accordance with this Privacy Policy. This Privacy Policy has been
created with the help of the{' '}
<a
<Link
href='https://www.termsfeed.com/privacy-policy-generator/'
target='_blank'
>
Privacy Policy Generator
</a>
</Link>
.
</p>
<br />
@@ -420,9 +421,13 @@ export default function Privacy() {
<ul>
<li>
By visiting this page on our website:{' '}
<a href={'/privacy'} rel='external nofollow noopener' target='_blank'>
<Link
href={'/privacy'}
rel='external nofollow noopener'
target='_blank'
>
Privacy Policy
</a>
</Link>
</li>
</ul>
</div>