From c3bd39dbdfebd58c181ee540a91f104159efd756 Mon Sep 17 00:00:00 2001 From: Rogerio Bordignon Date: Wed, 8 Oct 2025 16:40:25 -0300 Subject: [PATCH 1/2] feat: add ash framework and one course --- .../components/shared_components.ex | 23 +++++++++++++++++++ .../programming-languages-grid.html.heex | 8 +++++++ priv/repo/data/courses.json | 9 ++++++++ priv/repo/data/frameworks.json | 4 ++++ 4 files changed, 44 insertions(+) diff --git a/lib/techschool_web/components/shared_components.ex b/lib/techschool_web/components/shared_components.ex index 1d24cd1..a9fbfce 100644 --- a/lib/techschool_web/components/shared_components.ex +++ b/lib/techschool_web/components/shared_components.ex @@ -1534,6 +1534,29 @@ defmodule TechschoolWeb.SharedComponents do """ + "ash" -> + ~H""" + + + + + + + + + + """ + _ -> ~H"" end diff --git a/lib/techschool_web/live/page_live/components/programming-languages-grid.html.heex b/lib/techschool_web/live/page_live/components/programming-languages-grid.html.heex index cfbc85e..dbed26d 100644 --- a/lib/techschool_web/live/page_live/components/programming-languages-grid.html.heex +++ b/lib/techschool_web/live/page_live/components/programming-languages-grid.html.heex @@ -72,6 +72,14 @@ Phoenix + <.link + class="flex items-center gap-2 bg-slate-800/30 backdrop-blur-sm rounded-full px-3 py-1 border border-green/20 hover:border-green transition-colors" + navigate={~p"/#{@locale}/courses?framework=ash"} + > + <.custom_icon name="ash" class="w-4 h-4" /> + Ash + + <.link class="flex items-center gap-2 bg-slate-800/30 backdrop-blur-sm rounded-full px-3 py-1 border border-green/20 hover:border-green transition-colors" navigate={~p"/#{@locale}/courses"} diff --git a/priv/repo/data/courses.json b/priv/repo/data/courses.json index 3a6accc..ca0fb71 100644 --- a/priv/repo/data/courses.json +++ b/priv/repo/data/courses.json @@ -1699,5 +1699,14 @@ "framework_names": [], "tool_names": [], "fundamentals_names": [] + }, + { + "name": "Ash Framework SaaS Masterclass", + "youtube_course_id": "PL2Rv8vpZJz4xfqYRlkO3IPg8uBuuHccwf", + "locale": "en", + "language_names": [], + "framework_names": ["Ash"], + "tool_names": [], + "fundamentals_names": [] } ] diff --git a/priv/repo/data/frameworks.json b/priv/repo/data/frameworks.json index 2ed1e86..6e4a503 100644 --- a/priv/repo/data/frameworks.json +++ b/priv/repo/data/frameworks.json @@ -54,5 +54,9 @@ { "name": "Godot", "icon_name": "godot" + }, + { + "name": "Ash", + "icon_name": "ash" } ] From 54e7ba358d053f9b15a4a83cd269d6aaadf42816 Mon Sep 17 00:00:00 2001 From: Rogerio Bordignon Date: Wed, 8 Oct 2025 16:49:26 -0300 Subject: [PATCH 2/2] fix: remove warning by add ash to available icons --- lib/techschool_web/components/shared_components.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techschool_web/components/shared_components.ex b/lib/techschool_web/components/shared_components.ex index a9fbfce..2cb9ba6 100644 --- a/lib/techschool_web/components/shared_components.ex +++ b/lib/techschool_web/components/shared_components.ex @@ -3,7 +3,7 @@ defmodule TechschoolWeb.SharedComponents do attr :name, :string, values: - ~w(github discord heart analytics logo c javascript css elixir gleam golang html java liquid php python ruby typescript algorithms computer-science networking programming docker git linux sql shopify angular django express godot laravel nest next node phoenix rails react remix spring tailwind vue react-router) + ~w(github discord heart analytics logo c javascript css elixir gleam golang html java liquid php python ruby typescript algorithms computer-science networking programming docker git linux sql shopify angular django express godot laravel nest next node phoenix rails react remix spring tailwind vue react-router ash) attr :rest, :global, doc: "the arbitrary HTML attributes to add to the svg"