style: 升级说明页改用独立视觉

This commit is contained in:
Nixevol
2026-11-18 10:34:58 +08:00
parent 752183031c
commit 3098a2be2e
2 changed files with 125 additions and 63 deletions
+125 -11
View File
@@ -1,6 +1,5 @@
<script setup lang="ts">
import { ref } from "vue";
import { NButton } from "naive-ui";
const toolUrl = "https://euniv.asio.asia";
const urlEl = ref<HTMLElement | null>(null);
@@ -33,17 +32,132 @@ async function copyUrl() {
</script>
<template>
<main class="upgrade-page">
<section class="upgrade-card">
<main class="upgrade">
<div class="glow" aria-hidden="true"></div>
<section class="card">
<p class="eyebrow">新版已上线</p>
<h1>旧版工具已失效</h1>
<p>因目标平台升级,旧版工具已失效,无法登录使用。新版工具已上线。</p>
<p>请复制下面的地址,打开浏览器,粘贴到地址栏后访问。</p>
<p ref="urlEl" class="upgrade-url">{{ toolUrl }}</p>
<div class="upgrade-actions">
<n-button type="primary" @click="copyUrl">{{ copied ? "已复制" : "复制地址" }}</n-button>
</div>
<p v-if="copied" class="upgrade-done">已复制。请到浏览器地址栏粘贴后访问。</p>
<p v-else-if="copyFailed" class="upgrade-missed">没有复制成功,地址已选中,请手动使用CTRL+C复制。</p>
<p class="lead">因目标平台升级,旧版工具已失效,无法登录使用。</p>
<p class="lead">请复制下面的地址,打开浏览器,粘贴到地址栏后访问。</p>
<p ref="urlEl" class="url">{{ toolUrl }}</p>
<button type="button" class="copy" @click="copyUrl">{{ copied ? "已复制" : "复制地址" }}</button>
<p v-if="copied" class="result ok">已复制。请到浏览器地址栏粘贴后访问。</p>
<p v-else-if="copyFailed" class="result miss">没有复制成功,地址已选中,请手动使用 CTRL+C 复制。</p>
</section>
</main>
</template>
<style scoped>
.upgrade {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
padding: 32px 16px;
overflow: auto;
color: #f6f1e8;
background:
radial-gradient(900px 480px at 50% -10%, rgba(245, 193, 108, 0.28), transparent 60%),
radial-gradient(700px 420px at 100% 100%, rgba(92, 124, 255, 0.18), transparent 55%),
#090b10;
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.glow {
position: absolute;
width: 520px;
height: 520px;
border-radius: 50%;
background: radial-gradient(circle, rgba(245, 193, 108, 0.16), transparent 68%);
filter: blur(8px);
pointer-events: none;
}
.card {
position: relative;
width: min(520px, 100%);
padding: 36px 32px 32px;
border: 1px solid rgba(245, 193, 108, 0.28);
border-radius: 20px;
background: rgba(16, 18, 26, 0.78);
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(16px);
}
.eyebrow {
margin: 0 0 14px;
color: #f5c16c;
font-size: 13px;
font-weight: 650;
letter-spacing: 0.18em;
}
h1 {
margin: 0 0 16px;
font-size: 36px;
line-height: 1.15;
font-weight: 700;
letter-spacing: -0.03em;
}
.lead {
margin: 0 0 10px;
color: #d9d1c5;
font-size: 16px;
line-height: 1.7;
}
.url {
margin: 22px 0 18px;
padding: 14px 16px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.06);
color: #fff8ea;
font-size: 18px;
letter-spacing: 0.01em;
word-break: break-all;
user-select: all;
}
.copy {
height: 44px;
padding: 0 22px;
border: 0;
border-radius: 999px;
background: linear-gradient(180deg, #ffd98a, #f5c16c);
color: #2a1c08;
font: inherit;
font-size: 15px;
font-weight: 700;
cursor: pointer;
}
.copy:hover {
filter: brightness(1.05);
}
.result {
margin: 14px 0 0;
font-size: 14px;
line-height: 1.6;
}
.ok {
color: #b7f0c2;
}
.miss {
color: #ffd0a8;
}
@media (max-width: 560px) {
.card {
padding: 28px 20px 24px;
}
h1 {
font-size: 30px;
}
}
</style>
-52
View File
@@ -1657,58 +1657,6 @@ select {
line-height: 1.6;
}
.upgrade-page {
min-height: 100%;
display: grid;
place-items: center;
padding: 32px 16px;
}
.upgrade-card {
width: min(440px, 100%);
padding: 28px 24px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--panel);
}
.upgrade-card h1 {
margin: 0 0 16px;
font-size: 22px;
font-weight: 650;
}
.upgrade-card p {
margin: 0 0 12px;
line-height: 1.6;
}
.upgrade-url {
margin: 0 0 20px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--elevated);
color: var(--accent);
word-break: break-all;
user-select: all;
}
.upgrade-actions {
display: flex;
gap: 8px;
}
.upgrade-done {
margin: 12px 0 0;
color: var(--ok);
}
.upgrade-missed {
margin: 12px 0 0;
color: var(--warn);
}
.app-root {
position: relative;
}