-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean(components): Remove template components
- Loading branch information
Showing
10 changed files
with
14 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github: antfu | ||
github: bonbisu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
<template> | ||
<main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200"> | ||
<main class="text-gray-700 dark:text-gray-200"> | ||
<RouterView /> | ||
<Footer /> | ||
<div class="mt-5 mx-auto text-center opacity-75 dark:opacity-50 text-sm"> | ||
[Default Layout] | ||
</div> | ||
</main> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,19 @@ | ||
<script setup lang="ts"> | ||
const user = useUserStore() | ||
const name = $ref(user.savedName) | ||
// const user = useUserStore() | ||
// const name = $ref(user.savedName) | ||
const router = useRouter() | ||
const go = () => { | ||
if (name) | ||
router.push(`/hi/${encodeURIComponent(name)}`) | ||
} | ||
const { t } = useI18n() | ||
// const router = useRouter() | ||
// router.push(`/hi/${encodeURIComponent(name)}`) | ||
// const { t } = useI18n() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<div text-4xl> | ||
<div i-carbon-campsite inline-block /> | ||
</div> | ||
<p> | ||
<a rel="noreferrer" href="https://github.com/antfu/vitesse" target="_blank"> | ||
Vitesse | ||
</a> | ||
</p> | ||
<p> | ||
<em text-sm opacity-75>{{ t('intro.desc') }}</em> | ||
</p> | ||
|
||
<div py-4 /> | ||
|
||
<input | ||
id="input" | ||
v-model="name" | ||
:placeholder="t('intro.whats-your-name')" | ||
:aria-label="t('intro.whats-your-name')" | ||
type="text" | ||
autocomplete="false" | ||
p="x4 y2" | ||
w="250px" | ||
text="center" | ||
bg="transparent" | ||
border="~ rounded gray-200 dark:gray-700" | ||
outline="none active:none" | ||
@keydown.enter="go" | ||
> | ||
<label class="hidden" for="input">{{ t('intro.whats-your-name') }}</label> | ||
|
||
<div> | ||
<button | ||
btn m-3 text-sm | ||
:disabled="!name" | ||
@click="go" | ||
> | ||
{{ t('button.go') }} | ||
</button> | ||
</div> | ||
Landing Page | ||
</div> | ||
</template> | ||
|
||
<route lang="yaml"> | ||
meta: | ||
layout: home | ||
layout: default | ||
</route> |