pref: update index

This commit is contained in:
thehrz 2023-08-30 22:37:06 +08:00
parent 9c5cb5b551
commit 019d0f6cc1
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
5 changed files with 25 additions and 9 deletions

1
src/components.d.ts vendored
View File

@ -10,6 +10,7 @@ export {}
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
export interface GlobalComponents { export interface GlobalComponents {
Bar: typeof import('./components/Bar.vue')['default'] Bar: typeof import('./components/Bar.vue')['default']
Btn: typeof import('./components/Btn.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
} }

View File

@ -1,5 +1,5 @@
<template> <template>
<nav px-9xl flex items-center> <nav class="px-9xl flex items-center">
<p font-sans font-semibold text-6>thehrz.net</p> <p class="font-sans font-semibold text-6">thehrz.net</p>
</nav> </nav>
</template> </template>

13
src/components/Btn.vue Normal file
View File

@ -0,0 +1,13 @@
<template>
<button type="button" class="">
<slot></slot>
</button>
</template>
<script setup lang="ts">
</script>
<style scoped>
</style>

View File

@ -4,6 +4,8 @@
<h1 class="my-8 text-2.5em leading-[1.1] md:text-3.5em c-coolgray-700 font-300">Hi! I'm thehrz.</h1> <h1 class="my-8 text-2.5em leading-[1.1] md:text-3.5em c-coolgray-700 font-300">Hi! I'm thehrz.</h1>
<p class="c-dark-100">🚧under construction...</p> <!-- <btn>aa</btn> -->
<p class="c-dark-100">🚧 under construction...</p>
</section> </section>
</template> </template>

View File

@ -20,12 +20,12 @@ export default defineConfig({
// mono: "DM Mono", // mono: "DM Mono",
// }, // },
// }), // }),
presetWebFonts({ // presetWebFonts({
fonts: { // fonts: {
sans: "Inter:100,200,400,700,800", // sans: "Inter:100,200,400,700,800",
mono: "IBM Plex Mono", // mono: "IBM Plex Mono",
}, // },
}), // }),
], ],
transformers: [transformerDirectives(), transformerVariantGroup()], transformers: [transformerDirectives(), transformerVariantGroup()],
}) })