site_name and site_description are shop identity, not theme concerns. They now live in the Settings table as first-class settings with their own assigns (@site_name, @site_description) piped through hooks and plugs. The setup wizard writes site_name on account creation, and the theme editor reads/writes via Settings.put_setting. Removed the "configure your shop" checklist item since currency/country aren't built yet. Also adds shop name field to setup wizard step 1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
704 B
Elixir
28 lines
704 B
Elixir
defmodule BerrypodWeb.Shop.ComingSoon do
|
|
use BerrypodWeb, :live_view
|
|
|
|
@impl true
|
|
def mount(_params, _session, socket) do
|
|
{:ok, assign(socket, :page_title, "Coming soon")}
|
|
end
|
|
|
|
@impl true
|
|
def render(assigns) do
|
|
~H"""
|
|
<main class="coming-soon" role="main">
|
|
<div>
|
|
<div :if={@logo_image} class="coming-soon-logo">
|
|
<img src={logo_url(@logo_image)} alt={@site_name} />
|
|
</div>
|
|
<h1 class="coming-soon-title">{@site_name}</h1>
|
|
<p class="coming-soon-message">
|
|
We're getting things ready. Check back soon.
|
|
</p>
|
|
</div>
|
|
</main>
|
|
"""
|
|
end
|
|
|
|
defp logo_url(logo_image), do: "/image_cache/#{logo_image.id}.webp"
|
|
end
|