Apply the sidebar shell and bold primitives across the rest of the app so the whole experience shares one visual language: - Browse/organize: series (keeps stacked-covers/series-card CSS), collections (keeps wood-paneling + carousel classes), browse_detail. - Account/stats: profile + form + modal, progress, analytics (stat-card tiles), devices, conflicts (status semantics), queue (status/priority badges). - Admin: admin sidebar restyled with icons, dashboard/users/library/ processing-issues/settings migrated to .card/.btn/.input primitives. - Docs/setup/misc: docs (keeps prose/highlight.js), api_explorer, setup wizard, unlinked_books, custom_section builder. - Modals/fragments: collection_modal, collection_rules, restore_system_collection_modal, filter_item, book_detail_modals — all overlays use --surface-overlay + --shadow-pop. Every Alpine handler, HTMX attribute, id, name, and data-* is preserved; only presentation changes.
48 lines
1.8 KiB
Templ
48 lines
1.8 KiB
Templ
package templates
|
|
|
|
templ Profile(user User) {
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<title>Profile Settings - Bookhoard</title>
|
|
<script src="/static/htmx.min.js"></script>
|
|
<link href="/static/style.css" rel="stylesheet"/>
|
|
</head>
|
|
<body class="theme-{ user.Theme }" x-data="profile">
|
|
@Header(user, "/profile")
|
|
<main class="mx-auto max-w-4xl px-4 sm:px-6 lg:px-8 py-8">
|
|
<div class="mb-8 flex items-center gap-3">
|
|
<span class="grid place-items-center h-10 w-10 rounded-xl shrink-0" style="background-color: var(--accent-muted); color: var(--accent);">
|
|
@Icon("user", "h-5 w-5")
|
|
</span>
|
|
<div>
|
|
<h1 class="text-2xl font-bold tracking-tight" style="color: var(--text-primary)">Profile Settings</h1>
|
|
<p class="text-sm mt-0.5" style="color: var(--text-secondary)">Manage your account information and preferences</p>
|
|
</div>
|
|
</div>
|
|
<div class="space-y-6">
|
|
<div class="card p-6">
|
|
@ProfileForm(user, "/api/auth/profile", true, false, false)
|
|
</div>
|
|
<div class="card p-6">
|
|
<div class="flex items-start gap-3 mb-4">
|
|
<span class="grid place-items-center h-10 w-10 rounded-xl shrink-0" style="background-color: color-mix(in srgb, var(--status-danger) 18%, transparent); color: var(--status-danger);">
|
|
@Icon("alert", "h-5 w-5")
|
|
</span>
|
|
<div>
|
|
<h3 class="text-lg font-semibold" style="color: var(--text-primary)">Danger Zone</h3>
|
|
<p class="text-sm mt-0.5" style="color: var(--text-secondary)">Once you delete your account, there is no going back. Please be certain.</p>
|
|
</div>
|
|
</div>
|
|
<button @click="confirmDeleteAccount()" class="btn btn-danger">
|
|
@Icon("trash", "h-4 w-4")
|
|
Remove My Account
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
}
|