-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
144 additions
and
67 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script setup lang="ts"> | ||
const modelValue = defineModel() | ||
</script> | ||
|
||
<template> | ||
<input | ||
id="input" | ||
v-model="modelValue" | ||
type="text" | ||
v-bind="$attrs" | ||
p="x-4 y-2" | ||
w="200px" | ||
mt-3 | ||
text="center" | ||
bg="transparent" | ||
border="~ rounded gray-200 dark:gray-700" | ||
outline="none active:none" | ||
> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<nav mt-6 inline-flex gap-2 text-xl> | ||
<div flex="~ items-center" m-t-20 justify-center class="logo-link"> | ||
<a href="https://vitejs.dev" target="_blank"> | ||
<img src="/vite.svg" class="logo" alt="Vite logo"> | ||
</a> | ||
<a href="https://vuejs.org/" target="_blank"> | ||
<img src="@/assets/vue.svg" class="logo vue" alt="Vue logo"> | ||
</a> | ||
<a href="https://pinia.vuejs.org/zh/" target="_blank"> | ||
<img src="@/assets/pinia.svg" class="logo pinia" alt="Pinia logo"> | ||
</a> | ||
<a href="https://alfred-skyblue.github.io/" target="_blank"> | ||
<img src="@/assets/unocss.svg" class="logo unocss" alt="UnoCss logo"> | ||
</a> | ||
<a href="https://alova.js.org/zh-CN/" target="_blank"> | ||
<img src="@/assets/alova.svg" class="logo alova" alt="Alova logo"> | ||
</a> | ||
<a href="https://cn.vitest.dev/" target="_blank"> | ||
<img src="@/assets/vitest.png" class="logo pinia" alt="Vitest logo"> | ||
</a> | ||
</div> | ||
</nav> | ||
</template> | ||
|
||
<style scoped> | ||
.logo { | ||
padding: 1em; | ||
height: 6em; | ||
transition: filter 300ms; | ||
will-change: filter; | ||
} | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #646cffaa); | ||
} | ||
.logo.pinia:hover { | ||
filter: drop-shadow(0 0 2em #ffd552); | ||
} | ||
.logo.alova:hover { | ||
filter: drop-shadow(0 0 2em #00b0ed); | ||
} | ||
.logo.unocss:hover { | ||
filter: drop-shadow(0 0 2em #586c43); | ||
} | ||
.logo.vue:hover { | ||
filter: drop-shadow(0 0 2em #42b883aa); | ||
} | ||
</style> |
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,5 +1,8 @@ | ||
<template> | ||
<div> | ||
Not Found | ||
</div> | ||
</template> | ||
<template> | ||
<div> | ||
<div i-streamline-emojis-magnifying-glass-tilted-left inline-block text-4xl /> | ||
<p> | ||
Not Found | ||
</p> | ||
</div> | ||
</template> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,52 @@ | ||
<script setup lang="ts"> | ||
defineOptions({ | ||
name: 'IndexPage', | ||
}) | ||
const router = useRouter() | ||
const indexStore = useIndexStore() | ||
const { count, msg } = storeToRefs(indexStore) | ||
const name = ref('') | ||
const { msg } = storeToRefs(indexStore) | ||
/** | ||
* 跳转链接 | ||
* Navigates to the "hi" route with the value of the "name" input field | ||
* | ||
* @return {void} | ||
*/ | ||
function go(): void { | ||
if (name.value) | ||
router.push(`/hi/${encodeURIComponent(name.value)}`) | ||
} | ||
</script> | ||
|
||
<template> | ||
<div flex="~ items-center" m-t-20 justify-center class="logo-link"> | ||
<a href="https://vitejs.dev" target="_blank"> | ||
<img src="/vite.svg" class="logo" alt="Vite logo"> | ||
</a> | ||
<a href="https://vuejs.org/" target="_blank"> | ||
<img src="@/assets/vue.svg" class="logo vue" alt="Vue logo"> | ||
</a> | ||
<a href="https://pinia.vuejs.org/zh/" target="_blank"> | ||
<img src="@/assets/pinia.svg" class="logo pinia" alt="Pinia logo"> | ||
</a> | ||
<a href="https://alfred-skyblue.github.io/" target="_blank"> | ||
<img src="@/assets/unocss.svg" class="logo unocss" alt="UnoCss logo"> | ||
</a> | ||
<a href="https://alova.js.org/zh-CN/" target="_blank"> | ||
<img src="@/assets/alova.svg" class="logo alova" alt="Alova logo"> | ||
</a> | ||
<a href="https://cn.vitest.dev/" target="_blank"> | ||
<img src="@/assets/vitest.png" class="logo pinia" alt="Vitest logo"> | ||
</a> | ||
</div> | ||
<h2 m-3 text-7 font-bold> | ||
{{ msg }} | ||
<TheStudy /> | ||
<h2 m-3> | ||
<o-text class="read-the-docs" font="bold" text-6 font-bold size="lg" gradient="linear-gradient(to right, #0c02ba, #00ff95)"> | ||
{{ msg }} | ||
</o-text> | ||
</h2> | ||
<div class="card"> | ||
<button type="button" p="t-2 b-2 l-3 r-3" m-2 cursor-pointer border border-rd-3 font-100 @click="indexStore.updateCount"> | ||
count is {{ count }} | ||
</button> | ||
<p class="read-the-docs"> | ||
<p color-gray> | ||
Click on the logos to learn more | ||
</p> | ||
<TheInput | ||
v-model="name" | ||
placeholder="What's your name?" | ||
autocomplete="false" | ||
@keydown.enter="go" | ||
/> | ||
<div> | ||
<o-button | ||
Check failure on line 42 in src/pages/index.vue GitHub Actions / build (18.x, ubuntu-latest)
|
||
type="info" | ||
mt-2 | ||
:disabled="!name" | ||
@click="go" | ||
> | ||
Check warning on line 47 in src/pages/index.vue GitHub Actions / build (18.x, ubuntu-latest)
|
||
Go | ||
</o-button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.read-the-docs { | ||
color: #888888; | ||
} | ||
.logo { | ||
padding: 1.5em; | ||
height: 8em; | ||
transition: filter 300ms; | ||
will-change: filter; | ||
} | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #646cffaa); | ||
} | ||
.logo.pinia:hover { | ||
filter: drop-shadow(0 0 2em #ffd552); | ||
} | ||
.logo.alova:hover { | ||
filter: drop-shadow(0 0 2em #00b0ed); | ||
} | ||
.logo.unocss:hover { | ||
filter: drop-shadow(0 0 2em #586c43); | ||
} | ||
.logo.vue:hover { | ||
filter: drop-shadow(0 0 2em #42b883aa); | ||
} | ||
</style> |