Pages were unstyled HTML until now. design/enterprise.css (enconf's 4400-line stylesheet) is tightly coupled to Ant Design/React class names and a fixed desktop sidebar layout — not usable as-is for Deklarix's plain server-rendered forms. Instead, internal/web/static/ app.css is a small, purpose-built mobile-first stylesheet that reuses enconf's actual design tokens (primary blue #1677ff, radius scale, shadows, Inter) for brand consistency without dragging in the unrelated layout/framework rules. Inter is self-hosted (copied from enconf's font files) rather than pulled from Google Fonts, keeping the "no runtime internet dependency" property. Only the "latin" subset is included — German umlauts and ß all live in U+0000-00FF, so the cyrillic/greek/vietnamese subsets enconf ships aren't needed here. Inputs/buttons are sized for touch (44px min-height) and use 16px font size to avoid iOS's auto-zoom-on-focus. Findings are color-coded by severity (red/amber/green backgrounds with a matching left border). Verified visually with chromium --headless --screenshot at both mobile (390px) and desktop (1280px) viewports, including a real WK-001 finding fetched from the running server and rendered through the actual stylesheet — not just asserted via HTTP status codes. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
33 lines
1017 B
HTML
33 lines
1017 B
HTML
{{define "register"}}<!doctype html>
|
|
<html lang="de">
|
|
<head>{{template "head" .}}</head>
|
|
<body>
|
|
<div class="page">
|
|
<h1>Registrieren</h1>
|
|
{{if .Error}}<p class="fehler">{{.Error}}</p>{{end}}
|
|
<form method="post" action="/register">
|
|
<label for="account_name">Name (Creator, Agentur, Marke oder Kanzlei)</label>
|
|
<input type="text" id="account_name" name="account_name" required>
|
|
|
|
<label for="role">Rolle</label>
|
|
<select id="role" name="role" required>
|
|
<option value="creator">Creator</option>
|
|
<option value="agentur">Agentur</option>
|
|
<option value="marke">Marke</option>
|
|
<option value="kanzlei">Kanzlei</option>
|
|
</select>
|
|
|
|
<label for="email">E-Mail</label>
|
|
<input type="email" id="email" name="email" required>
|
|
|
|
<label for="password">Passwort (mind. 8 Zeichen)</label>
|
|
<input type="password" id="password" name="password" minlength="8" required>
|
|
|
|
<button type="submit">Konto anlegen</button>
|
|
</form>
|
|
<p><a href="/login">Schon ein Konto? Anmelden</a></p>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
{{end}}
|