Current section
Files
Jump to
Current section
Files
lib/doggo/storybook/card.ex
defmodule Doggo.Storybook.Card do @moduledoc false alias PhoenixStorybook.Stories.Variation def layout, do: :one_column def variations(_opts) do [ %Variation{ id: :default, slots: slots() } ] end def modifier_variation_base(_id, _name, _value, _opts) do %{ slots: slots() } end defp slots do [ """ <:image> <img src="https://github.com/woylie/doggo/blob/main/assets/dog_poncho.jpg?raw=true" alt="A dog wearing a colorful poncho walks down a fashion show runway." /> </:image> """, """ <:main> The next dog fashion show is coming up quickly. Here's what you need to look out for. </:main> """, """ <:header><h2>Dog Fashion Show</h2></:header> """, """ <:footer> <span>2023-11-15 12:24</span> <span>Events</span> </:footer> """ ] endend