docs: Add cta for github stars

This commit is contained in:
Faruk AYDIN
2022-12-11 15:55:16 +03:00
parent 862734c572
commit 3aafaabda6
3 changed files with 82 additions and 1 deletions

View File

@@ -0,0 +1,64 @@
<style scoped>
.announcement-bar {
background: var(--vp-c-brand-dark);
color: #fff;
border-bottom: 2px solid rgba(194, 194, 194, 0.2);
text-align: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: fixed;
padding: 4px 40px;
z-index: 999999;
font-size: 0.875rem;
font-weight: 400;
text-align: center;
width: 100%;
height: 50px;
}
@media only screen and (max-width: 600px) {
.announcement-bar {
font-size: 0.75rem;
}
}
</style>
<script setup>
import DefaultTheme from 'vitepress/theme';
const { Layout } = DefaultTheme;
</script>
<template>
<Layout>
<template #layout-top>
<div class="announcement-bar">
<span
> If you like what we are doing with Automatisch, please give us a
star on
<strong
><a
href="https://github.com/automatisch/automatisch"
target="_blank"
rel="noreferrer"
>GitHub</a
></strong
>.</span
>
</div>
</template>
</Layout>
</template>

View File

@@ -123,3 +123,15 @@
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
header.VPNav {
margin-top: 50px;
}
aside.VPSidebar {
margin-top: 50px;
}
#VPContent {
margin-top: 50px;
}

View File

@@ -1,3 +1,8 @@
import DefaultTheme from 'vitepress/theme'; import DefaultTheme from 'vitepress/theme';
import './custom.css'; import './custom.css';
export default DefaultTheme; import CustomLayout from './CustomLayout.vue';
export default {
...DefaultTheme,
Layout: CustomLayout,
};