Skip to content

Commit b7b783d

Browse files
author
Andrew Welch
committed
Use a custom theme
1 parent 8c689c0 commit b7b783d

File tree

5 files changed

+85
-0
lines changed

5 files changed

+85
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<template>
2+
<div class="nys-footer">
3+
<span>Brought to you by:</span>
4+
<a
5+
href="https://github.com/sponsors/khalwat"
6+
target="_blank"
7+
rel="noopener"
8+
>
9+
<img
10+
src="/resources/img/nys-logo.svg"
11+
aria-label="nystudio107 logo"
12+
/>
13+
</a>
14+
</div>
15+
</template>
16+
17+
<script>
18+
export default {
19+
name: "SidebarBottom"
20+
}
21+
</script>
22+
23+
<style scoped>
24+
.nys-footer {
25+
padding: 0 1.5rem 2rem;
26+
font-size: 0.8rem;
27+
}
28+
29+
.nys-footer img {
30+
box-sizing: border-box;
31+
max-width: 200px;
32+
height: 80px;
33+
display: block;
34+
margin: 1rem 0;
35+
padding-left: 0.7rem;
36+
}
37+
</style>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:root {
2+
--c-brand: #48a391;
3+
--c-brand-light: #5db7a5;
4+
}
5+
6+
.custom-block.tip {
7+
border-color: var(--c-brand-light);
8+
}
9+
10+
.DocSearch {
11+
--docsearch-primary-color: var(--c-brand) !important;
12+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import Theme from 'vitepress/theme'
2+
import {h} from 'vue'
3+
import './custom.css'
4+
5+
import SidebarBottom from './SidebarBottom.vue';
6+
7+
export default {
8+
...Theme,
9+
Layout() {
10+
return h(Theme.Layout, null, {
11+
'sidebar-bottom': () => h(SidebarBottom)
12+
}
13+
)
14+
}
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[
2+
{
3+
"id": "tailwind",
4+
"name": "Tailwind Labs",
5+
"href": "https://tailwindcss.com",
6+
"src": "/tailwind-labs.svg"
7+
},
8+
{
9+
"id": "vuejobs",
10+
"name": "Vue Jobs",
11+
"href": "https://vuejobs.com/?ref=vuejs",
12+
"src": "/vuejobs.png"
13+
},
14+
{
15+
"id": "mux",
16+
"name": "Mux",
17+
"href": "https://mux.com",
18+
"src": "/mux.svg"
19+
}
20+
]
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)