mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 00:09:39 -06:00
Add banner
This commit is contained in:
parent
eeb8544b14
commit
2f1669a7a8
@ -1,6 +1,16 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="fixed h-12 w-full z-50 top-0">
|
||||
<div class="h-12 w-full bg-black flex items-center justify-center px-4">
|
||||
<p class="text-grey-lightest font-semibold">
|
||||
Stand with Ukraine 🇺🇦
|
||||
<a class="text-blue-lighter" href="https://www.savethechildren.org/us/where-we-work/ukraine" target="_blank" rel="noindex nofollow noopener">Donate</a>
|
||||
<a class="text-blue-lighter" href="https://razomforukraine.org/" target="_blank" rel="noindex nofollow noopener">Today.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="theme-container"
|
||||
class="theme-container mt-12"
|
||||
:class="pageClasses"
|
||||
@touchstart="onTouchStart"
|
||||
@touchend="onTouchEnd"
|
||||
@ -20,16 +30,17 @@
|
||||
<slot name="page-bottom" slot="bottom"/>
|
||||
</Page>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from "vue";
|
||||
import nprogress from "nprogress";
|
||||
import Home from "./Home.vue";
|
||||
import Navbar from "./Navbar.vue";
|
||||
import Page from "./Page.vue";
|
||||
import Sidebar from "./Sidebar.vue";
|
||||
import { resolveSidebarItems } from "./util";
|
||||
import Vue from 'vue';
|
||||
import nprogress from 'nprogress';
|
||||
import Home from './Home.vue';
|
||||
import Navbar from './Navbar.vue';
|
||||
import Page from './Page.vue';
|
||||
import Sidebar from './Sidebar.vue';
|
||||
import { resolveSidebarItems } from './util';
|
||||
|
||||
export default {
|
||||
components: { Home, Page, Sidebar, Navbar },
|
||||
@ -75,9 +86,9 @@ export default {
|
||||
const userPageClass = this.$page.frontmatter.pageClass;
|
||||
return [
|
||||
{
|
||||
"no-navbar": !this.shouldShowNavbar,
|
||||
"sidebar-open": this.isSidebarOpen,
|
||||
"no-sidebar": !this.shouldShowSidebar
|
||||
'no-navbar': !this.shouldShowNavbar,
|
||||
'sidebar-open': this.isSidebarOpen,
|
||||
'no-sidebar': !this.shouldShowSidebar
|
||||
},
|
||||
userPageClass
|
||||
];
|
||||
@ -85,7 +96,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
window.addEventListener("scroll", this.onScroll);
|
||||
window.addEventListener('scroll', this.onScroll);
|
||||
|
||||
// configure progress bar
|
||||
nprogress.configure({ showSpinner: false });
|
||||
@ -105,7 +116,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
toggleSidebar(to) {
|
||||
this.isSidebarOpen = typeof to === "boolean" ? to : !this.isSidebarOpen;
|
||||
this.isSidebarOpen = typeof to === 'boolean' ? to : !this.isSidebarOpen;
|
||||
},
|
||||
// side swipe
|
||||
onTouchStart(e) {
|
||||
|
||||
@ -6,7 +6,7 @@ $arrow-bg: #000;
|
||||
}
|
||||
|
||||
@apply .fixed .left-0 .bottom-0 .bg-white .overflow-auto .border-r .border-grey-lighter .py-8;
|
||||
top: 56px;
|
||||
top: calc(3rem + 56px);
|
||||
width: 20rem;
|
||||
font-size: 15px;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user