92 lines
3.8 KiB
HTML
92 lines
3.8 KiB
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Virtuelle Zwischenablage</title>
|
|
<style>
|
|
:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; }
|
|
body { margin: 0; background: #0b0f19; color: #e6e6e6; }
|
|
header { padding: 16px 20px; border-bottom: 1px solid #1f2637; position: sticky; top: 0; background: #0b0f19; z-index: 1; }
|
|
h1 { margin: 0; font-size: 18px; }
|
|
main { max-width: 900px; margin: 0 auto; padding: 20px; }
|
|
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
|
|
.grid { display: grid; gap: 12px; }
|
|
input, textarea, select, button { background: #131a2a; border: 1px solid #22304d; color: #e6e6e6; border-radius: 10px; padding: 10px; font-size: 14px; }
|
|
button { cursor: pointer; }
|
|
button.primary { background: #3b82f6; border-color: #3b82f6; color: #fff; }
|
|
.card { border: 1px solid #1f2637; background: #0f1524; border-radius: 14px; padding: 14px; }
|
|
.list { display: grid; gap: 10px; }
|
|
.clip { display: grid; gap: 6px; border: 1px solid #22304d; padding: 10px; border-radius: 12px; background: #0b1222; }
|
|
.meta { color: #9aa6c6; font-size: 12px; display: flex; gap: 10px; align-items: center; }
|
|
.actions { display: flex; gap: 8px; }
|
|
.muted { color: #9aa6c6; }
|
|
.inline { display: inline-flex; gap: 8px; align-items: center; }
|
|
.pill { background: #14203a; border: 1px solid #22304d; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
|
|
a { color: #7cb2ff; text-decoration: none; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>🗂️ Virtuelle Zwischenablage</h1>
|
|
</header>
|
|
<main>
|
|
<div class="grid">
|
|
<div class="card grid">
|
|
<div class="row">
|
|
<div class="inline">
|
|
<label for="room" class="muted">Raum:</label>
|
|
<input id="room" placeholder="z.B. default, team, dev" value="default" />
|
|
<span id="tokenWrap" class="inline" style="display:none">
|
|
<label for="token" class="muted">Token:</label>
|
|
<input id="token" placeholder="geheimer Schlüssel" />
|
|
</span>
|
|
</div>
|
|
<div class="actions">
|
|
<button id="btnCopyLatest">Aktuell kopieren</button>
|
|
<button id="btnShare">Share-Link</button>
|
|
</div>
|
|
</div>
|
|
<textarea id="content" rows="5" placeholder="Text hier einfügen…"></textarea>
|
|
<div class="row">
|
|
<input id="author" placeholder="Optional: Name/Autor" />
|
|
<button id="btnSend" class="primary">An Zwischenablage senden</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="inline" style="justify-content: space-between; width: 100%">
|
|
<div>
|
|
<strong>Verlauf</strong>
|
|
<span class="pill" id="status">not connected</span>
|
|
</div>
|
|
<div class="inline">
|
|
<label for="limit" class="muted">Anzahl:</label>
|
|
<select id="limit">
|
|
<option>10</option>
|
|
<option selected>25</option>
|
|
<option>50</option>
|
|
<option>100</option>
|
|
</select>
|
|
<button id="btnReload">Neu laden</button>
|
|
<button id="btnClear">Raum leeren</button>
|
|
<button id="btnDelete">Raum löschen</button>
|
|
</div>
|
|
</div>
|
|
<div class="list" id="list"></div>
|
|
</div>
|
|
<div class="card">
|
|
<div class="inline" style="justify-content: space-between; width: 100%">
|
|
<strong>Räume</strong>
|
|
<button id="btnRooms">Aktualisieren</button>
|
|
</div>
|
|
<div class="list" id="roomsList"></div>
|
|
</div>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
<script src="/app.js"></script>
|
|
</body>
|
|
</html>
|