Skip to content

Commit

Permalink
Remove page transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev committed Dec 28, 2023
1 parent 98f4ee1 commit 97cf840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 45 deletions.
26 changes: 2 additions & 24 deletions apps/website/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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>
Expand All @@ -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/>
Expand Down
21 changes: 0 additions & 21 deletions apps/website/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 97cf840

Please sign in to comment.