提交 976418c7 authored 作者: yujiejie's avatar yujiejie

第三轮

上级 bee8c34c
E:\hermes\ui-prototype\css
\ No newline at end of file
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Splash — Hermes Desktop UI Prototype</title>
<link rel="stylesheet" href="../css/base.css">
<style>
/* ─────────────────────────────────────────────────────────────────────
splash.html — boot splash screen
基线来源:docs/UI_BASELINE.md §2.1
源码对照:src/renderer/src/screens/SplashScreen/SplashScreen.tsx
状态切换:?state=default|loading|checking|starting
─────────────────────────────────────────────────────────────────────── */
html, body { overflow: hidden; }
.splash-screen {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
background: #000;
}
/* Animated background simulating the video */
.splash-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.5;
transform: scale(1.04);
background: #000;
}
.splash-bg-animated {
background:
radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 80, 160, 0.4) 0%, transparent 60%),
radial-gradient(ellipse 60% 80% at 80% 70%, rgba(80, 0, 120, 0.3) 0%, transparent 60%),
radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0, 20, 60, 0.8) 0%, transparent 70%),
linear-gradient(180deg, #000 0%, #0a0a20 50%, #000 100%);
animation: aurora-shift 8s ease-in-out infinite alternate;
}
@keyframes aurora-shift {
0% { opacity: 0.5; filter: hue-rotate(0deg); }
50% { opacity: 0.65; filter: hue-rotate(15deg); }
100% { opacity: 0.5; filter: hue-rotate(-10deg); }
}
/* Particle overlay */
.splash-particles {
position: absolute;
inset: 0;
background-image:
radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
radial-gradient(2px 2px at 20% 85%, rgba(100,150,255,0.3) 0%, transparent 100%),
radial-gradient(2px 2px at 60% 45%, rgba(150,100,255,0.3) 0%, transparent 100%),
radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,0.3) 0%, transparent 100%),
radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.4) 0%, transparent 100%);
animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle {
0% { opacity: 0.8; }
100% { opacity: 1; }
}
/* Vignette */
.splash-vignette {
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
pointer-events: none;
}
/* Logo / emblem */
.splash-logo-wrap {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
animation: emblem-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes emblem-enter {
0% { opacity: 0; transform: scale(0.6) translateY(30px); }
60% { opacity: 1; transform: scale(1.05) translateY(-5px); }
100% { opacity: 1; transform: scale(1) translateY(0); }
}
.splash-emblem {
width: 120px;
height: 120px;
border-radius: 28px;
background: linear-gradient(135deg, #003f7a 0%, #006acd 50%, #003f7a 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 56px;
font-weight: 800;
color: #fff;
box-shadow:
0 0 60px rgba(0, 100, 200, 0.4),
0 0 120px rgba(0, 60, 120, 0.3),
inset 0 1px 0 rgba(255,255,255,0.15);
animation: emblem-pulse 3s ease-in-out infinite;
}
@keyframes emblem-pulse {
0%, 100% { box-shadow: 0 0 60px rgba(0,100,200,0.4), 0 0 120px rgba(0,60,120,0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
50% { box-shadow: 0 0 80px rgba(0,120,220,0.6), 0 0 160px rgba(0,80,150,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
}
.splash-wordmark {
font-size: 18px;
font-weight: 700;
color: rgba(255,255,255,0.85);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.splash-version {
font-size: 11px;
color: rgba(255,255,255,0.35);
font-family: var(--font-mono);
letter-spacing: 0.05em;
}
/* Status text */
.splash-status {
position: absolute;
bottom: 40px;
left: 50%;
transform: translateX(-50%);
z-index: 1;
font-size: 12px;
color: rgba(255,255,255,0.5);
font-family: var(--font-mono);
text-align: center;
animation: fade-in 0.8s ease both 0.5s;
}
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
/* Escape hatch */
.splash-escape {
position: absolute;
bottom: 24px;
right: 24px;
z-index: 2;
display: flex;
align-items: center;
gap: 10px;
animation: fade-in 0.5s ease both;
}
.splash-escape-hint {
font-size: 12px;
color: rgba(255,255,255,0.4);
}
.splash-escape-btn {
padding: 6px 14px;
background: rgba(255,255,255,0.1);
border: 1px solid rgba(255,255,255,0.2);
border-radius: var(--radius-sm);
color: rgba(255,255,255,0.7);
font-size: 12px;
cursor: pointer;
transition: background var(--transition), color var(--transition);
}
.splash-escape-btn:hover {
background: rgba(255,255,255,0.2);
color: #fff;
}
/* State variants */
body.state-loading .splash-status::after {
content: '';
display: inline-block;
width: 6px; height: 6px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
margin-left: 8px;
animation: blink 1s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
body:not(.state-escape) .splash-escape { display: none; }
</style>
</head>
<!--
状态切换:?state=default|loading|checking|starting|error
- default: Logo + "Starting Hermes One…"
- loading: Logo + "Starting Hermes One…" + animated dot
- checking: Logo + "Checking connection…"
- starting: Logo + "Starting SSH tunnel…"
- error: Logo + "Connection failed" + escape hatch
-->
<body class="splash-screen">
<!-- Animated background -->
<div class="splash-bg splash-bg-animated"></div>
<!-- Particles -->
<div class="splash-particles"></div>
<!-- Vignette -->
<div class="splash-vignette"></div>
<!-- Emblem + wordmark -->
<div class="splash-logo-wrap">
<div class="splash-emblem">H</div>
<div class="splash-wordmark">Hermes One</div>
<div class="splash-version">v0.7.4</div>
</div>
<!-- Status -->
<div class="splash-status" id="splash-status">
Starting Hermes One…
</div>
<!-- Escape hatch -->
<div class="splash-escape" id="splash-escape">
<span class="splash-escape-hint">Taking longer than usual?</span>
<button class="splash-escape-btn">Switch to local mode</button>
</div>
<script>
const params = new URLSearchParams(location.search);
const state = params.get('state') || 'default';
const statusEl = document.getElementById('splash-status');
const escapeEl = document.getElementById('splash-escape');
const states = {
default: 'Starting Hermes One…',
loading: 'Starting Hermes One…',
checking: 'Checking connection…',
starting: 'Starting SSH tunnel…',
error: 'Connection failed — check your settings',
};
if (statusEl) statusEl.textContent = states[state] || states.default;
if (escapeEl) {
if (state === 'error' || state === 'starting' || state === 'checking') {
escapeEl.style.display = 'flex';
}
}
// Apply body class
document.body.classList.add('splash-screen');
if (state !== 'default') document.body.classList.add('state-' + state);
if (state === 'error' || state === 'starting') {
document.body.classList.add('state-escape');
}
</script>
</body>
</html>
差异被折叠。
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论