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' {
export interface GlobalComponents {
Bar: typeof import('./components/Bar.vue')['default']
Btn: typeof import('./components/Btn.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}

View File

@ -1,5 +1,5 @@
<template>
<nav px-9xl flex items-center>
<p font-sans font-semibold text-6>thehrz.net</p>
<nav class="px-9xl flex items-center">
<p class="font-sans font-semibold text-6">thehrz.net</p>
</nav>
</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>
<p class="c-dark-100">🚧under construction...</p>
<!-- <btn>aa</btn> -->
<p class="c-dark-100">🚧 under construction...</p>
</section>
</template>

View File

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