5f3efebdfc62fc33dd54a2a844b453572c8005cf
Move announcement_bar from ThemeLive.PreviewPages to a new shared SimpleshopThemeWeb.ShopComponents module. This establishes the pattern for Phase 9 storefront integration where components need to work in both the admin theme preview and public storefront pages. Changes: - Create lib/simpleshop_theme_web/components/shop_components.ex - Add optional message attribute (defaults to "Free delivery over £40") - Import ShopComponents in html_helpers for global availability - Import ShopComponents in PreviewPages for embedded template access - Update all 7 preview templates to use short-form <.announcement_bar> - Remove original announcement_bar/1 from PreviewPages (now unused) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
SimpleshopTheme
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
Learn more
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix
Languages
Elixir
86.5%
CSS
11.2%
HTML
1.1%
JavaScript
1.1%
Dockerfile
0.1%