Commit a9f3c92ced
Unregistered key
Layout: unified · split
docs/index.md +73 −13
| @@ -1,18 +1,8 @@ | ||
| 1 | 1 | --- |
| 2 | 2 | title: Home |
| 3 | layout: home | |
| 4 | ||
| 5 | hero: | |
| 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 | ||
| 15 | aside: left | |
| 3 | layout: page | |
| 4 | sidebar: false | |
| 5 | aside: false | |
| 16 | 6 | |
| 17 | 7 | customDescription: A wiki that covers everything weeb-related! |
| 18 | 8 | |
| @@ -52,11 +42,81 @@ features: | ||
| 52 | 42 | --- |
| 53 | 43 | |
| 54 | 44 | <script setup> |
| 45 | import { useData } from 'vitepress' | |
| 46 | import { VPFeatures } from 'vitepress/theme' | |
| 55 | 47 | import DevOnly from './.vitepress/theme/components/DevOnly.vue' |
| 48 | ||
| 49 | const { frontmatter } = useData() | |
| 56 | 50 | </script> |
| 57 | 51 | |
| 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 | ||
| 58 | 64 | <DevOnly> |
| 59 | 65 | <div class="vp-doc vp-doc-content"> |
| 60 | 66 | Sandbox: <a href="/sandbox">/sandbox</a> |
| 61 | 67 | </div> |
| 62 | 68 | </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> | |