From bf30c76b177a88c8b381194ffdd31ae1ce1957f6 Mon Sep 17 00:00:00 2001 From: Zack Siri Date: Tue, 19 Nov 2024 21:35:52 +0700 Subject: [PATCH] clean up formatting and remove svg background --- lib/opsmaru/pages/card.ex | 15 ++++--- lib/opsmaru_web/components/base_components.ex | 6 ++- .../components/course_components.ex | 14 ++++-- lib/opsmaru_web/components/home_components.ex | 43 +++++++++++-------- .../components/layouts/root.html.heex | 14 +++--- .../controllers/error_html/404.html.heex | 26 +++++------ lib/opsmaru_web/live/course_live/index.ex | 2 +- lib/opsmaru_web/live/legal_live.ex | 8 ++-- priv/static/images/liquid-cheese.svg | 1 - 9 files changed, 76 insertions(+), 53 deletions(-) delete mode 100644 priv/static/images/liquid-cheese.svg diff --git a/lib/opsmaru/pages/card.ex b/lib/opsmaru/pages/card.ex index 9db5b55..004f5b3 100644 --- a/lib/opsmaru/pages/card.ex +++ b/lib/opsmaru/pages/card.ex @@ -21,13 +21,14 @@ defmodule Opsmaru.Pages.Card do def changeset(card, params) do %{ "_id" => id, - "card" => %{ - "title" => title, - "heading" => heading, - "description" => description, - "slug" => %{"current" => slug}, - "cover" => cover_params - } = card_params + "card" => + %{ + "title" => title, + "heading" => heading, + "description" => description, + "slug" => %{"current" => slug}, + "cover" => cover_params + } = card_params } = params params = diff --git a/lib/opsmaru_web/components/base_components.ex b/lib/opsmaru_web/components/base_components.ex index c9258fc..10efcd4 100644 --- a/lib/opsmaru_web/components/base_components.ex +++ b/lib/opsmaru_web/components/base_components.ex @@ -257,7 +257,11 @@ defmodule OpsmaruWeb.BaseComponents do - Opsmaru + Opsmaru <%= gettext("Opsmaru") %> diff --git a/lib/opsmaru_web/components/course_components.ex b/lib/opsmaru_web/components/course_components.ex index 675e95e..381c771 100644 --- a/lib/opsmaru_web/components/course_components.ex +++ b/lib/opsmaru_web/components/course_components.ex @@ -34,7 +34,8 @@ defmodule OpsmaruWeb.CourseComponents do attr :categories, :list, required: true def categories(assigns) do - infrastructure_setup_category = Enum.find(assigns.categories, &(&1.slug == "infrastructure-setup")) + infrastructure_setup_category = + Enum.find(assigns.categories, &(&1.slug == "infrastructure-setup")) assigns = assign(assigns, :infrastructure_setup_category, infrastructure_setup_category) @@ -56,11 +57,18 @@ defmodule OpsmaruWeb.CourseComponents do