Archived
142 lines
3.7 KiB
HTML
142 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Todos — el-ui</title>
|
|
<style>
|
|
:root {
|
|
--bg: #080b0f;
|
|
--bg2: #0d1117;
|
|
--bg3: #111820;
|
|
--text: #e8edf3;
|
|
--text2: #7a8a9a;
|
|
--accent: #38bdf8;
|
|
--accent-dim: rgba(56,189,248,0.10);
|
|
--accent-glow: rgba(56,189,248,0.35);
|
|
--border: rgba(255,255,255,0.08);
|
|
--radius: 8px;
|
|
--green: #4ade80;
|
|
--green-dim: rgba(74,222,128,0.12);
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'DM Mono', 'Fira Code', monospace;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
padding: 64px 16px;
|
|
}
|
|
|
|
.app { width: 100%; max-width: 480px; }
|
|
|
|
.todo-app {
|
|
background: var(--bg2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
color: var(--text2);
|
|
padding: 20px 20px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.input-row {
|
|
display: flex;
|
|
gap: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
input[type="text"] {
|
|
flex: 1;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
padding: 14px 16px;
|
|
outline: none;
|
|
}
|
|
|
|
input[type="text"]::placeholder { color: var(--text2); }
|
|
|
|
input[type="text"]:focus {
|
|
background: rgba(255,255,255,0.02);
|
|
}
|
|
|
|
button {
|
|
background: var(--accent-dim);
|
|
border: none;
|
|
border-left: 1px solid var(--border);
|
|
color: var(--accent);
|
|
font-family: inherit;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
padding: 0 20px;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
button:hover {
|
|
background: rgba(56,189,248,0.18);
|
|
}
|
|
|
|
.item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
font-size: 13px;
|
|
list-style: none;
|
|
transition: background 0.1s;
|
|
}
|
|
|
|
.item:last-child { border-bottom: none; }
|
|
|
|
.item:hover { background: rgba(255,255,255,0.02); }
|
|
|
|
.item.done span {
|
|
text-decoration: line-through;
|
|
color: var(--text2);
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
accent-color: var(--green);
|
|
width: 14px;
|
|
height: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.el-badge {
|
|
position: fixed;
|
|
bottom: 16px;
|
|
right: 16px;
|
|
font-size: 10px;
|
|
color: var(--text2);
|
|
opacity: 0.4;
|
|
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>
|