@@ -122,43 +122,48 @@ defmodule AlgoraWeb.HomeLive do
122122 < div class = "flex flex-col md:flex-row md:justify-center gap-8 max-w-6xl mx-auto " >
123123 <%= for example <- @ company_people_examples do %>
124124 <%= if Map . get ( example , :special ) do %>
125- < div class = "flex-1 flex mb-12 max-w-md " >
126- < div class = "relative flex items-center gap-3 p-6 bg-gradient-to-br from-emerald-900/30 to-emerald-800/20 rounded-xl border-2 border-emerald-400/30 shadow-xl shadow-emerald-400/10 w-full " >
125+ < div class = "relative flex-1 flex mb-12 max-w-md " >
126+ < div class = "truncate flex items-center gap-2 sm:gap- 3 p-4 sm:py -6 bg-gradient-to-br from-emerald-900/30 to-emerald-800/20 rounded-xl border-2 border-emerald-400/30 shadow-xl shadow-emerald-400/10 w-full " >
127127 < img
128128 src = { example . person_avatar }
129129 alt = { example . person_name }
130- class = "size-12 rounded-full ring-2 ring-emerald-400/50 "
130+ class = "size-8 sm:size-12 rounded-full ring-2 ring-emerald-400/50 "
131+ />
132+ < . icon
133+ name = "tabler-arrow-right "
134+ class = "size-3 sm:size-4 text-emerald-400 shrink-0 "
131135 />
132- < . icon name = "tabler-arrow-right " class = "size-4 text-emerald-400 shrink-0 " />
133136 < img
134137 src = { example . company_avatar }
135138 alt = { example . company_name }
136- class = "size-12 rounded-full ring-2 ring-emerald-400/50 "
139+ class = "size-8 sm:size- 12 rounded-full ring-2 ring-emerald-400/50 "
137140 />
138141 < div class = "flex-1 " >
139142 < div class = "text-sm font-medium whitespace-nowrap text-emerald-100 " >
140143 { example . person_name }
141144 < . icon name = "tabler-arrow-right " class = "size-3 text-emerald-400 " /> { example . company_name }
142145 </ div >
143146 < div class = "text-xs text-emerald-200/80 mt-1 " > { example . person_title } </ div >
144- < div class = "text-xs text-emerald-300/70 mt-1 " > { example . hire_date } </ div >
147+ < div :if = { example [ :hire_date ] } class = "text-xs text-emerald-300/70 mt-1 " >
148+ { example . hire_date }
149+ </ div >
145150 </ div >
146- < . badge
147- variant = "secondary "
148- class = "absolute -top-2 -left-2 text-xs px-3 py-1 text-black bg-gradient-to-r from-emerald-400 to-emerald-500 font-semibold shadow-lg "
149- >
150- < . icon name = "tabler-star-filled " class = "size-4 text-black mr-1 -ml-0.5 " />
151- New hire!
152- </ . badge >
153-
154- <%= if String . contains? ( example . company_name , "YC" ) do %>
155- < img
156- src = { ~p" /images/logos/yc.svg" }
157- alt = "Y Combinator "
158- class = "absolute -top-2 -right-2 size-6 opacity-90 "
159- />
160- <% end %>
161151 </ div >
152+ < . badge
153+ variant = "secondary "
154+ class = "absolute -top-2 -left-2 text-xs px-2 sm:px-3 py-0.5 sm:py-1 text-black bg-gradient-to-r from-emerald-400 to-emerald-500 font-semibold shadow-lg "
155+ >
156+ < . icon name = "tabler-star-filled " class = "size-4 text-black mr-1 -ml-0.5 " />
157+ New hire!
158+ </ . badge >
159+
160+ <%= if String . contains? ( example . company_name , "YC" ) do %>
161+ < img
162+ src = { ~p" /images/logos/yc.svg" }
163+ alt = "Y Combinator "
164+ class = "absolute -top-2 -right-2 size-6 opacity-90 "
165+ />
166+ <% end %>
162167 </ div >
163168 <% end %>
164169 <% end %>
@@ -168,13 +173,16 @@ defmodule AlgoraWeb.HomeLive do
168173 < div class = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto " >
169174 <%= for example <- @ company_people_examples do %>
170175 <%= unless Map . get ( example , :special ) do %>
171- < div class = "relative flex items-center gap-3 p-6 bg-card rounded-xl border shrink-0 " >
176+ < div class = "relative flex items-center gap-2 sm:gap- 3 p-4 sm:py -6 bg-card rounded-xl border shrink-0 " >
172177 < img
173178 src = { example . person_avatar }
174179 alt = { example . person_name }
175180 class = "size-8 sm:size-12 rounded-full "
176181 />
177- < . icon name = "tabler-arrow-right " class = "size-4 text-muted-foreground shrink-0 " />
182+ < . icon
183+ name = "tabler-arrow-right "
184+ class = "size-3 sm:size-4 text-muted-foreground shrink-0 "
185+ />
178186 < img
179187 src = { example . company_avatar }
180188 alt = { example . company_name }
@@ -1065,7 +1073,6 @@ defmodule AlgoraWeb.HomeLive do
10651073 person_name: "Tom" ,
10661074 person_avatar: "https://avatars.githubusercontent.com/u/38532?v=4" ,
10671075 person_title: "Staff Engineer" ,
1068- hire_date: "June 2025" ,
10691076 special: true
10701077 } ,
10711078 % {
@@ -1074,7 +1081,6 @@ defmodule AlgoraWeb.HomeLive do
10741081 person_name: "Aman" ,
10751082 person_avatar: "https://avatars.githubusercontent.com/u/53134669?v=4" ,
10761083 person_title: "Software Engineer" ,
1077- hire_date: "July 2025" ,
10781084 special: true
10791085 } ,
10801086 % {
@@ -1083,7 +1089,6 @@ defmodule AlgoraWeb.HomeLive do
10831089 person_name: "David" ,
10841090 person_avatar: "https://avatars.githubusercontent.com/u/51977119?v=4" ,
10851091 person_title: "Software Engineer" ,
1086- hire_date: "July 2025" ,
10871092 special: true
10881093 } ,
10891094 % {
0 commit comments