From 3841ee5ed7a10cea7e2ade94776ffc934ca91197 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sun, 21 Jul 2024 22:04:18 +0500 Subject: [PATCH] style: run mix format --- .../components/core_components.ex | 13 +- lib/comfycamp_web/components/icons.ex | 123 +++++++++++++++--- .../components/layouts/root.html.heex | 6 +- 3 files changed, 109 insertions(+), 33 deletions(-) diff --git a/lib/comfycamp_web/components/core_components.ex b/lib/comfycamp_web/components/core_components.ex index 0d96ae4..ec3df42 100644 --- a/lib/comfycamp_web/components/core_components.ex +++ b/lib/comfycamp_web/components/core_components.ex @@ -241,13 +241,7 @@ defmodule ComfycampWeb.CoreComponents do ~H"""
<.label for={@id}><%= @label %> - <%= Phoenix.HTML.Form.options_for_select(@options, @value) %> @@ -468,10 +462,7 @@ defmodule ComfycampWeb.CoreComponents do def back(assigns) do ~H"""
- <.link - navigate={@navigate} - class="back-nav-link" - > + <.link navigate={@navigate} class="back-nav-link"> <.icon name="hero-arrow-left-solid" class="h-3 w-3" /> <%= render_slot(@inner_block) %> diff --git a/lib/comfycamp_web/components/icons.ex b/lib/comfycamp_web/components/icons.ex index 172bad2..a64cc7c 100644 --- a/lib/comfycamp_web/components/icons.ex +++ b/lib/comfycamp_web/components/icons.ex @@ -26,23 +26,52 @@ defmodule ComfycampWeb.Icons do def icon(%{name: "hero-exclamation-circle"} = assigns) do ~H""" - - + + """ end def icon(%{name: "hero-information-circle"} = assigns) do ~H""" - - + + """ end def icon(%{name: "hero-x-mark"} = assigns) do ~H""" - + """ @@ -50,56 +79,112 @@ defmodule ComfycampWeb.Icons do def icon(%{name: "hero-code-bracket"} = assigns) do ~H""" - - + + """ end def icon(%{name: "hero-envelope"} = assigns) do ~H""" - - + + """ end def icon(%{name: "si-mastodon"} = assigns) do ~H""" - - + + """ end def icon(%{name: "si-xmpp"} = assigns) do ~H""" - - + + """ end def icon(%{name: "si-matrix"} = assigns) do ~H""" - - + + """ end def icon(%{name: "yggdrasil"} = assigns) do ~H""" - - + + """ end def icon(assigns) do ~H""" - - + + """ end diff --git a/lib/comfycamp_web/components/layouts/root.html.heex b/lib/comfycamp_web/components/layouts/root.html.heex index e0fcc7f..41749af 100644 --- a/lib/comfycamp_web/components/layouts/root.html.heex +++ b/lib/comfycamp_web/components/layouts/root.html.heex @@ -24,10 +24,10 @@ /> - - + + - +