docs/index.md
88 lines · 1613 bytes
1---
2title: Wotaku
3layout: page
4sidebar: false
5aside: false
6
7customDescription: A wiki that covers everything weeb-related!
8---
9
10<script setup>
11import HomeFeatures from './.vitepress/theme/components/HomeFeatures.vue'
12import DevOnly from './.vitepress/theme/components/DevOnly.vue'
13import { homeCards } from './.vitepress/configs/constants'
14</script>
15
16<main class="wotaku-home">
17 <section class="wotaku-hero" aria-labelledby="wotaku-hero-title">
18 <img class="wotaku-hero-logo" src="/asset/hero.svg" alt="Wotaku" />
19 </section>
20
21 <HomeFeatures :cards="homeCards" />
22</main>
23
24<DevOnly>
25 <div class="vp-doc vp-doc-content">
26 Sandbox: <a href="/sandbox">/sandbox</a>
27 </div>
28</DevOnly>
29
30<style scoped>
31.wotaku-home {
32 padding: 48px 0 72px;
33}
34
35.wotaku-hero {
36 display: flex;
37 flex-direction: column;
38 align-items: center;
39 margin: 0 auto 56px;
40 padding: 0 24px;
41 max-width: 960px;
42 text-align: center;
43}
44
45.wotaku-hero-logo {
46 margin-bottom: 24px;
47 width: min(280px, 72vw);
48 height: auto;
49}
50
51@media (min-width: 640px) {
52 .wotaku-hero-logo {
53 width: 420px;
54 }
55}
56
57.wotaku-hero h1 {
58 margin: 0;
59 max-width: 760px;
60 border-top: 0;
61 padding-top: 0;
62 line-height: 1.05;
63 font-size: clamp(48px, 8vw, 76px);
64 font-weight: 800;
65 letter-spacing: -0.04em;
66 color: var(--vp-c-text-1);
67}
68
69.wotaku-hero-description {
70 margin: 20px 0 0;
71 max-width: 620px;
72 line-height: 1.6;
73 font-size: 20px;
74 font-weight: 500;
75 color: var(--vp-c-text-2);
76}
77
78@media (min-width: 640px) {
79 .wotaku-home {
80 padding-top: 72px;
81 }
82
83 .wotaku-hero {
84 margin-bottom: 72px;
85 padding: 0 48px;
86 }
87}
88</style>