aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/layouts
diff options
context:
space:
mode:
authorLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 11:08:25 +0100
committerLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 11:08:25 +0100
commit7fcd0059ee3507886fb50be467e562c3337e62c2 (patch)
treed3b2c65a0c1fba2b75a85f0f26c680adab2d6b67 /apps/website/src/layouts
parent1ff554fefe5a960e544c49fdd47fd1f0963e8ebc (diff)
downloadNexus-7fcd0059ee3507886fb50be467e562c3337e62c2.tar.gz
Nexus-7fcd0059ee3507886fb50be467e562c3337e62c2.tar.bz2
Nexus-7fcd0059ee3507886fb50be467e562c3337e62c2.zip
Add view transitions
Diffstat (limited to 'apps/website/src/layouts')
-rw-r--r--apps/website/src/layouts/Layout.astro10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro
index ccce067..d5b61cd 100644
--- a/apps/website/src/layouts/Layout.astro
+++ b/apps/website/src/layouts/Layout.astro
@@ -1,8 +1,9 @@
---
-import '../styles/global.css';
import Footer from '@components/base/Footer.astro';
-import Navbar from '../components/base/navbar/Navbar.astro';
import Favicon from '/media/polyfrost/minimal_bg.svg?url';
+import { ViewTransitions } from 'astro:transitions';
+import Navbar from '../components/base/navbar/Navbar.astro';
+import '../styles/global.css';
interface Props {
title?: string
@@ -32,13 +33,16 @@ const {
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@0;1&display=swap" rel="stylesheet"/>
<title>{title}</title>
+ <ViewTransitions />
</head>
<body class="bg-gray-50 overflow-x-hidden">
<Navbar/>
- <main class="min-h-screen h-auto">
+
+ <main class="min-h-screen h-auto" transition:animate="fade">
<slot/>
</main>
+
<Footer/>
</body>
</html>