aboutsummaryrefslogtreecommitdiff
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
parent1ff554fefe5a960e544c49fdd47fd1f0963e8ebc (diff)
downloadNexus-7fcd0059ee3507886fb50be467e562c3337e62c2.tar.gz
Nexus-7fcd0059ee3507886fb50be467e562c3337e62c2.tar.bz2
Nexus-7fcd0059ee3507886fb50be467e562c3337e62c2.zip
Add view transitions
-rw-r--r--apps/website/src/layouts/Layout.astro10
-rw-r--r--apps/website/src/types/Config.d.ts10
2 files changed, 16 insertions, 4 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>
diff --git a/apps/website/src/types/Config.d.ts b/apps/website/src/types/Config.d.ts
index 6ba2756..5b1e283 100644
--- a/apps/website/src/types/Config.d.ts
+++ b/apps/website/src/types/Config.d.ts
@@ -2,11 +2,19 @@ import type { configConst } from 'config';
export type LogoType = (typeof configConst.logos)[number];
+export interface ProjectDownload {
+ url: string,
+ platform?: "windows" | "mac" | "linux" | "universal",
+ architecture?: "x86" | "x64" | "arm" | "arm64" | "universal",
+}
+
export interface Project {
name: string
- description: string
+ description: string,
logo?: LogoType
tag?: string
+ downloads?: ProjectDownload[]
+ descriptionLong?: string,
}
export interface NavbarDropdown {