Merge pull request #790 from automatisch/docs/github-stars

docs: Add cta for github stars
This commit is contained in:
Ömer Faruk Aydın
2022-12-12 11:56:43 +03:00
committed by GitHub
3 changed files with 81 additions and 1 deletions

View File

@@ -0,0 +1,51 @@
<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;
justify-content: center;
align-items: center;
display: flex;
position: fixed;
padding: 4px 40px;
z-index: 999999;
font-size: 0.875rem;
font-weight: 400;
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

@@ -117,9 +117,33 @@
:root {
overflow-y: scroll;
--announcement-bar-height: 50px;
}
.VPTeamMembersItem .avatar-img {
top: 50%;
transform: translateY(-50%);
}
header.VPNav {
margin-top: 50px;
}
.VPNavScreen.VPNavScreen {
top: calc(var(--announcement-bar-height) + var(--vp-nav-height-mobile));
}
.VPLocalNav.VPLocalNav {
top: 50px;
}
aside.VPSidebar {
margin-top: 50px;
}
@media (min-width: 960px) {
#VPContent {
margin-top: 50px;
}
}

View File

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