@@ -164,15 +164,38 @@ const {
164164 <div class =" bg-[#111] p-8 rounded-lg border border-[#333] mb-6" >
165165 <h3 class =" mb-6 font-mono text-white" >{ audience .seniority } </h3 >
166166
167- <div class =" grid grid-cols-1 w-full rounded-md mb-4 sm:grid-cols-3" >
168- <div class =" bg-gray-700 text-gray-300 text-xs font-bold rounded-tl rounded-bl flex items-center justify-center py-4" >
169- 🌱 JUNIOR 20%
167+ <div class =" flex w-full h-12 rounded-lg overflow-hidden mb-3" >
168+ <div
169+ style =" width: 38%"
170+ class =" h-full min-w-[2rem] bg-gray-600 text-gray-200 text-xs font-bold flex items-center justify-center"
171+ >
172+ 38%
170173 </div >
171- <div class =" bg-green-400 text-black text-sm font-bold flex items-center justify-center py-4" >
172- 🚀 SENIOR / PRO 60%
174+ <div
175+ style =" width: 57%"
176+ class =" h-full min-w-[2rem] bg-green-400 text-black text-xs font-bold flex items-center justify-center"
177+ >
178+ 57%
173179 </div >
174- <div class =" bg-gray-700 text-gray-300 text-xs font-bold rounded-tr rounded-br flex items-center justify-center py-4" >
175- 🧠 EXPERT 20%
180+ <div
181+ style =" width: 5%"
182+ class =" h-full min-w-[2rem] bg-gray-500 text-gray-200 text-xs font-bold flex items-center justify-center"
183+ >
184+ 5%
185+ </div >
186+ </div >
187+ <div class =" flex flex-wrap justify-center gap-x-4 gap-y-1 mb-4" >
188+ <div class =" flex items-center gap-2 text-sm text-gray-300" >
189+ <div class =" w-3 h-3 rounded-sm flex-shrink-0 bg-gray-600" ></div >
190+ <span >🌱 JUNIOR 38%</span >
191+ </div >
192+ <div class =" flex items-center gap-2 text-sm text-gray-300" >
193+ <div class =" w-3 h-3 rounded-sm flex-shrink-0 bg-green-400" ></div >
194+ <span >🚀 SENIOR / PRO 57%</span >
195+ </div >
196+ <div class =" flex items-center gap-2 text-sm text-gray-300" >
197+ <div class =" w-3 h-3 rounded-sm flex-shrink-0 bg-gray-500" ></div >
198+ <span >🧠 EXPERT 5%</span >
176199 </div >
177200 </div >
178201
@@ -195,23 +218,36 @@ const {
195218
196219 <div class =" bg-[#111] p-8 rounded-lg border border-[#333]" >
197220 <h3 class =" mb-6 font-mono text-white" >{ interests .title } </h3 >
198- <div class =" space-y-3" >
199- {
200- interests .items .map ((interest ) => (
201- <div class = " flex items-center gap-4" >
202- <div class = " w-32 text-sm text-gray-400" >{ interest .label } </div >
203- <div class = " flex-1 h-8 bg-[#222] rounded overflow-hidden" >
204- <div
205- class = " h-full bg-green-400 flex items-center justify-end pr-2 text-black text-sm font-bold"
206- style = { ` width: ${interest .width } ` }
207- >
208- { interest .pc }
209- </div >
221+ {
222+ (() => {
223+ const colors = [' #4ade80' , ' #60a5fa' , ' #c084fc' , ' #fbbf24' , ' #f472b6' , ' #22d3ee' , ' #fb923c' ]
224+ return (
225+ <>
226+ <div class = " flex w-full h-12 rounded-lg overflow-hidden" >
227+ { interests .items .map ((interest , i ) => (
228+ <div
229+ class = " h-full min-w-[2rem] flex items-center justify-center text-black font-bold text-xs"
230+ style = { ` width: ${interest .pc }; background-color: ${colors [i ]}; ` }
231+ >
232+ { interest .pc }
233+ </div >
234+ ))}
210235 </div >
211- </div >
212- ))
213- }
214- </div >
236+ <div class = " grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-2 mt-4" >
237+ { interests .items .map ((interest , i ) => (
238+ <div class = " flex items-center gap-2 text-sm text-gray-300" >
239+ <div
240+ class = " w-3 h-3 rounded-sm flex-shrink-0"
241+ style = { ` background-color: ${colors [i ]}; ` }
242+ />
243+ <span class = " truncate" >{ interest .label } </span >
244+ </div >
245+ ))}
246+ </div >
247+ </>
248+ )
249+ })()
250+ }
215251 </div >
216252 </section >
217253
0 commit comments