feat: add scripts, frontend and assets - 阳历新年快乐! (#49)

CanoKey Pigeon 的第一个签名献给 Dress(
This commit is contained in:
LY
2023-12-31 14:47:51 +08:00
committed by GitHub
parent c1528651ca
commit efcf7caacf
7 changed files with 65 additions and 0 deletions

41
LY/Dress.vue Normal file
View File

@ -0,0 +1,41 @@
<!--vite ^4.2.0, vuetify ^3.0.0, see https://github.com/Young-Lord/online-clipboard/blob/v0.0.4/frontend/package.json-->
<template>
<v-app>
<v-main>
<v-container fluid class="fill-height justify-center">
<v-col cols="12" md="8">
<v-card elevation="16" variant="tonal">
<v-card-title>
<span class="headline">Welcome to Dress!</span>
</v-card-title>
<v-card-text>
<v-form @submit.native.prevent>
<v-text-field v-model="name" label="Who?" required
@keydown.enter="goToDress"></v-text-field>
<v-btn color="primary" @click="goToDress" :disabled="!name" block>
Go!
</v-btn>
</v-form>
</v-card-text>
</v-card>
</v-col>
</v-container>
</v-main>
</v-app>
</template>
<script>
export default {
data() {
return {
name: "LY",
}
},
created() { },
methods: {
goToDress() {
window.location.href = `https://github.com/Cute-Dress/Dress/tree/master/${this.name}`
}
},
}
</script>