@@ -34,6 +34,8 @@ defmodule AlgoraWeb.Components.TechBadge do
3434 defp icon_path ( "aws" ) , do: "amazonwebservices/amazonwebservices-plain-wordmark.svg"
3535 defp icon_path ( "gcp" ) , do: "googlecloud/googlecloud-original.svg"
3636 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"
3739 defp icon_path ( tech ) , do: "#{ tech } /#{ tech } -original.svg"
3840
3941 defp icon_class ( "rust" ) , do: "bg-white invert saturate-0"
@@ -45,12 +47,17 @@ defmodule AlgoraWeb.Components.TechBadge do
4547 defp icon_class ( _tech ) , do: "bg-transparent"
4648
4749 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
5461 end
5562
5663 def langs do
@@ -103,7 +110,11 @@ defmodule AlgoraWeb.Components.TechBadge do
103110 "GCP" ,
104111 "React" ,
105112 "Svelte" ,
106- "Vue.js"
113+ "Vue.js" ,
114+ "Node.js" ,
115+ "HTML" ,
116+ "CSS" ,
117+ "PostgreSQL"
107118 ]
108119 end
109120end
0 commit comments