48 lines
3.7 KiB
Markdown
48 lines
3.7 KiB
Markdown
# EasyDNS OLED design system
|
||
|
||
The visual references are the supplied RustProxy 0.43.1 screenshots and the five approved EasyDNS mockups in `design/reference/`. Only the **visual style** is borrowed; no RustProxy code, logo, APIs, or features are used.
|
||
|
||
## Palette (implemented in CSS)
|
||
|
||
| CSS token | HEX | Purpose |
|
||
|---|---|---|
|
||
| `--bg` | `#050807` | OLED canvas |
|
||
| `--sidebar` | `#060908` | Left navigation |
|
||
| `--panel` | `#111614` | Cards and tables |
|
||
| `--panel-alt` | `#151b17` | Secondary surfaces |
|
||
| `--field` | `#0b100e` | Inputs |
|
||
| `--line` | `#323b37` | Hairline borders |
|
||
| `--text` | `#eff3ed` | Primary typography |
|
||
| `--muted` | `#a5b1aa` | Secondary labels |
|
||
| `--subtle` | `#7f9087` | Hints and metadata |
|
||
| `--green` | `#a6d79d` | Healthy status and primary action |
|
||
| `--cyan` | `#6fcde0` | First graph series and focus |
|
||
| `--amber` | `#f2b42f` | Warning and second graph series |
|
||
| `--red` | `#e88a8a` | Errors and destructive actions |
|
||
|
||
No gradients, glassmorphism, soft shadows, mascot artwork or monogram logo. Corners use small 2–3 px radii, borders use 1 px rules, and action buttons are compact. The EasyDNS wordmark is text-only. Visual status uses labels plus color, never color alone.
|
||
|
||
## Typography, density and layout
|
||
|
||
Inter if installed, otherwise the system UI sans-serif. Use system monospace for counters, IP addresses, DNS names, record contents and tables. Desktop sidebar is 208 px and top bar is 48 px. Normal body copy is 13 px; metadata is 10–12 px. Cards and tables use 9–13 px gaps. Chart groups typically use three columns on desktop, two on tablet, one on mobile.
|
||
|
||
The `Server status` status strip uses a **five-column desktop grid**: Health, Readiness, Mode, Uptime and Version, all visible on one line. The layout adapts below the tablet breakpoint rather than allowing a fifth value to wrap under the first column.
|
||
|
||
## Controls and diagrams
|
||
|
||
- `btn-ui`: subtle outline control; `btn-primary-ui`: green primary action; `btn-danger-ui`: red destructive action; `btn-small`: row action.
|
||
- All input fields have visible labels, a clear keyboard focus ring, required-field indications and readable server-side validation feedback.
|
||
- Irreversible actions require explicit confirmation; API serial conflicts receive dedicated feedback.
|
||
- The multi-server UI uses a flat two-column Primary / Secondary layout with real per-server health labels, no decorative animations. A connector caption (`AXFR / IXFR*`) is explicitly footnoted as **intended topology, not verified replication**.
|
||
- Panel Configuration uses a quiet preference row with a checkbox and Save button. It is **off by default**, and the original sidebar and topbar remain unchanged when disabled.
|
||
|
||
## Charts and data integrity
|
||
|
||
Thin 1.65 px lines, low-contrast grid, restrained cyan and amber series, compact legends and sample time labels. Values come only from native `/stats` samples; no fake historical charts or arbitrary 24-hour metrics are shown. Before there are enough samples, the UI shows "Collecting live samples". Counters are not confused with QPS.
|
||
|
||
Implementation source of truth: `internal/server/web/static/app.css`, `internal/server/web/static/charts.js`, and the Go templates. Screenshots are reference and QA artifacts, not the code implementation.
|
||
|
||
## Optional fleet telemetry presentation
|
||
|
||
When Multi-server is enabled, Metrics uses compact, outlined **Aggregate / Split / Single** mode tabs (no gradients). Aggregate uses combined amber/cyan rate series and explicit responding-node coverage. Split uses a consistent multi-node palette, small legends and a dense per-node status table. Percentile latency always retains individual server lines. A single-node panel retains its original layout unchanged. A removed/offline node never masquerades as zero traffic.
|