108 lines
2.8 KiB
HTML
108 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Counter — el-ui</title>
|
|
<style>
|
|
:root {
|
|
--bg: #080b0f;
|
|
--bg2: #0d1117;
|
|
--text: #e8edf3;
|
|
--text2: #7a8a9a;
|
|
--accent: #38bdf8;
|
|
--accent-dim: rgba(56,189,248,0.12);
|
|
--accent-glow: rgba(56,189,248,0.4);
|
|
--border: rgba(255,255,255,0.08);
|
|
--radius: 8px;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'DM Mono', 'JetBrains Mono', 'Fira Code', monospace;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.app {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.counter {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 32px;
|
|
padding: 48px 64px;
|
|
background: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.count {
|
|
font-size: 72px;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--accent);
|
|
text-shadow: 0 0 40px var(--accent-glow);
|
|
min-width: 120px;
|
|
text-align: center;
|
|
letter-spacing: -0.03em;
|
|
}
|
|
|
|
.buttons {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
button {
|
|
background: var(--accent-dim);
|
|
border: 1px solid var(--accent);
|
|
color: var(--accent);
|
|
font-size: 24px;
|
|
font-family: inherit;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: background 0.15s, box-shadow 0.15s;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
button:hover {
|
|
background: rgba(56,189,248,0.22);
|
|
box-shadow: 0 0 16px var(--accent-glow);
|
|
}
|
|
|
|
button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.el-badge {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
font-size: 10px;
|
|
color: var(--text2);
|
|
opacity: 0.5;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<div class="el-badge">el-ui · spreading activation</div>
|
|
<script type="module" src="./app.js"></script>
|
|
</body>
|
|
</html>
|