From 97cf84050204a670f53b88fbe273fe62e60f23e7 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Thu, 28 Dec 2023 14:48:19 +0100 Subject: Remove page transitions --- apps/website/src/layouts/Layout.astro | 26 ++------------------------ apps/website/src/styles/global.css | 21 --------------------- 2 files changed, 2 insertions(+), 45 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, -}; --- @@ -53,11 +32,10 @@ const fade = { {title} - - - + +
diff --git a/apps/website/src/styles/global.css b/apps/website/src/styles/global.css index a240f83..f98d574 100644 --- a/apps/website/src/styles/global.css +++ b/apps/website/src/styles/global.css @@ -32,27 +32,6 @@ } } -/* Transition */ -@keyframes fadeIn { - from { - opacity: 0; - } - - to { - opacity: 1; - } -} - -@keyframes fadeOut { - from { - opacity: 1; - } - - to { - opacity: 0; - } -} - /* Codeblocks */ .astro-code { padding: 10px; -- cgit