2026-02-12 08:35:22 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en" class="h-full">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
2026-02-18 21:23:15 +00:00
|
|
|
<.live_title default="Admin" suffix=" · Berrypod">
|
2026-02-12 08:35:22 +00:00
|
|
|
{assigns[:page_title]}
|
|
|
|
|
</.live_title>
|
2026-02-20 23:53:42 +00:00
|
|
|
<!-- Preload critical fonts for the current typography preset -->
|
|
|
|
|
<%= for preload <- Berrypod.Theme.Fonts.preload_links(
|
|
|
|
|
@theme_settings.typography,
|
|
|
|
|
&BerrypodWeb.Endpoint.static_path/1
|
|
|
|
|
) do %>
|
|
|
|
|
<link rel="preload" href={preload.href} as="font" type="font/woff2" crossorigin />
|
|
|
|
|
<% end %>
|
2026-02-17 20:07:52 +00:00
|
|
|
<!-- Pre-declare layer order so shop reset < Tailwind base regardless of load order -->
|
|
|
|
|
<style>
|
2026-02-21 00:13:33 +00:00
|
|
|
@layer properties, reset, primitives, tokens, theme, base, components, layout, admin, utilities, overrides;
|
2026-02-17 20:07:52 +00:00
|
|
|
</style>
|
2026-03-01 23:24:47 +00:00
|
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/theme.css"} />
|
2026-02-18 01:15:28 +00:00
|
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/admin.css"} />
|
2026-02-17 20:07:52 +00:00
|
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/shop.css"} />
|
2026-02-20 23:53:42 +00:00
|
|
|
<!-- Generated theme CSS with @font-face declarations -->
|
|
|
|
|
<style id="theme-css">
|
|
|
|
|
<%= Phoenix.HTML.raw(@generated_css) %>
|
|
|
|
|
</style>
|
2026-02-12 08:35:22 +00:00
|
|
|
<script defer phx-track-static src={~p"/assets/js/app.js"}>
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
<body class="h-full">
|
2026-02-20 23:56:43 +00:00
|
|
|
<div class="themed" data-mood={@theme_settings.mood} style="min-height:100%">
|
|
|
|
|
{@inner_content}
|
|
|
|
|
</div>
|
2026-02-12 08:35:22 +00:00
|
|
|
</body>
|
|
|
|
|
</html>
|