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: '每日句'
} }
} }
]; ];
+20 -14
View File
@@ -38,20 +38,26 @@ const generateMotto = async () => {
<template> <template>
<div class="ts-app-center"> <div class="ts-app-center">
<div class="ts-box ts-content is-center-aligned"> <div>
<div class="ts-header is-large is-center-aligned">每日金句生成器</div> <div class="ts-box ts-content is-center-aligned">
<p class="ts-text">Powered By Cloudflare Workers AI</p> <div class="ts-header is-large is-center-aligned">每日金句生成器</div>
<VueHcaptcha <div class="ts-header is-secondary is-center-aligned">Powered By Cloudflare Workers AI</div>
ref="hcaptchaRef" <VueHcaptcha
:sitekey="$hcaptchaSitekey" ref="hcaptchaRef"
@verify="handleHcaptchaVerify" :sitekey="$hcaptchaSitekey"
@expired="handleHcaptchaExpired" @verify="handleHcaptchaVerify"
@reset="handleHcaptchaExpired" @expired="handleHcaptchaExpired"
/> @reset="handleHcaptchaExpired"
<button class="ts-button" @click="generateMotto" :disabled="!hcaptchaResponse">生成</button> />
<p class="ts-text">每日金句:</p> <button class="ts-button" @click="generateMotto" :disabled="!hcaptchaResponse">生成</button>
<div class="ts-loading" v-if="mottoLoading"></div> </div>
<p class="ts-text">{{ motto }}</p> <div class="ts-content is-center-aligned">
<p class="ts-text">每日金句:</p>
<div class="ts-loading" v-if="mottoLoading"></div>
<div class="ts-quote" v-if="motto">
<p class="ts-text">{{ motto }}</p>
</div>
</div>
</div> </div>
</div> </div>
</template> </template>