feat: Add banner to announce Lysand 3.0

This commit is contained in:
Jesse Wierzbinski 2024-05-01 18:21:10 -10:00
parent 94e5ac67f7
commit 2039582edd
No known key found for this signature in database
7 changed files with 39 additions and 2 deletions

View file

@ -0,0 +1,13 @@
<script setup>
import DefaultTheme from 'vitepress/theme'
import Banner from '../../components/Banner.vue';
import "iconify-icon";
const { Layout } = DefaultTheme
</script>
<template>
<Banner />
<Layout>
</Layout>
</template>

View file

@ -12,6 +12,7 @@
--vp-home-hero-image-filter: brightness(0.8) saturate(1.2); */ --vp-home-hero-image-filter: brightness(0.8) saturate(1.2); */
--vp-home-hero-name-color: rgb(249, 168, 212); --vp-home-hero-name-color: rgb(249, 168, 212);
--vp-c-brand-1: rgb(249, 168, 212); --vp-c-brand-1: rgb(249, 168, 212);
--vp-layout-top-height: var(--spacing-10);
--lysand-gradient: linear-gradient( --lysand-gradient: linear-gradient(
to right, to right,
rgb(249, 168, 212), rgb(249, 168, 212),

View file

@ -1,4 +1,8 @@
import DefaultTheme from "vitepress/theme"; import DefaultTheme from "vitepress/theme";
import Layout from "./Layout.vue";
import "./custom.css"; import "./custom.css";
export default DefaultTheme; export default {
extends: DefaultTheme,
Layout,
};

BIN
bun.lockb

Binary file not shown.

19
components/Banner.vue Normal file
View file

@ -0,0 +1,19 @@
<script setup lang="ts">
const currentNews = {
id: "lysand3",
title: "Lysand 3.0",
description: "Lysand 3.0 is now available!",
};
</script>
<template>
<div
class="fixed inset-x-0 top-0 flex items-center h-10 gap-x-6 overflow-hidden bg-black px-4 py-2.5 sm:px-3.5 sm:before:flex-1 z-50">
<div class="flex flex-wrap justify-center gap-x-4 gap-y-2 w-full">
<p class="text-sm text-gray-50">
<strong class="font-semibold">{{
currentNews.title
}}</strong>&nbsp;&nbsp;{{ currentNews.description }}
</p>
</div>
</div>
</template>

View file

@ -26,7 +26,6 @@
</template> </template>
<script setup> <script setup>
import "iconify-icon";
const features = [ const features = [
{ {
name: "JSON-based APIs", name: "JSON-based APIs",

View file

@ -11,6 +11,7 @@
"trustedDependencies": ["@biomejs/biome"], "trustedDependencies": ["@biomejs/biome"],
"dependencies": { "dependencies": {
"@tailwindcss/vite": "^4.0.0-alpha.14", "@tailwindcss/vite": "^4.0.0-alpha.14",
"@vueuse/core": "^10.9.0",
"iconify-icon": "^2.1.0", "iconify-icon": "^2.1.0",
"tailwindcss": "^4.0.0-alpha.14" "tailwindcss": "^4.0.0-alpha.14"
} }