add logo to coming soon page

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jamey 2026-02-20 22:19:15 +00:00
parent 9efc0644ba
commit 2563338a6a
2 changed files with 15 additions and 0 deletions

View File

@ -2493,6 +2493,16 @@
text-align: center;
}
.coming-soon-logo {
margin-bottom: 1.5rem;
& img {
max-height: 4rem;
max-width: 12rem;
object-fit: contain;
}
}
.coming-soon-title {
font-family: var(--t-font-heading);
font-weight: var(--t-heading-weight);

View File

@ -11,6 +11,9 @@ defmodule BerrypodWeb.Shop.ComingSoon do
~H"""
<main class="coming-soon" role="main">
<div>
<div :if={@logo_image} class="coming-soon-logo">
<img src={logo_url(@logo_image)} alt={@theme_settings.site_name} />
</div>
<h1 class="coming-soon-title">{@theme_settings.site_name}</h1>
<p class="coming-soon-message">
We're getting things ready. Check back soon.
@ -19,4 +22,6 @@ defmodule BerrypodWeb.Shop.ComingSoon do
</main>
"""
end
defp logo_url(logo_image), do: "/image_cache/#{logo_image.id}.webp"
end