Clean URLs: /new /history /paste /unlock; cans out of topbar; api link renamed to git
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Palette — airy soft</title>
|
||||
<link rel="stylesheet" href="../themes/tokens.css">
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: var(--font-body);
|
||||
background: var(--bg);
|
||||
color: var(--fg);
|
||||
line-height: 1.6;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
|
||||
header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
|
||||
.logo { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
|
||||
.logo span { color: var(--muted-fg); font-weight: 400; }
|
||||
nav a { color: var(--muted-fg); text-decoration: none; margin-left: 20px; font-size: 14px; }
|
||||
nav a:hover { color: var(--fg); }
|
||||
h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
|
||||
.sub { color: var(--muted-fg); font-size: 14px; margin-bottom: 28px; }
|
||||
.card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 1px 2px rgba(42,42,54,0.04), 0 8px 24px rgba(42,42,54,0.05);
|
||||
overflow: hidden;
|
||||
}
|
||||
.field { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
|
||||
.field label { font-size: 13px; color: var(--muted-fg); width: 90px; flex-shrink: 0; }
|
||||
.field input, .field select {
|
||||
border: none; outline: none; background: transparent; color: var(--fg);
|
||||
font: inherit; font-size: 14px; width: 100%;
|
||||
}
|
||||
.editor {
|
||||
min-height: 320px; padding: 18px;
|
||||
font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
|
||||
white-space: pre-wrap; outline: none; color: var(--fg);
|
||||
}
|
||||
.editor:empty::before { content: "Paste your code, text, or notes here…"; color: var(--muted); }
|
||||
.foot {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--border);
|
||||
}
|
||||
.opts { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-fg); flex-wrap: wrap; }
|
||||
.chip {
|
||||
padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
|
||||
background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--muted-fg);
|
||||
transition: all .15s ease;
|
||||
}
|
||||
.chip:hover { border-color: var(--muted); color: var(--fg); }
|
||||
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
|
||||
.btn {
|
||||
background: var(--accent); color: var(--bg); border: none; cursor: pointer;
|
||||
padding: 10px 22px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 550;
|
||||
transition: filter .15s ease;
|
||||
}
|
||||
.btn:hover { filter: brightness(1.08); }
|
||||
/* preset switcher */
|
||||
.presets { position: fixed; bottom: 20px; right: 20px; display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; box-shadow: 0 4px 16px rgba(42,42,54,.12); }
|
||||
.presets button { border: none; background: transparent; cursor: pointer; font: inherit; font-size: 12px; color: var(--muted-fg); padding: 4px 10px; border-radius: 999px; }
|
||||
.presets button.on { background: var(--accent); color: var(--bg); }
|
||||
</style>
|
||||
</head>
|
||||
<body data-preset="smooth">
|
||||
<div class="wrap">
|
||||
<header>
|
||||
<div class="logo">Palette <span>/ beta</span></div>
|
||||
<nav><a href="/history/index.html">history</a><a href="https://git.archfox.org/poslop/palette">git</a></nav>
|
||||
</header>
|
||||
|
||||
<h1>New paste</h1>
|
||||
<p class="sub">Drag files in to start a can. Everything expires when you tell it to.</p>
|
||||
|
||||
<div class="card">
|
||||
<div class="field">
|
||||
<label>Title</label>
|
||||
<input placeholder="Untitled paste">
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Language</label>
|
||||
<select><option>Auto-detect</option><option>Go</option><option>Python</option><option>Plain text</option></select>
|
||||
</div>
|
||||
<div class="editor" contenteditable="true"></div>
|
||||
<div class="foot">
|
||||
<div class="opts">
|
||||
<button class="chip" onclick="this.classList.toggle('on')">🔒 password</button>
|
||||
<button class="chip on" onclick="this.classList.toggle('on')">1 week</button>
|
||||
<button class="chip" onclick="this.classList.toggle('on')">30 days</button>
|
||||
<button class="chip" onclick="this.classList.toggle('on')">burn after read</button>
|
||||
</div>
|
||||
<button class="btn">Create paste</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="presets">
|
||||
<button class="on" onclick="setPreset('smooth', this)">smooth</button>
|
||||
<button onclick="setPreset('midnight', this)">midnight</button>
|
||||
<button onclick="setPreset('sage', this)">sage</button>
|
||||
</div>
|
||||
<script>
|
||||
function setPreset(p, btn) {
|
||||
document.body.dataset.preset = p;
|
||||
document.querySelectorAll('.presets button').forEach(b => b.classList.remove('on'));
|
||||
btn.classList.add('on');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user