feat: 主页多风格改版(终端版加速+矩阵背景,新增 Bento/Brutal/Swiss/HUD 四版本)
- 终端版 /:开机动画时间减半、绿色数据流背景、页脚五版本切换 - Bento /bento/:网格卡片 + 鼠标互动动态光晕,深浅色自适应 - Brutal /brutal/:新粗野主义撞色硬阴影风 - Swiss /swiss/:极简瑞士细分割线排版 - HUD /hud/:赛博朋克霓虹切角面板 - 各版本内容一致:天气/日期/时间、四引擎搜索框、四组 12 链接
This commit is contained in:
+352
-467
@@ -2,515 +2,400 @@
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https: data:; script-src 'self' 'unsafe-inline'; connect-src https:; style-src 'self' 'unsafe-inline' https:; img-src 'self' data: https: *;"><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E🛰️%3C/text%3E%3C/svg%3E">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https: data:; script-src 'self' 'unsafe-inline'; connect-src https:; style-src 'self' 'unsafe-inline' https:; img-src 'self' data: https: *;">
|
||||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23050d08'/%3E%3Ctext x='9' y='43' font-size='28' font-family='monospace' fill='%233dff9c'%3E%3E_%3C/text%3E%3C/svg%3E">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<title>hyonglin.top</title>
|
||||
<style>
|
||||
:root {
|
||||
--bg: #0d1b2a;
|
||||
--card: rgba(255,255,255,.09);
|
||||
--card-hover: rgba(255,255,255,.16);
|
||||
--text: #f0f4fb;
|
||||
--muted: #a8b6c9;
|
||||
--accent: #7dd3fc;
|
||||
--border: rgba(255,255,255,.12);
|
||||
--shadow: 0 8px 30px rgba(0,0,0,.35);
|
||||
--glass-blur: 12px;
|
||||
}
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
--bg: #eef4fb;
|
||||
--card: rgba(255,255,255,.62);
|
||||
--card-hover: rgba(255,255,255,.85);
|
||||
--text: #15202e;
|
||||
--muted: #5b6b7f;
|
||||
--accent: #0e7490;
|
||||
--border: rgba(20,40,70,.12);
|
||||
--shadow: 0 8px 30px rgba(30,60,90,.12);
|
||||
}
|
||||
.search button { color: #fff; }
|
||||
--bg: #020604;
|
||||
--win: #07130c;
|
||||
--border: #1d3a2b;
|
||||
--border-soft: #14291e;
|
||||
--text: #d7f5e4;
|
||||
--muted: #6d8f7d;
|
||||
--accent: #3dff9c;
|
||||
--accent-dim: #2f8f63;
|
||||
--cyan: #4dd8ff;
|
||||
--amber: #ffc857;
|
||||
--mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: var(--bg);
|
||||
font-family: var(--mono);
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(60% 42% at 50% -4%, rgba(61,255,156,.10), transparent 70%),
|
||||
radial-gradient(90% 60% at 50% 110%, rgba(77,216,255,.05), transparent 70%),
|
||||
var(--bg);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
::selection { background: var(--accent); color: #04120b; }
|
||||
|
||||
/* ===== 极光背景 ===== */
|
||||
#aurora {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
/* ===== CRT 扫描线 + 暗角 ===== */
|
||||
.crt::before {
|
||||
content: "";
|
||||
position: fixed; inset: 0; z-index: 5; pointer-events: none;
|
||||
background: repeating-linear-gradient(0deg, rgba(0,0,0,.20) 0px, rgba(0,0,0,.20) 1px, transparent 1px, transparent 3px);
|
||||
opacity: .45;
|
||||
}
|
||||
.aurora-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
transparent 0%,
|
||||
transparent 74%,
|
||||
rgba(13,27,42,.3) 90%,
|
||||
var(--bg) 100%
|
||||
);
|
||||
.crt::after {
|
||||
content: "";
|
||||
position: fixed; inset: 0; z-index: 6; pointer-events: none;
|
||||
background: radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(0,0,0,.42) 100%);
|
||||
}
|
||||
|
||||
.wrap {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 24px 48px;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* ===== 黑客帝国数据流背景 ===== */
|
||||
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .38; }
|
||||
|
||||
/* ===== 顶部:标题 + 时钟 + 天气 ===== */
|
||||
header {
|
||||
text-align: center;
|
||||
margin-bottom: 34px;
|
||||
}
|
||||
header h1 {
|
||||
font-size: 2.4rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
text-shadow: 0 2px 24px rgba(125,211,252,.25);
|
||||
}
|
||||
header p.sub {
|
||||
color: var(--muted);
|
||||
margin-top: 6px;
|
||||
font-size: .95rem;
|
||||
}
|
||||
.hero-row {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 28px;
|
||||
margin-top: 26px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.hero-box {
|
||||
background: var(--card);
|
||||
.stage { position: relative; z-index: 1; padding: 34px 18px 40px; display: flex; justify-content: center; }
|
||||
|
||||
/* ===== 终端窗口 ===== */
|
||||
.window {
|
||||
width: 100%; max-width: 960px;
|
||||
background: linear-gradient(180deg, rgba(10,26,17,.96), rgba(6,15,10,.97));
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 14px 22px;
|
||||
min-width: 130px;
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.hero-box .label {
|
||||
font-size: .72rem;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .08em;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.hero-box .value {
|
||||
font-size: 1.7rem;
|
||||
font-weight: 650;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.1;
|
||||
}
|
||||
.hero-box#clock .value { font-size: 1.9rem; }
|
||||
.hero-box#weather .value { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
|
||||
.hero-box#weather .value .emoji { font-size: 1.5rem; }
|
||||
|
||||
/* ===== Bing 搜索框 ===== */
|
||||
.search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
max-width: 520px;
|
||||
margin: 26px auto 0;
|
||||
padding: 6px 6px 6px 18px;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 999px;
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
box-shadow: var(--shadow);
|
||||
transition: border-color .16s ease;
|
||||
}
|
||||
.search:focus-within { border-color: var(--accent); }
|
||||
.search .sicon { font-size: 1rem; opacity: .75; }
|
||||
.search input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
color: var(--text);
|
||||
font-size: .95rem;
|
||||
padding: 8px 0;
|
||||
}
|
||||
.search input::placeholder { color: var(--muted); }
|
||||
.search button {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 9px 22px;
|
||||
border-radius: 999px;
|
||||
font-size: .9rem;
|
||||
font-weight: 600;
|
||||
color: #06202e;
|
||||
background: var(--accent);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* ===== 链接网格(多列) ===== */
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 18px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.col h2 {
|
||||
font-size: .8rem;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
letter-spacing: .1em;
|
||||
margin: 0 0 12px 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
ul.links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
||||
ul.links a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 13px 15px;
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
text-decoration: none;
|
||||
color: var(--text);
|
||||
backdrop-filter: blur(var(--glass-blur));
|
||||
-webkit-backdrop-filter: blur(var(--glass-blur));
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform .16s ease, border-color .16s ease, background .16s ease;
|
||||
}
|
||||
ul.links a:hover {
|
||||
transform: translateY(-3px);
|
||||
background: var(--card-hover);
|
||||
border-color: var(--accent);
|
||||
}
|
||||
.icon {
|
||||
font-size: 1.3rem;
|
||||
width: 38px; height: 38px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
background: color-mix(in srgb, var(--accent) 16%, transparent);
|
||||
border-radius: 10px;
|
||||
flex-shrink: 0;
|
||||
box-shadow:
|
||||
0 0 0 1px rgba(0,0,0,.6),
|
||||
0 24px 80px rgba(0,0,0,.55),
|
||||
0 0 42px rgba(61,255,156,.07);
|
||||
overflow: hidden;
|
||||
}
|
||||
.meta { display: flex; flex-direction: column; min-width: 0; }
|
||||
.meta .name { font-weight: 600; font-size: .95rem; }
|
||||
.meta .desc { color: var(--muted); font-size: .78rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.titlebar {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 9px 14px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
background: rgba(4,12,8,.6);
|
||||
}
|
||||
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
|
||||
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
|
||||
.titlebar .t { font-size: .74rem; color: var(--muted); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.titlebar .mode { margin-left: auto; font-size: .72rem; color: var(--accent-dim); flex-shrink: 0; }
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: .8rem;
|
||||
padding-top: 40px;
|
||||
.inner { padding: 26px 26px 30px; }
|
||||
|
||||
/* ===== 开机日志 ===== */
|
||||
#bootlog { font-size: .78rem; line-height: 1.75; color: var(--accent-dim); margin-bottom: 4px; min-height: 3em; }
|
||||
#bootlog .bootline::before { content: " "; }
|
||||
|
||||
/* ===== 头部 ===== */
|
||||
header { text-align: left; margin-top: 10px; }
|
||||
.prompt-line { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
|
||||
.prompt-line b { color: var(--accent); font-weight: 400; }
|
||||
h1 {
|
||||
font-size: clamp(2rem, 5.4vw, 3.1rem);
|
||||
font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
|
||||
color: #eafff3;
|
||||
text-shadow: 0 0 18px rgba(61,255,156,.4), 0 0 46px rgba(61,255,156,.16);
|
||||
animation: glowpulse 7s ease-in-out infinite;
|
||||
}
|
||||
@keyframes glowpulse { 0%,100% { text-shadow: 0 0 18px rgba(61,255,156,.4), 0 0 46px rgba(61,255,156,.16); } 50% { text-shadow: 0 0 24px rgba(61,255,156,.55), 0 0 60px rgba(61,255,156,.22); } }
|
||||
.cursor { display: inline-block; width: .55em; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: .18em; animation: blink 1.1s steps(1) infinite; }
|
||||
@keyframes blink { 50% { opacity: 0; } }
|
||||
p.sub { color: var(--muted); margin-top: 10px; font-size: .9rem; letter-spacing: .02em; }
|
||||
|
||||
/* ===== 状态卡片:天气 / 日期 / 时间 ===== */
|
||||
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
|
||||
.card {
|
||||
border: 1px solid var(--border-soft);
|
||||
background: rgba(9,24,16,.55);
|
||||
padding: 12px 16px 14px;
|
||||
position: relative;
|
||||
}
|
||||
.card::before, .card::after { content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none; }
|
||||
.card::before { top: -1px; left: -1px; border-top: 1px solid var(--accent-dim); border-left: 1px solid var(--accent-dim); }
|
||||
.card::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent-dim); border-right: 1px solid var(--accent-dim); }
|
||||
.card .label { font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 7px; }
|
||||
.card .value { font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.15; color: #eafff3; }
|
||||
.card#weather .value { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
|
||||
.card#weather .value .emoji { font-size: 1.45rem; filter: saturate(.9); }
|
||||
.wcity { font-size: .72rem; color: var(--muted); margin-top: 5px; min-height: 1em; }
|
||||
|
||||
/* ===== Bing 搜索(提示符样式) ===== */
|
||||
form.search {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
margin-top: 24px; padding: 6px 8px 6px 16px;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(5,14,9,.7);
|
||||
transition: border-color .16s ease, box-shadow .16s ease;
|
||||
}
|
||||
form.search:focus-within { border-color: var(--accent-dim); box-shadow: 0 0 0 1px rgba(61,255,156,.18), 0 0 24px rgba(61,255,156,.07); }
|
||||
form.search .ps { font-size: .9rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
|
||||
form.search select {
|
||||
flex-shrink: 0; cursor: pointer;
|
||||
font-family: var(--mono); font-size: .82rem;
|
||||
color: var(--accent); background: rgba(4,12,8,.75);
|
||||
border: 1px solid var(--border); border-radius: 6px;
|
||||
padding: 6px 8px; outline: none;
|
||||
}
|
||||
form.search select:focus-visible { border-color: var(--accent-dim); }
|
||||
form.search input {
|
||||
flex: 1; min-width: 0; background: none; border: none; outline: none;
|
||||
color: var(--text); font-family: var(--mono); font-size: .92rem; padding: 9px 0; caret-color: var(--accent);
|
||||
}
|
||||
form.search input::placeholder { color: #48645a; }
|
||||
form.search button {
|
||||
border: 1px solid var(--border); cursor: pointer; flex-shrink: 0;
|
||||
padding: 7px 16px; font-family: var(--mono); font-size: .82rem; font-weight: 600;
|
||||
color: var(--accent); background: transparent; letter-spacing: .05em;
|
||||
transition: background .14s ease, color .14s ease;
|
||||
}
|
||||
form.search button:hover { background: var(--accent); color: #04120b; border-color: var(--accent); }
|
||||
|
||||
/* ===== 服务分组 ===== */
|
||||
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
|
||||
.panel { border: 1px solid var(--border-soft); background: rgba(7,18,12,.5); padding: 4px 0 6px; }
|
||||
.panel > h2 {
|
||||
display: flex; align-items: baseline; gap: 10px;
|
||||
font-size: .8rem; font-weight: 600; letter-spacing: .08em;
|
||||
color: #bfe9d3; padding: 12px 16px 10px;
|
||||
border-bottom: 1px dashed var(--border-soft);
|
||||
}
|
||||
.panel > h2 .bar { color: var(--accent); }
|
||||
.panel > h2 .count { margin-left: auto; font-size: .7rem; color: var(--muted); font-weight: 400; }
|
||||
|
||||
ul.links { list-style: none; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
|
||||
ul.links a {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 9px 10px; text-decoration: none; color: var(--text);
|
||||
border-left: 2px solid transparent;
|
||||
transition: background .13s ease, border-color .13s ease;
|
||||
}
|
||||
ul.links a:hover, ul.links a:focus-visible {
|
||||
background: rgba(61,255,156,.07);
|
||||
border-left-color: var(--accent);
|
||||
outline: none;
|
||||
}
|
||||
ul.links .arrow { color: var(--accent-dim); font-size: .85rem; flex-shrink: 0; transition: transform .13s ease, color .13s ease; }
|
||||
ul.links a:hover .arrow { color: var(--accent); transform: translateX(3px); }
|
||||
ul.links .icon {
|
||||
font-size: .95rem; width: 26px; height: 26px; flex-shrink: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border: 1px solid var(--border-soft); background: rgba(4,12,8,.7);
|
||||
}
|
||||
ul.links .name { font-weight: 600; font-size: .9rem; white-space: nowrap; }
|
||||
ul.links .desc { margin-left: auto; color: var(--muted); font-size: .74rem; text-align: right; overflow: hidden; text-overflow: ellipsis; max-width: 52%; }
|
||||
|
||||
/* ===== 页脚 ===== */
|
||||
footer { margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--border-soft); display: flex; align-items: baseline; gap: 10px; font-size: .74rem; color: var(--muted); }
|
||||
footer .code { color: var(--accent-dim); }
|
||||
footer a { color: var(--accent-dim); text-decoration: none; border-bottom: 1px dotted var(--accent-dim); transition: color .14s ease, border-color .14s ease; }
|
||||
footer a:hover { color: var(--accent); border-color: var(--accent); }
|
||||
footer .brand { margin-left: auto; color: #bfe9d3; letter-spacing: .06em; }
|
||||
|
||||
/* ===== 入场动画 ===== */
|
||||
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .2s ease var(--rd, 0s), transform .2s ease var(--rd, 0s); }
|
||||
body.ready .reveal { opacity: 1; transform: none; }
|
||||
|
||||
/* ===== 响应式 ===== */
|
||||
@media (max-width: 820px) {
|
||||
.grid { grid-template-columns: repeat(2, 1fr); }
|
||||
@media (max-width: 760px) {
|
||||
.grid { grid-template-columns: 1fr; }
|
||||
.inner { padding: 20px 18px 24px; }
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.grid { grid-template-columns: 1fr; }
|
||||
header h1 { font-size: 2rem; }
|
||||
.hero-box .value { font-size: 1.4rem; }
|
||||
.hero-box#clock .value { font-size: 1.6rem; }
|
||||
.info-row { grid-template-columns: 1fr 1fr; }
|
||||
.card#clock { grid-column: span 2; }
|
||||
ul.links .desc { max-width: 46%; }
|
||||
}
|
||||
@media (max-width: 400px) {
|
||||
ul.links .desc { display: none; }
|
||||
}
|
||||
|
||||
/* ===== 减少动态效果 ===== */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
h1, .cursor { animation: none; }
|
||||
.reveal { transition: none; opacity: 1; transform: none; }
|
||||
.crt::before { display: none; }
|
||||
#matrix { display: none; }
|
||||
}
|
||||
</style>
|
||||
<noscript><style>.reveal{opacity:1!important;transform:none!important}#bootlog{display:none}</style></noscript>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="aurora"></canvas>
|
||||
<div class="aurora-overlay"></div>
|
||||
<body class="crt">
|
||||
<canvas id="matrix" aria-hidden="true"></canvas>
|
||||
<div class="stage">
|
||||
<main class="window">
|
||||
<div class="titlebar">
|
||||
<span class="dot r"></span><span class="dot y"></span><span class="dot g"></span>
|
||||
<span class="t">guest@hyonglin.top: ~</span>
|
||||
<span class="mode">[ bash ]</span>
|
||||
</div>
|
||||
|
||||
<main class="wrap">
|
||||
<header>
|
||||
<h1>hyonglin.top</h1>
|
||||
<p class="sub">个人服务导航 · 随时可达</p>
|
||||
<div class="hero-row">
|
||||
<div class="hero-box" id="weather">
|
||||
<div class="label">天气</div>
|
||||
<div class="value"><span class="emoji">☀️</span><span class="wtxt">获取中…</span></div>
|
||||
<div class="wcity" style="font-size:.72rem;color:var(--muted);margin-top:4px"></div>
|
||||
<div class="inner">
|
||||
<div id="bootlog" aria-hidden="true"></div>
|
||||
|
||||
<header class="reveal" style="--rd:.02s">
|
||||
<div class="prompt-line"><b>guest@hyonglin.top</b>:~$ whoami</div>
|
||||
<h1>hyonglin.top<span class="cursor"></span></h1>
|
||||
<p class="sub">个人服务导航 · 随时可达</p>
|
||||
</header>
|
||||
|
||||
<div class="info-row reveal" style="--rd:.07s">
|
||||
<div class="card" id="weather">
|
||||
<div class="label">天气</div>
|
||||
<div class="value"><span class="emoji">☀️</span><span class="wtxt">获取中…</span></div>
|
||||
<div class="wcity"></div>
|
||||
</div>
|
||||
<div class="card" id="date">
|
||||
<div class="label">日期</div>
|
||||
<div class="value" id="dateval">----</div>
|
||||
</div>
|
||||
<div class="card" id="clock">
|
||||
<div class="label">时间</div>
|
||||
<div class="value" id="clockval">--:--:--</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-box" id="date">
|
||||
<div class="label">日期</div>
|
||||
<div class="value" id="dateval">----</div>
|
||||
|
||||
<form class="search reveal" style="--rd:.11s" action="https://www.bing.com/search" method="get" target="_blank" rel="noopener">
|
||||
<span class="ps">$</span>
|
||||
<select name="engine" id="engine" aria-label="搜索引擎">
|
||||
<option value="bing" selected>bing</option>
|
||||
<option value="google">google</option>
|
||||
<option value="baidu">baidu</option>
|
||||
<option value="duckduckgo">duckduckgo</option>
|
||||
</select>
|
||||
<input type="text" name="q" placeholder="输入关键词,回车搜索…" autocomplete="off" aria-label="搜索">
|
||||
<button type="submit">ENTER ↵</button>
|
||||
</form>
|
||||
|
||||
<div class="grid">
|
||||
<section class="panel reveal" style="--rd:.15s">
|
||||
<h2><span class="bar">▍</span>📡 自建服务<span class="count">(4)</span></h2>
|
||||
<ul class="links">
|
||||
<li><a href="https://note.hyonglin.top"><span class="arrow">❯</span><span class="icon">📝</span><span class="name">笔记</span><span class="desc">note.hyonglin.top · SilverBullet</span></a></li>
|
||||
<li><a href="https://git.hyonglin.top"><span class="arrow">❯</span><span class="icon">📦</span><span class="name">Git 服务</span><span class="desc">git.hyonglin.top · Gitea</span></a></li>
|
||||
<li><a href="https://ssh.hyonglin.top"><span class="arrow">❯</span><span class="icon">🖥️</span><span class="name">网页 SSH 终端</span><span class="desc">ssh.hyonglin.top</span></a></li>
|
||||
<li><a href="https://frp.hyonglin.top"><span class="arrow">❯</span><span class="icon">🔗</span><span class="name">frp 管理面板</span><span class="desc">frp.hyonglin.top</span></a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="panel reveal" style="--rd:.18s">
|
||||
<h2><span class="bar">▍</span>🤖 AI 助手<span class="count">(2)</span></h2>
|
||||
<ul class="links">
|
||||
<li><a href="https://chat.deepseek.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">🤖</span><span class="name">DeepSeek</span><span class="desc">chat.deepseek.com</span></a></li>
|
||||
<li><a href="https://www.doubao.com/chat/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">💬</span><span class="name">豆包</span><span class="desc">doubao.com</span></a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="panel reveal" style="--rd:.21s">
|
||||
<h2><span class="bar">▍</span>☁️ 云服务<span class="count">(3)</span></h2>
|
||||
<ul class="links">
|
||||
<li><a href="https://dash.cloudflare.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">🌐</span><span class="name">Cloudflare</span><span class="desc">dash.cloudflare.com</span></a></li>
|
||||
<li><a href="https://auth.huaweicloud.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">☁️</span><span class="name">华为云</span><span class="desc">auth.huaweicloud.com</span></a></li>
|
||||
<li><a href="https://console.cloud.tencent.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">🐧</span><span class="name">腾讯云</span><span class="desc">console.cloud.tencent.com</span></a></li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section class="panel reveal" style="--rd:.24s">
|
||||
<h2><span class="bar">▍</span>🔧 常用<span class="count">(3)</span></h2>
|
||||
<ul class="links">
|
||||
<li><a href="https://wx.mail.qq.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">📧</span><span class="name">QQ 邮箱</span><span class="desc">wx.mail.qq.com</span></a></li>
|
||||
<li><a href="https://www.bing.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">🔍</span><span class="name">Bing 搜索</span><span class="desc">bing.com</span></a></li>
|
||||
<li><a href="https://www.bilibili.com/" target="_blank" rel="noopener"><span class="arrow">❯</span><span class="icon">📺</span><span class="name">哔哩哔哩</span><span class="desc">bilibili.com</span></a></li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
<div class="hero-box" id="clock">
|
||||
<div class="label">时间</div>
|
||||
<div class="value" id="clockval">--:--:--</div>
|
||||
</div>
|
||||
</div>
|
||||
<form class="search" action="https://www.bing.com/search" method="get" target="_blank" rel="noopener">
|
||||
<span class="sicon">🔍</span>
|
||||
<input type="text" name="q" placeholder="Bing 搜索…" autocomplete="off">
|
||||
<button type="submit">搜索</button>
|
||||
</form>
|
||||
</header>
|
||||
|
||||
<div class="grid">
|
||||
<div class="col">
|
||||
<h2>📡 自建服务</h2>
|
||||
<ul class="links">
|
||||
<li>
|
||||
<a href="https://note.hyonglin.top">
|
||||
<span class="icon">📝</span>
|
||||
<span class="meta">
|
||||
<span class="name">笔记</span>
|
||||
<span class="desc">note.hyonglin.top · SilverBullet</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://git.hyonglin.top">
|
||||
<span class="icon">📦</span>
|
||||
<span class="meta">
|
||||
<span class="name">Git 服务</span>
|
||||
<span class="desc">git.hyonglin.top · Gitea</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://ssh.hyonglin.top">
|
||||
<span class="icon">🖥️</span>
|
||||
<span class="meta">
|
||||
<span class="name">网页 SSH 终端</span>
|
||||
<span class="desc">ssh.hyonglin.top</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://frp.hyonglin.top">
|
||||
<span class="icon">🔗</span>
|
||||
<span class="meta">
|
||||
<span class="name">frp 管理面板</span>
|
||||
<span class="desc">frp.hyonglin.top</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<footer class="reveal" style="--rd:.28s">
|
||||
<span class="code">$ exit 0</span>
|
||||
<span>— end of transmission —</span>
|
||||
<span><a href="/" aria-current="page">终端版</a> · <a href="/bento/">Bento</a> · <a href="/brutal/">Brutal</a> · <a href="/swiss/">Swiss</a> · <a href="/hud/">HUD</a></span>
|
||||
<span class="brand">hyonglin.top</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<h2>🤖 AI 助手</h2>
|
||||
<ul class="links">
|
||||
<li>
|
||||
<a href="https://chat.deepseek.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">🤖</span>
|
||||
<span class="meta">
|
||||
<span class="name">DeepSeek</span>
|
||||
<span class="desc">chat.deepseek.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.doubao.com/chat/" target="_blank" rel="noopener">
|
||||
<span class="icon">💬</span>
|
||||
<span class="meta">
|
||||
<span class="name">豆包</span>
|
||||
<span class="desc">doubao.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<h2>☁️ 云服务</h2>
|
||||
<ul class="links">
|
||||
<li>
|
||||
<a href="https://dash.cloudflare.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">🌐</span>
|
||||
<span class="meta">
|
||||
<span class="name">Cloudflare</span>
|
||||
<span class="desc">dash.cloudflare.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://auth.huaweicloud.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">☁️</span>
|
||||
<span class="meta">
|
||||
<span class="name">华为云</span>
|
||||
<span class="desc">auth.huaweicloud.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://console.cloud.tencent.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">🐧</span>
|
||||
<span class="meta">
|
||||
<span class="name">腾讯云</span>
|
||||
<span class="desc">console.cloud.tencent.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<h2>🔧 常用</h2>
|
||||
<ul class="links">
|
||||
<li>
|
||||
<a href="https://wx.mail.qq.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">📧</span>
|
||||
<span class="meta">
|
||||
<span class="name">QQ 邮箱</span>
|
||||
<span class="desc">wx.mail.qq.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bing.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">🔍</span>
|
||||
<span class="meta">
|
||||
<span class="name">Bing 搜索</span>
|
||||
<span class="desc">bing.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.bilibili.com/" target="_blank" rel="noopener">
|
||||
<span class="icon">📺</span>
|
||||
<span class="meta">
|
||||
<span class="name">哔哩哔哩</span>
|
||||
<span class="desc">bilibili.com</span>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>hyonglin.top</footer>
|
||||
</main>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// 用 try/catch 包裹:老浏览器没 addEventListener 时报这一行也不影响后续
|
||||
var mql = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)');
|
||||
if (mql && mql.addEventListener) {
|
||||
mql.addEventListener('change', function(){});
|
||||
} else if (mql && mql.addListener) {
|
||||
mql.addListener(function(){});
|
||||
}
|
||||
|
||||
/* ===== 夜晚星空:闪烁星星 + 流星 + 鼠标视差,无模糊 ===== */
|
||||
var aurora = document.getElementById('aurora');
|
||||
var ctx = aurora.getContext('2d');
|
||||
var W, H, stars = [], meteors = [];
|
||||
var mouse = { x: -9999, y: -9999, px: -9999, py: -9999 };
|
||||
var nextMeteor = 2; // 页面打开 2 秒后来第一颗流星
|
||||
|
||||
function resize() {
|
||||
W = aurora.width = window.innerWidth;
|
||||
H = aurora.height = window.innerHeight;
|
||||
|
||||
// 星星:锐利小像素点,明暗闪烁,少量亮星带十字芒
|
||||
stars = [];
|
||||
var scount = Math.min(240, Math.round(W * H / 8500));
|
||||
for (var j = 0; j < scount; j++) {
|
||||
stars.push({
|
||||
x: Math.random() * W,
|
||||
y: Math.random() * H * 0.9,
|
||||
r: 0.6 + Math.random() * 1.3,
|
||||
phase: Math.random() * Math.PI * 2,
|
||||
tw: 0.6 + Math.random() * 2.2, // 闪烁速度
|
||||
depth: 0.3 + Math.random() * 0.7, // 视差深度
|
||||
cross: Math.random() < 0.08 // 少量亮星画十字芒
|
||||
});
|
||||
/* ===== 黑客帝国数据流:绿色字符雨,低透明度衬在窗口后面 ===== */
|
||||
(function(){
|
||||
var cv = document.getElementById('matrix');
|
||||
if (!cv || !cv.getContext) return;
|
||||
if (window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches) return;
|
||||
var ctx = cv.getContext('2d');
|
||||
var FONT = 14, W, H, cols, drops = [];
|
||||
var CHARS = 'アカサタナハマヤラワ0123456789ABCDEF+-*/<>=|';
|
||||
function resize() {
|
||||
W = cv.width = window.innerWidth;
|
||||
H = cv.height = window.innerHeight;
|
||||
cols = Math.ceil(W / FONT);
|
||||
drops = [];
|
||||
for (var i = 0; i < cols; i++) drops.push(Math.random() * -H / FONT);
|
||||
}
|
||||
}
|
||||
|
||||
function spawnMeteor(t) {
|
||||
var ang = Math.PI * (0.70 + Math.random() * 0.14); // 斜向左下
|
||||
var sp = 9 + Math.random() * 6;
|
||||
meteors.push({
|
||||
x: W * (0.3 + Math.random() * 0.7),
|
||||
y: Math.random() * H * 0.3,
|
||||
vx: Math.cos(ang) * sp,
|
||||
vy: -Math.sin(ang) * sp,
|
||||
born: t,
|
||||
life: 0.9 + Math.random() * 0.6
|
||||
});
|
||||
}
|
||||
|
||||
function frame() {
|
||||
var t = Date.now() / 1000;
|
||||
|
||||
// --- 夜空底色 ---
|
||||
ctx.globalCompositeOperation = 'source-over';
|
||||
var sky = ctx.createLinearGradient(0, 0, 0, H);
|
||||
sky.addColorStop(0, '#01030a');
|
||||
sky.addColorStop(0.45, '#050d1d');
|
||||
sky.addColorStop(1, '#0a1a2e');
|
||||
ctx.fillStyle = sky;
|
||||
ctx.fillRect(0, 0, W, H);
|
||||
|
||||
// --- 星星:闪烁 + 轻微视差(随鼠标反向漂移),fillRect 边缘锐利 ---
|
||||
var px = (mouse.x - W / 2) * -0.012;
|
||||
var py = (mouse.y - H / 2) * -0.012;
|
||||
for (var j = 0; j < stars.length; j++) {
|
||||
var s = stars[j];
|
||||
var a = 0.35 + 0.65 * (0.5 + 0.5 * Math.sin(t * s.tw + s.phase));
|
||||
var sx = s.x + px * s.depth * 8;
|
||||
var sy = s.y + py * s.depth * 8;
|
||||
ctx.fillStyle = 'rgba(255,255,255,' + a.toFixed(3) + ')';
|
||||
ctx.fillRect(sx, sy, s.r, s.r);
|
||||
if (s.cross) { // 亮星十字芒:细直线,无模糊
|
||||
ctx.strokeStyle = 'rgba(255,255,255,' + (a * 0.6).toFixed(3) + ')';
|
||||
ctx.lineWidth = 1;
|
||||
var cl = s.r * 3.2;
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(sx - cl, sy + s.r / 2); ctx.lineTo(sx + s.r + cl, sy + s.r / 2);
|
||||
ctx.moveTo(sx + s.r / 2, sy - cl); ctx.lineTo(sx + s.r / 2, sy + s.r + cl);
|
||||
ctx.stroke();
|
||||
window.addEventListener('resize', resize);
|
||||
resize();
|
||||
function tick() {
|
||||
ctx.fillStyle = 'rgba(2,6,4,.16)'; // 半透明黑做拖尾淡出
|
||||
ctx.fillRect(0, 0, W, H);
|
||||
ctx.font = FONT + 'px monospace';
|
||||
for (var i = 0; i < cols; i++) {
|
||||
var y = drops[i] * FONT;
|
||||
ctx.fillStyle = Math.random() < .12 ? '#c8ffe3' : 'rgba(61,255,156,.7)';
|
||||
ctx.fillText(CHARS[(Math.random() * CHARS.length) | 0], i * FONT, y);
|
||||
if (y > H && Math.random() > .972) drops[i] = -Math.random() * 40;
|
||||
else drops[i] += 1;
|
||||
}
|
||||
requestAnimationFrame(tick);
|
||||
}
|
||||
tick();
|
||||
})();
|
||||
|
||||
// --- 流星:每 3~9 秒一颗,锐利线段拖尾 ---
|
||||
if (t > nextMeteor) { spawnMeteor(t); nextMeteor = t + 3 + Math.random() * 6; }
|
||||
for (var m = meteors.length - 1; m >= 0; m--) {
|
||||
var mt = meteors[m];
|
||||
var age = t - mt.born;
|
||||
if (age > mt.life) { meteors.splice(m, 1); continue; }
|
||||
mt.x += mt.vx;
|
||||
mt.y += mt.vy;
|
||||
var fade = 1 - age / mt.life;
|
||||
ctx.strokeStyle = 'rgba(200,240,255,' + (0.9 * fade).toFixed(3) + ')';
|
||||
ctx.lineWidth = 1.5;
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(mt.x, mt.y);
|
||||
ctx.lineTo(mt.x - mt.vx * 14, mt.y - mt.vy * 14);
|
||||
ctx.stroke();
|
||||
ctx.fillStyle = 'rgba(255,255,255,' + fade.toFixed(3) + ')';
|
||||
ctx.fillRect(mt.x, mt.y, 2, 2);
|
||||
/* ===== 开机自举动画(可点击/按键跳过,reduced-motion 直接显示) ===== */
|
||||
var booted = false;
|
||||
var bootEl = document.getElementById('bootlog');
|
||||
var BOOT_LINES = [
|
||||
'[ ok ] mount /services .......... 12 items',
|
||||
'[ ok ] weather daemon ........... running',
|
||||
'$ whoami → hyonglin.top — 个人服务导航'
|
||||
];
|
||||
function markReady() { document.body.classList.add('ready'); }
|
||||
if (bootEl && window.matchMedia && matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||||
BOOT_LINES.forEach(function(l){ var d = document.createElement('div'); d.className = 'bootline'; d.textContent = l; bootEl.appendChild(d); });
|
||||
booted = true; markReady();
|
||||
} else if (bootEl) {
|
||||
var li = 0, ci = 0, cur = null;
|
||||
function finishBoot() { if (!booted) { booted = true; markReady(); } }
|
||||
function typeLine() {
|
||||
if (booted) return;
|
||||
if (li >= BOOT_LINES.length) { setTimeout(finishBoot, 60); return; }
|
||||
var line = BOOT_LINES[li];
|
||||
if (!cur) { cur = document.createElement('div'); cur.className = 'bootline'; bootEl.appendChild(cur); ci = 0; }
|
||||
if (ci <= line.length) { cur.textContent = line.slice(0, ci++); setTimeout(typeLine, 3); }
|
||||
else { li++; cur = null; setTimeout(typeLine, 45); }
|
||||
}
|
||||
|
||||
requestAnimationFrame(frame);
|
||||
function skipBoot() {
|
||||
if (booted) return;
|
||||
booted = true;
|
||||
bootEl.innerHTML = '';
|
||||
BOOT_LINES.forEach(function(l){ var d = document.createElement('div'); d.className = 'bootline'; d.textContent = l; bootEl.appendChild(d); });
|
||||
markReady();
|
||||
}
|
||||
typeLine();
|
||||
window.addEventListener('keydown', skipBoot, { once: true });
|
||||
window.addEventListener('pointerdown', skipBoot, { once: true });
|
||||
setTimeout(skipBoot, 1250); // 兜底:任何情况下 1.25 秒内一定就绪
|
||||
}
|
||||
|
||||
window.addEventListener('resize', resize);
|
||||
window.addEventListener('mousemove', function(e) { mouse.x = e.clientX; mouse.y = e.clientY; });
|
||||
resize();
|
||||
frame();
|
||||
/* ===== 搜索引擎选择 ===== */
|
||||
(function(){
|
||||
var sel = document.getElementById('engine');
|
||||
if (!sel) return;
|
||||
var ENGINES = {
|
||||
bing: 'https://www.bing.com/search?q=',
|
||||
google: 'https://www.google.com/search?q=',
|
||||
baidu: 'https://www.baidu.com/s?wd=',
|
||||
duckduckgo: 'https://duckduckgo.com/?q='
|
||||
};
|
||||
var form = sel.closest('form');
|
||||
function apply() { form.action = ENGINES[sel.value] || ENGINES.bing; }
|
||||
sel.addEventListener('change', apply);
|
||||
apply();
|
||||
})();
|
||||
|
||||
/* ===== 日期 + 时钟 ===== */
|
||||
var week = ['日','一','二','三','四','五','六'];
|
||||
@@ -526,7 +411,7 @@
|
||||
updateClock();
|
||||
|
||||
/* ===== 天气:GPS 定位 + Open-Meteo(不依赖 IP) ===== */
|
||||
var emojiBox = function(){ var e = document.querySelector('#weather .emoji'); return e; };
|
||||
var emojiBox = function(){ return document.querySelector('#weather .emoji'); };
|
||||
var tempBox = function(){ return document.querySelector('#weather .wtxt'); };
|
||||
var cityBox = function(){ return document.querySelector('.wcity'); };
|
||||
|
||||
@@ -573,4 +458,4 @@
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user