@@ -34,6 +34,8 @@ defmodule AlgoraWeb.Components.TechBadge do
34
34
defp icon_path ( "aws" ) , do: "amazonwebservices/amazonwebservices-plain-wordmark.svg"
35
35
defp icon_path ( "gcp" ) , do: "googlecloud/googlecloud-original.svg"
36
36
defp icon_path ( "objectivec" ) , do: "objectivec/objectivec-plain.svg"
37
+ defp icon_path ( "html" ) , do: "html5/html5-original.svg"
38
+ defp icon_path ( "css" ) , do: "css3/css3-original.svg"
37
39
defp icon_path ( tech ) , do: "#{ tech } /#{ tech } -original.svg"
38
40
39
41
defp icon_class ( "rust" ) , do: "bg-white invert saturate-0"
@@ -45,12 +47,17 @@ defmodule AlgoraWeb.Components.TechBadge do
45
47
defp icon_class ( _tech ) , do: "bg-transparent"
46
48
47
49
defp normalize ( tech ) do
48
- tech
49
- |> String . downcase ( )
50
- |> String . replace ( "+" , "plus" )
51
- |> String . replace ( "#" , "sharp" )
52
- |> String . replace ( "-" , "" )
53
- |> String . replace ( "." , "" )
50
+ case String . downcase ( tech ) do
51
+ "postgres" ->
52
+ "postgresql"
53
+
54
+ t ->
55
+ t
56
+ |> String . replace ( "+" , "plus" )
57
+ |> String . replace ( "#" , "sharp" )
58
+ |> String . replace ( "-" , "" )
59
+ |> String . replace ( "." , "" )
60
+ end
54
61
end
55
62
56
63
def langs do
@@ -103,7 +110,11 @@ defmodule AlgoraWeb.Components.TechBadge do
103
110
"GCP" ,
104
111
"React" ,
105
112
"Svelte" ,
106
- "Vue.js"
113
+ "Vue.js" ,
114
+ "Node.js" ,
115
+ "HTML" ,
116
+ "CSS" ,
117
+ "PostgreSQL"
107
118
]
108
119
end
109
120
end
0 commit comments