defmodule MoonWeb.Pages.Components.BannerPage do @moduledoc false use MoonWeb, :live_view alias Moon.Components.Banner alias Moon.Components.Button alias Moon.Icons.ControlsClose alias MoonWeb.Components.Page alias MoonWeb.Components.ExampleAndCode alias MoonWeb.Components.ComponentPageDescription data(breadcrumbs, :any, default: [ %{ to: "#", name: "Components v1" }, %{ to: "/components/banner", name: "Banner" } ] ) def render(assigns) do ~F"""

Banners are used to show users important, succinct messages, or space alerts, that users should know about. They can interact or ignore banners at any time, as they are non-modal. What to take note of when using banners Only one banner should be shown at a time. Banners require user action in order to be dismissed. Messages should consist of no longer than one headline, one description sentence and one short call-to-action.

""" end def banner_1_code do """ """ end def banner_2_code do """ <:buttons_slot> """ end def banner_3_code do """ <:icon_header_slot> """ end def banner_4_code do """ <:buttons_slot> """ end def banner_5_code do """ <:link_slot> """ end end