Skip to content

Commit 5bdc62d

Browse files
Merge pull request #113 from rog404/rb/feat/add-ash-course
feat: add ash framework and one ash playlist
2 parents 2393a4d + 54e7ba3 commit 5bdc62d

4 files changed

Lines changed: 45 additions & 1 deletion

File tree

lib/techschool_web/components/shared_components.ex

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule TechschoolWeb.SharedComponents do
33

44
attr :name, :string,
55
values:
6-
~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)
6+
~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)
77

88
attr :rest, :global, doc: "the arbitrary HTML attributes to add to the svg"
99

@@ -1534,6 +1534,29 @@ defmodule TechschoolWeb.SharedComponents do
15341534
</svg>
15351535
"""
15361536

1537+
"ash" ->
1538+
~H"""
1539+
<svg
1540+
xmlns="http://www.w3.org/2000/svg"
1541+
width="123"
1542+
height="100"
1543+
viewBox="0 0 123 100"
1544+
fill="none"
1545+
{@rest}
1546+
>
1547+
<path d="M61.1819 0L122.364 100H119.033L44.1681 27.8086L61.1819 0Z" fill="#FF5757" />
1548+
<path
1549+
d="M22.2352 100H29.4163L67.9877 53.5421L43.6726 30.0954L22.2352 100Z"
1550+
fill="#FF914D"
1551+
/>
1552+
<path d="M52.3575 100H32.0029L52.7027 75.0678L52.3575 100Z" fill="#FFBD59" />
1553+
<path d="M54.3478 100H91.6425L54.725 72.7514L54.3478 100Z" fill="#FF5757" />
1554+
<path d="M95.8815 100L70.8665 56.3181L116.166 100H95.8815Z" fill="#FF914D" />
1555+
<path d="M92.5593 98.2033L55.9368 71.1724L68.4492 56.1016L92.5593 98.2033Z" fill="#FFBD59" />
1556+
<path d="M20.1537 100H0L40.4074 33.9553L20.1537 100Z" fill="#FFBD59" />
1557+
</svg>
1558+
"""
1559+
15371560
_ ->
15381561
~H""
15391562
end

lib/techschool_web/live/page_live/components/programming-languages-grid.html.heex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@
7272
<span class="text-xs text-gray-300">Phoenix</span>
7373
</.link>
7474

75+
<.link
76+
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"
77+
navigate={~p"/#{@locale}/courses?framework=ash"}
78+
>
79+
<.custom_icon name="ash" class="w-4 h-4" />
80+
<span class="text-xs text-gray-300">Ash</span>
81+
</.link>
82+
7583
<.link
7684
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"
7785
navigate={~p"/#{@locale}/courses"}

priv/repo/data/courses.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,5 +1699,14 @@
16991699
"framework_names": [],
17001700
"tool_names": [],
17011701
"fundamentals_names": []
1702+
},
1703+
{
1704+
"name": "Ash Framework SaaS Masterclass",
1705+
"youtube_course_id": "PL2Rv8vpZJz4xfqYRlkO3IPg8uBuuHccwf",
1706+
"locale": "en",
1707+
"language_names": [],
1708+
"framework_names": ["Ash"],
1709+
"tool_names": [],
1710+
"fundamentals_names": []
17021711
}
17031712
]

priv/repo/data/frameworks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@
5454
{
5555
"name": "Godot",
5656
"icon_name": "godot"
57+
},
58+
{
59+
"name": "Ash",
60+
"icon_name": "ash"
5761
}
5862
]

0 commit comments

Comments
 (0)