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