aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/layouts
diff options
context:
space:
mode:
authorLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 14:48:19 +0100
committerLynithDev <61880709+LynithDev@users.noreply.github.com>2023-12-28 14:48:19 +0100
commit97cf84050204a670f53b88fbe273fe62e60f23e7 (patch)
tree9a70152d10dcc00d40ce932156ed0b93d3db118e /apps/website/src/layouts
parent98f4ee1dc2f505b0caa9c08b05935b78cc206007 (diff)
downloadNexus-97cf84050204a670f53b88fbe273fe62e60f23e7.tar.gz
Nexus-97cf84050204a670f53b88fbe273fe62e60f23e7.tar.bz2
Nexus-97cf84050204a670f53b88fbe273fe62e60f23e7.zip
Remove page transitions
Diffstat (limited to 'apps/website/src/layouts')
-rw-r--r--apps/website/src/layouts/Layout.astro26
1 files changed, 2 insertions, 24 deletions
diff --git a/apps/website/src/layouts/Layout.astro b/apps/website/src/layouts/Layout.astro
index 32cebed..f5d4df9 100644
--- a/apps/website/src/layouts/Layout.astro
+++ b/apps/website/src/layouts/Layout.astro
@@ -1,7 +1,6 @@
---
import Footer from '@components/base/Footer.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';
@@ -16,26 +15,6 @@ const {
description = 'Official website for Polyfrost.',
favicon = Favicon,
} = Astro.props;
-
-const fadeAnimation = {
- old: {
- name: 'fadeOut',
- duration: '0.1s',
- easing: 'linear',
- fillMode: 'forwards',
- },
- new: {
- name: 'fadeIn',
- duration: '0.1s',
- easing: 'linear',
- fillMode: 'backwards',
- },
-};
-
-const fade = {
- forwards: fadeAnimation,
- backwards: fadeAnimation,
-};
---
<!doctype html>
@@ -53,11 +32,10 @@ const fade = {
<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" transition:animate={fade}>
- <Navbar transition:animate="none" transition:persist />
+ <body class="bg-gray-50 overflow-x-hidden">
+ <Navbar />
<main class="min-h-screen h-auto">
<slot/>