replace dead Tailwind classes in shop pages with custom CSS

Coming soon page was unstyled after Tailwind removal — replaced
utility classes with proper component CSS. Also removed dead h-full
classes from shop_root layout, adding height: 100% to the shop reset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey 2026-02-19 21:27:52 +00:00
parent 5834be870f
commit 2007279fc6
4 changed files with 40 additions and 6 deletions

View File

@ -2480,4 +2480,31 @@
.product-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.product-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
/* ── Coming soon ── */
.coming-soon {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
min-height: 100dvh;
padding-inline: 1.5rem;
text-align: center;
}
.coming-soon-title {
font-family: var(--t-font-heading);
font-weight: var(--t-heading-weight);
letter-spacing: var(--t-heading-tracking);
color: var(--t-text-primary);
font-size: clamp(1.875rem, 5vw, 2.25rem);
line-height: 1.2;
}
.coming-soon-message {
margin-top: 1rem;
font-size: 1.125rem;
color: var(--t-text-secondary);
}
}

View File

@ -13,12 +13,14 @@
}
html {
height: 100%;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
}
body {
height: 100%;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
@ -78,6 +80,11 @@
cursor: pointer;
}
/* Full-height shop root */
.shop-root {
height: 100%;
}
/* LiveView wrapper divs are layout-invisible */
[data-phx-session],
[data-phx-teleported-src] {

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="h-full">
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@ -31,9 +31,9 @@
<%= Phoenix.HTML.raw(@generated_css) %>
</style>
</head>
<body class="h-full">
<body>
<div
class="themed shop-root h-full"
class="themed shop-root"
data-mood={@theme_settings.mood}
data-typography={@theme_settings.typography}
data-shape={@theme_settings.shape}

View File

@ -9,10 +9,10 @@ defmodule BerrypodWeb.Shop.ComingSoon do
@impl true
def render(assigns) do
~H"""
<main class="flex min-h-screen items-center justify-center px-6 text-center" role="main">
<main class="coming-soon" role="main">
<div>
<h1 class="text-3xl font-bold tracking-tight sm:text-4xl">{@theme_settings.site_name}</h1>
<p class="mt-4 text-lg text-[var(--t-text-muted)]">
<h1 class="coming-soon-title">{@theme_settings.site_name}</h1>
<p class="coming-soon-message">
We're getting things ready. Check back soon.
</p>
</div>