mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Add banner
This commit is contained in:
parent
cbce3348f2
commit
27a2cdcaeb
5 changed files with 65 additions and 4 deletions
|
|
@ -17,6 +17,11 @@ export default withMermaid({
|
||||||
provider: "local"
|
provider: "local"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
footer: {
|
||||||
|
message: 'Released under the MIT License.',
|
||||||
|
copyright: 'Copyright © 2023-present centau'
|
||||||
|
},
|
||||||
|
|
||||||
// https://vitepress.dev/reference/default-theme-config
|
// https://vitepress.dev/reference/default-theme-config
|
||||||
nav: [
|
nav: [
|
||||||
{ text: "Home", link: "/" },
|
{ text: "Home", link: "/" },
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
// .vitepress/theme/index.js
|
// .vitepress/theme/index.js
|
||||||
import DefaultTheme from 'vitepress/theme'
|
import DefaultTheme from 'vitepress/theme'
|
||||||
|
import layout from './layout.vue'
|
||||||
import './vars.css'
|
import './vars.css'
|
||||||
|
|
||||||
export default DefaultTheme
|
export default {
|
||||||
|
extends: DefaultTheme,
|
||||||
|
Layout: layout
|
||||||
|
}
|
||||||
16
docs/.vitepress/theme/layout.vue
Normal file
16
docs/.vitepress/theme/layout.vue
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<!--.vitepress/theme/MyLayout.vue-->
|
||||||
|
<script setup>
|
||||||
|
import DefaultTheme from 'vitepress/theme'
|
||||||
|
|
||||||
|
const { Layout } = DefaultTheme
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<Layout>
|
||||||
|
<template #layout-top>
|
||||||
|
<div class="banner">
|
||||||
|
Vide is 0.x software and may go through breaking changes through different versions
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</Layout>
|
||||||
|
</template>
|
||||||
|
|
@ -1,6 +1,39 @@
|
||||||
|
.banner {
|
||||||
|
background-color: var(--vp-button-brand-bg) !important;
|
||||||
|
color: rgba(255, 255, 255, 100%);
|
||||||
|
width: 100%;
|
||||||
|
height: 1.5rem;
|
||||||
|
text-align: center;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 30;
|
||||||
|
}
|
||||||
|
|
||||||
|
.VPNav {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.VPSidebar {
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--vp-c-brand-1: #3086ff;
|
--vp-c-brand-1: #3086ff;
|
||||||
|
|
||||||
|
--vp-button-brand-bg: #3661A2;
|
||||||
|
--vp-button-brand-hover-bg: #24447F;
|
||||||
|
--vp-button-brand-press-bg: #4896F3;
|
||||||
|
|
||||||
|
--vp-home-hero-name-color: transparent;
|
||||||
|
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #3661A2, #4896F3);
|
||||||
|
--vp-home-hero-logo-background: -webkit-linear-gradient(120deg, #3661A2, #4896F3);
|
||||||
|
|
||||||
|
--vp-home-hero-image-background-image: linear-gradient(
|
||||||
|
135deg,
|
||||||
|
#1D314F 50%,
|
||||||
|
#2A57A2 50%
|
||||||
|
);
|
||||||
|
--vp-home-hero-image-filter: blur(96px);
|
||||||
|
|
||||||
--vp-c-bg: #f2f5f8;
|
--vp-c-bg: #f2f5f8;
|
||||||
--vp-c-bg-alt: #dfe8f5;
|
--vp-c-bg-alt: #dfe8f5;
|
||||||
--vp-c-bg-elv: #dde7f4;
|
--vp-c-bg-elv: #dde7f4;
|
||||||
|
|
@ -20,4 +53,10 @@
|
||||||
--vp-c-border: #111720;
|
--vp-c-border: #111720;
|
||||||
--vp-c-divider: #181d27;
|
--vp-c-divider: #181d27;
|
||||||
--vp-c-gutter: #181d27;
|
--vp-c-gutter: #181d27;
|
||||||
|
|
||||||
|
--vp-home-hero-image-background-image: linear-gradient(
|
||||||
|
-45deg,
|
||||||
|
#3D506C 50%,
|
||||||
|
#2F415C 50%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -24,7 +24,4 @@ features:
|
||||||
details: Syntax built to be minimal while also obvious and easy to understand to anyone
|
details: Syntax built to be minimal while also obvious and easy to understand to anyone
|
||||||
- title: Fully Luau Typecheckable
|
- title: Fully Luau Typecheckable
|
||||||
details: Ensure you write correct code through the Luau typechecking engine.
|
details: Ensure you write correct code through the Luau typechecking engine.
|
||||||
- title: In Development
|
|
||||||
details: Not recommended for production use.
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue