Skip to content

Commit 37fe68a

Browse files
committed
feat: add more tech icons
1 parent 368ae5e commit 37fe68a

File tree

6 files changed

+70
-7
lines changed

6 files changed

+70
-7
lines changed

lib/algora_web/components/tech_badge.ex

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ defmodule AlgoraWeb.Components.TechBadge do
1717
<.badge variant={@variant} {@rest}>
1818
<%= if Enum.any?(langs(), &(normalize(&1) == @tech_lower)) do %>
1919
<.avatar class="w-4 h-4 mr-1 rounded-sm">
20-
<.avatar_image
21-
src={"https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/#{icon_path(@tech_lower)}"}
22-
class={icon_class(@tech_lower)}
23-
/>
20+
<.avatar_image src={icon_url(@tech_lower)} class={icon_class(@tech_lower)} />
2421
<.avatar_fallback>
2522
{Algora.Util.initials(@tech, 1)}
2623
</.avatar_fallback>
@@ -31,6 +28,13 @@ defmodule AlgoraWeb.Components.TechBadge do
3128
"""
3229
end
3330

31+
defp icon_url("nvidia"), do: "/images/logos/nvidia.svg"
32+
defp icon_url("firecracker"), do: "/images/logos/firecracker.png"
33+
defp icon_url("ray"), do: "/images/logos/ray.png"
34+
defp icon_url("vllm"), do: "/images/logos/vllm.png"
35+
defp icon_url("huggingface"), do: "/images/logos/huggingface.png"
36+
defp icon_url(tech), do: "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/#{icon_path(tech)}"
37+
3438
defp icon_path("aws"), do: "amazonwebservices/amazonwebservices-plain-wordmark.svg"
3539
defp icon_path("gcp"), do: "googlecloud/googlecloud-original.svg"
3640
defp icon_path("objectivec"), do: "objectivec/objectivec-plain.svg"
@@ -86,8 +90,14 @@ defmodule AlgoraWeb.Components.TechBadge do
8690
"dockerfile" ->
8791
"docker"
8892

89-
"shell" ->
90-
"bash"
93+
"nix" ->
94+
"nixos"
95+
96+
"cuda" ->
97+
"nvidia"
98+
99+
"transformers" ->
100+
"huggingface"
91101

92102
t ->
93103
t
@@ -167,7 +177,13 @@ defmodule AlgoraWeb.Components.TechBadge do
167177
"JIRA",
168178
"GitHub",
169179
"Shell",
170-
"FastAPI"
180+
"FastAPI",
181+
"NixOS",
182+
"Nvidia",
183+
"Firecracker",
184+
"Ray",
185+
"vLLM",
186+
"Huggingface"
171187
]
172188
end
173189
end
12.9 KB
Loading
14.6 KB
Loading
Lines changed: 47 additions & 0 deletions
Loading

priv/static/images/logos/ray.png

7.71 KB
Loading

priv/static/images/logos/vllm.png

7.36 KB
Loading

0 commit comments

Comments
 (0)