| 123456789101112131415161718192021222324252627282930 |
- defmodule CvGenView.Basics do
- use Phoenix.Component
- attr(:basics, :map)
- def basics(assigns) do
- ~H"""
- <h1><%= @basics.name %></h1>
- <h2><%= @basics.label %></h2>
- <dl>
- <dt class="location">Lieu</dt>
- <dd><%= @basics.location.city %></dd>
- </dl>
- """
- end
- def css(),
- do: """
- #basics {
- display: grid;
- justify-items: center;
- }
- #basics>h1,
- #basics>h2 {
- text-transform: uppercase;
- }
- """
- end
|