update: motto style

This commit is contained in:
Tony Yang
2025-04-15 15:28:00 +08:00
parent 2ec8167b73
commit 9ac3339557
2 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ const routes = [
meta: { meta: {
keepAlive: true, keepAlive: true,
showInNav: true, showInNav: true,
navName: '每日名言佳句' navName: '每日句'
} }
} }
]; ];
+7 -1
View File
@@ -38,9 +38,10 @@ const generateMotto = async () => {
<template> <template>
<div class="ts-app-center"> <div class="ts-app-center">
<div>
<div class="ts-box ts-content is-center-aligned"> <div class="ts-box ts-content is-center-aligned">
<div class="ts-header is-large is-center-aligned">每日金句生成器</div> <div class="ts-header is-large is-center-aligned">每日金句生成器</div>
<p class="ts-text">Powered By Cloudflare Workers AI</p> <div class="ts-header is-secondary is-center-aligned">Powered By Cloudflare Workers AI</div>
<VueHcaptcha <VueHcaptcha
ref="hcaptchaRef" ref="hcaptchaRef"
:sitekey="$hcaptchaSitekey" :sitekey="$hcaptchaSitekey"
@@ -49,9 +50,14 @@ const generateMotto = async () => {
@reset="handleHcaptchaExpired" @reset="handleHcaptchaExpired"
/> />
<button class="ts-button" @click="generateMotto" :disabled="!hcaptchaResponse">生成</button> <button class="ts-button" @click="generateMotto" :disabled="!hcaptchaResponse">生成</button>
</div>
<div class="ts-content is-center-aligned">
<p class="ts-text">每日金句:</p> <p class="ts-text">每日金句:</p>
<div class="ts-loading" v-if="mottoLoading"></div> <div class="ts-loading" v-if="mottoLoading"></div>
<div class="ts-quote" v-if="motto">
<p class="ts-text">{{ motto }}</p> <p class="ts-text">{{ motto }}</p>
</div> </div>
</div> </div>
</div>
</div>
</template> </template>