From b91cfbec729cbc6e412428b74d34d9473f6c0299 Mon Sep 17 00:00:00 2001 From: okkdev Date: Mon, 28 Nov 2022 13:44:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chuko_web/components/components.ex | 55 +++++++++++++++++--------- lib/chuko_web/live/home_live.ex | 14 +++---- 2 files changed, 43 insertions(+), 26 deletions(-) diff --git a/lib/chuko_web/components/components.ex b/lib/chuko_web/components/components.ex index 2e23a3e..afa8c61 100644 --- a/lib/chuko_web/components/components.ex +++ b/lib/chuko_web/components/components.ex @@ -5,13 +5,13 @@ defmodule ChukoWeb.Components do ~H"""
-
+
<%= case Enum.count(@item.images) do %> <% 0 -> %> -
- +
+
<% 1 -> %> <% end %>
-
+ @@ -56,7 +68,7 @@ defmodule ChukoWeb.Components do def search_bar(assigns) do ~H""" -
+
<%!-- Slider indicators --%>
<%!-- Slider controls --%> -
+
<%!-- logo --%>
chuko
@@ -50,21 +50,21 @@ defmodule ChukoWeb.HomeLive do <% @searching -> %> <.loading /> <% @query == "" && @items == [] -> %> -
+
try searching something :^)
<% @query != "" && @items == [] -> %> -
+
nothing found...
<% true -> %> <%!-- Filters/Sorting --%> -
+