194 lines
4.4 KiB
HTML
194 lines
4.4 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: #f9fafb; /* sehr helles Grau statt fast Schwarz */
|
|
color: #222; /* dunkle Schrift */
|
|
}
|
|
|
|
header {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #e5e7eb; /* helles Grau */
|
|
position: sticky;
|
|
top: 0;
|
|
background: #ffffff; /* weißer Header */
|
|
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: #ffffff; /* weißer Hintergrund */
|
|
border: 1px solid #d1d5db; /* hellgraue Umrandung */
|
|
color: #111; /* dunkler Text */
|
|
border-radius: 10px;
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
button.primary {
|
|
background: #3b82f6; /* freundliches Blau */
|
|
border-color: #3b82f6;
|
|
color: #fff;
|
|
}
|
|
|
|
.card {
|
|
border: 1px solid #e5e7eb;
|
|
background: #ffffff; /* weiße Karten */
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* leichter Schatten */
|
|
}
|
|
|
|
.list {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.clip {
|
|
display: grid;
|
|
gap: 6px;
|
|
border: 1px solid #e5e7eb;
|
|
padding: 10px;
|
|
border-radius: 12px;
|
|
background: #f3f4f6; /* hellgrauer Hintergrund */
|
|
}
|
|
|
|
.meta {
|
|
color: #6b7280; /* mittleres Grau */
|
|
font-size: 12px;
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.muted {
|
|
color: #6b7280;
|
|
}
|
|
|
|
.inline {
|
|
display: inline-flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
.pill {
|
|
background: #e5e7eb; /* graue Badge */
|
|
border: 1px solid #d1d5db;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
a {
|
|
color: #2563eb; /* satteres Blau */
|
|
text-decoration: none;
|
|
}
|
|
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
</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>
|