36 lines
1.9 KiB
HTML
36 lines
1.9 KiB
HTML
|
|
<!doctype html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8" />
|
||
|
|
<style>
|
||
|
|
:root { --p: #6366f1; --p-h: #4f46e5; --bg: #f8fafc; --sf: #fff; --bd: #e2e8f0; --tx: #0f172a; --mut: #64748b; }
|
||
|
|
* { box-sizing: border-box; margin: 0; }
|
||
|
|
body { width: 300px; font: 13px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--tx); padding: 16px; }
|
||
|
|
.head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
|
||
|
|
.mark { font-size: 18px; }
|
||
|
|
.name { font-weight: 700; letter-spacing: .12em; }
|
||
|
|
button { width: 100%; height: 38px; border: none; border-radius: 8px; background: var(--p); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
|
||
|
|
button:hover:not(:disabled) { background: var(--p-h); }
|
||
|
|
button:disabled { opacity: .6; cursor: default; }
|
||
|
|
.status { margin-top: 12px; padding: 10px; border-radius: 8px; background: var(--sf); border: 1px solid var(--bd); font-size: 12px; color: var(--mut); min-height: 38px; display: flex; align-items: center; gap: 8px; }
|
||
|
|
.status[data-state="done"] { color: #16a34a; border-color: #bbf7d0; }
|
||
|
|
.status[data-state="error"] { color: #dc2626; border-color: #fecaca; }
|
||
|
|
.spin { width: 12px; height: 12px; border: 2px solid var(--bd); border-top-color: var(--p); border-radius: 50%; animation: s .7s linear infinite; }
|
||
|
|
@keyframes s { to { transform: rotate(360deg); } }
|
||
|
|
.opts { margin-top: 12px; text-align: center; }
|
||
|
|
.opts a { color: var(--mut); font-size: 12px; text-decoration: none; }
|
||
|
|
.opts a:hover { color: var(--p); }
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="head">
|
||
|
|
<span class="mark">❄</span>
|
||
|
|
<span class="name">FORGE SYNC</span>
|
||
|
|
</div>
|
||
|
|
<button id="sync">Sync now</button>
|
||
|
|
<div class="status" id="status" data-state="idle">Ready.</div>
|
||
|
|
<div class="opts"><a href="#" id="open-options">Server & token settings →</a></div>
|
||
|
|
<script src="popup.js"></script>
|
||
|
|
</body>
|
||
|
|
</html>
|