164 lines
3.6 KiB
Vue
164 lines
3.6 KiB
Vue
<script setup lang="ts">
|
||
import { ref } from "vue";
|
||
|
||
const toolUrl = "https://euniv.asio.asia";
|
||
const urlEl = ref<HTMLElement | null>(null);
|
||
const copied = ref(false);
|
||
const copyFailed = ref(false);
|
||
let copiedTimer = 0;
|
||
|
||
async function copyUrl() {
|
||
copied.value = false;
|
||
copyFailed.value = false;
|
||
try {
|
||
await navigator.clipboard.writeText(toolUrl);
|
||
copied.value = true;
|
||
} catch {
|
||
copyFailed.value = true;
|
||
const node = urlEl.value;
|
||
if (!node) return;
|
||
const range = document.createRange();
|
||
range.selectNodeContents(node);
|
||
const selection = window.getSelection();
|
||
selection?.removeAllRanges();
|
||
selection?.addRange(range);
|
||
}
|
||
window.clearTimeout(copiedTimer);
|
||
copiedTimer = window.setTimeout(() => {
|
||
copied.value = false;
|
||
copyFailed.value = false;
|
||
}, 2000);
|
||
}
|
||
</script>
|
||
|
||
<template>
|
||
<main class="upgrade">
|
||
<div class="glow" aria-hidden="true"></div>
|
||
<section class="card">
|
||
<p class="eyebrow">新版已上线</p>
|
||
<h1>旧版工具已失效</h1>
|
||
<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>
|