Web panel (like txAdmin) on the game port: login/roles/users, players, kick/ban/op, bans, live console, world reset/backups/restore, settings editor, save ZIP upload/download, start/stop/restart; in-process restart loop; tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+184
@@ -0,0 +1,184 @@
|
||||
:root {
|
||||
--bg: #17171b;
|
||||
--panel: #1e1e23;
|
||||
--panel-2: #24242a;
|
||||
--sidebar: #0f0f12;
|
||||
--border: #2e2e36;
|
||||
--text: #ececf1;
|
||||
--muted: #8e8e99;
|
||||
--accent: #f26b1d;
|
||||
--accent-hover: #ff823a;
|
||||
--online: #3dd68c;
|
||||
--pending: #f2c230;
|
||||
--danger: #e5484d;
|
||||
--danger-hover: #f2555a;
|
||||
--radius: 10px;
|
||||
--mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
.hidden { display: none !important; }
|
||||
.muted { color: var(--muted); }
|
||||
.error { color: var(--danger); margin: 0; }
|
||||
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
|
||||
h1 { font-size: 22px; }
|
||||
h2 { font-size: 18px; }
|
||||
h3 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* ---------------------------------------------------------------- Knöpfe & Felder */
|
||||
.btn {
|
||||
border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer;
|
||||
background: var(--panel-2); color: var(--text); transition: background .12s, transform .06s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn:hover { background: #2f2f37; }
|
||||
.btn:active { transform: translateY(1px); }
|
||||
.btn:disabled { opacity: .5; cursor: default; }
|
||||
.btn.primary { background: var(--accent); color: #fff; }
|
||||
.btn.primary:hover { background: var(--accent-hover); }
|
||||
.btn.danger { background: rgba(229, 72, 77, .14); color: #ff8a8d; }
|
||||
.btn.danger:hover { background: var(--danger); color: #fff; }
|
||||
.btn.ghost { background: transparent; color: var(--muted); }
|
||||
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
|
||||
.btn.small { padding: 6px 11px; font-size: 13px; }
|
||||
.btn.wide { width: 100%; }
|
||||
|
||||
input, select, textarea {
|
||||
width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
|
||||
border-radius: 8px; padding: 9px 12px; font: inherit; outline: none; transition: border-color .12s;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
|
||||
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
|
||||
label input, label select { margin-top: 6px; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 400; }
|
||||
|
||||
.pill {
|
||||
display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
|
||||
background: rgba(242, 107, 29, .16); color: var(--accent); letter-spacing: .03em;
|
||||
}
|
||||
.pill.gray { background: rgba(255, 255, 255, .08); color: var(--muted); }
|
||||
.pill.green { background: rgba(61, 214, 140, .14); color: var(--online); }
|
||||
.pill.red { background: rgba(229, 72, 77, .15); color: #ff8a8d; }
|
||||
|
||||
/* ---------------------------------------------------------------- Anmeldung */
|
||||
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px 16px;
|
||||
background: radial-gradient(ellipse at top, rgba(242, 107, 29, .12), transparent 60%), var(--bg); }
|
||||
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--border);
|
||||
border-radius: 14px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
|
||||
.auth-card h1 { margin-top: 6px; }
|
||||
.auth-card p { margin: -8px 0 0; }
|
||||
|
||||
.brand { display: flex; align-items: center; gap: 12px; }
|
||||
.brand img { width: 40px; height: 40px; border-radius: 9px; }
|
||||
.brand-title { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
|
||||
.brand-sub { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
|
||||
|
||||
/* ---------------------------------------------------------------- Layout */
|
||||
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
|
||||
.sidebar { background: var(--sidebar); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px;
|
||||
position: sticky; top: 0; height: 100vh; }
|
||||
.sidebar .brand { padding: 0 8px; }
|
||||
nav { display: grid; gap: 2px; }
|
||||
nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent;
|
||||
border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
|
||||
nav button:hover { background: #18181d; color: var(--text); }
|
||||
nav button.active { background: var(--panel-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
|
||||
nav .ico { width: 18px; text-align: center; opacity: .9; }
|
||||
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 8px; }
|
||||
.me { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; overflow: hidden; }
|
||||
.me span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
|
||||
.content { min-width: 0; display: flex; flex-direction: column; }
|
||||
.topbar { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-bottom: 1px solid var(--border);
|
||||
background: rgba(23, 23, 27, .85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
|
||||
.server-name { font-weight: 700; font-size: 16px; }
|
||||
.server-meta { color: var(--muted); font-size: 12px; }
|
||||
.status-dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--pending); box-shadow: 0 0 0 4px rgba(242, 194, 48, .15); }
|
||||
.status-dot.ok { background: var(--online); box-shadow: 0 0 0 4px rgba(61, 214, 140, .15); }
|
||||
.status-dot.bad { background: var(--danger); box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
|
||||
.menu { display: none; }
|
||||
.page { padding: 24px 28px 40px; display: grid; gap: 20px; align-content: start; }
|
||||
|
||||
/* ---------------------------------------------------------------- Karten */
|
||||
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
|
||||
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
|
||||
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
|
||||
.stat-value { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
|
||||
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
|
||||
.section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
|
||||
.section-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
|
||||
.section-head h2 { margin-right: auto; }
|
||||
.section-body { padding: 18px; }
|
||||
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
|
||||
.row > input { flex: 1; min-width: 180px; }
|
||||
.empty { color: var(--muted); padding: 26px 18px; text-align: center; }
|
||||
|
||||
/* ---------------------------------------------------------------- Tabellen */
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; }
|
||||
th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
|
||||
font-weight: 700; padding: 10px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
|
||||
td { padding: 11px 18px; border-bottom: 1px solid #26262d; vertical-align: middle; }
|
||||
tr:last-child td { border-bottom: 0; }
|
||||
tbody tr:hover { background: rgba(255, 255, 255, .02); }
|
||||
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
|
||||
.id { font-family: var(--mono); color: var(--muted); }
|
||||
.mono { font-family: var(--mono); font-size: 13px; }
|
||||
.player-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
/* ---------------------------------------------------------------- Konsole */
|
||||
.console { background: #0c0c0f; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; height: 60vh; min-height: 300px;
|
||||
overflow-y: auto; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; }
|
||||
.console .t { color: #5d5d68; margin-right: 8px; }
|
||||
.console .l-chat { color: #9fd3ff; }
|
||||
.console .l-panel { color: #ffb37f; }
|
||||
.console .l-cmd { color: var(--accent); }
|
||||
.console .l-warn { color: #ff8a8d; }
|
||||
.console.small { height: 260px; min-height: 0; }
|
||||
.form-grid { display: grid; gap: 14px; max-width: 420px; }
|
||||
.grid-2 { display: grid; gap: 20px; }
|
||||
.form-grid.wide { max-width: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 20px; }
|
||||
.label-row { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.hint { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; text-transform: none; letter-spacing: normal; font-weight: 400; }
|
||||
.toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding-top: 18px; }
|
||||
.toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
|
||||
input[type=file] { padding: 7px; }
|
||||
input[type=file]::file-selector-button { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }
|
||||
.console-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--panel); }
|
||||
.console-input input { font-family: var(--mono); }
|
||||
|
||||
/* ---------------------------------------------------------------- Modal & Hinweise */
|
||||
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; z-index: 50;
|
||||
animation: fade .12s ease-out; }
|
||||
.modal { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
|
||||
padding: 22px; display: grid; gap: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
|
||||
.modal.danger { border-top: 3px solid var(--danger); }
|
||||
.modal p { margin: 0; color: var(--muted); }
|
||||
.modal .buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
|
||||
@keyframes fade { from { opacity: 0; } }
|
||||
|
||||
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; max-width: min(380px, calc(100vw - 32px)); }
|
||||
.toast { background: var(--panel-2); border: 1px solid var(--border); border-left: 3px solid var(--online); border-radius: 10px;
|
||||
padding: 11px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: slide .2s ease-out; white-space: pre-wrap; }
|
||||
.toast.err { border-left-color: var(--danger); }
|
||||
@keyframes slide { from { transform: translateX(20px); opacity: 0; } }
|
||||
|
||||
/* ---------------------------------------------------------------- Handy */
|
||||
@media (max-width: 820px) {
|
||||
.layout { grid-template-columns: 1fr; }
|
||||
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40; transform: translateX(-100%); transition: transform .18s; }
|
||||
.sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
|
||||
.menu { display: inline-block; }
|
||||
.topbar { padding: 14px 16px; }
|
||||
.page { padding: 16px 16px 32px; }
|
||||
th, td { padding: 10px 12px; }
|
||||
.console { height: 55vh; }
|
||||
}
|
||||
Reference in New Issue
Block a user