Commit a9f3c92ced

a9f3c92cedaeb928ec02793a6e0ee5dfb010fa80

parent: fe1d52430c

Unregistered key

tasky <75871323+taskylizard@users.noreply.github.com> · 2026-05-16 19:51 UTC
committer: <noreply@github.com>

feat(index): use our new hero icon

Layout: unified · split

docs/index.md +73 −13
@@ -1,18 +1,8 @@
11---
22title: Home
3layout: home
4
5hero:
6 name: 'Wotaku'
7 text: 'The Otaku Index'
8 announcement:
9 title: Extension Repos
10 link: /ext/
11 image:
12 src: \asset\hero.svg
13 alt: Wotaku
14
15aside: left
3layout: page
4sidebar: false
5aside: false
166
177customDescription: A wiki that covers everything weeb-related!
188
@@ -52,11 +42,81 @@ features:
5242---
5343
5444<script setup>
45import { useData } from 'vitepress'
46import { VPFeatures } from 'vitepress/theme'
5547import DevOnly from './.vitepress/theme/components/DevOnly.vue'
48
49const { frontmatter } = useData()
5650</script>
5751
52<main class="wotaku-home">
53 <section class="wotaku-hero" aria-labelledby="wotaku-hero-title">
54 <img class="wotaku-hero-logo" src="/asset/hero.svg" alt="Wotaku" />
55 <h1 id="wotaku-hero-title">The Otaku Index</h1>
56 <p class="wotaku-hero-description">
57 A wiki that covers everything weeb-related!
58 </p>
59 </section>
60
61 <VPFeatures :features="frontmatter.features" />
62</main>
63
5864<DevOnly>
5965 <div class="vp-doc vp-doc-content">
6066 Sandbox: <a href="/sandbox">/sandbox</a>
6167 </div>
6268</DevOnly>
69
70<style scoped>
71.wotaku-home {
72 padding: 48px 0 72px;
73}
74
75.wotaku-hero {
76 display: flex;
77 flex-direction: column;
78 align-items: center;
79 margin: 0 auto 56px;
80 padding: 0 24px;
81 max-width: 960px;
82 text-align: center;
83}
84
85.wotaku-hero-logo {
86 margin-bottom: 24px;
87 width: min(280px, 72vw);
88 height: auto;
89}
90
91.wotaku-hero h1 {
92 margin: 0;
93 max-width: 760px;
94 border-top: 0;
95 padding-top: 0;
96 line-height: 1.05;
97 font-size: clamp(48px, 8vw, 76px);
98 font-weight: 800;
99 letter-spacing: -0.04em;
100 color: var(--vp-c-text-1);
101}
102
103.wotaku-hero-description {
104 margin: 20px 0 0;
105 max-width: 620px;
106 line-height: 1.6;
107 font-size: 20px;
108 font-weight: 500;
109 color: var(--vp-c-text-2);
110}
111
112@media (min-width: 640px) {
113 .wotaku-home {
114 padding-top: 72px;
115 }
116
117 .wotaku-hero {
118 margin-bottom: 72px;
119 padding: 0 48px;
120 }
121}
122</style>