update: motto style
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ const routes = [
|
|||||||
meta: {
|
meta: {
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
showInNav: true,
|
showInNav: true,
|
||||||
navName: '每日名言佳句'
|
navName: '每日金句'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user