@@ -283,9 +283,11 @@ const Page = () => {
283283 < div className = "max-w-[1170px] mx-auto md:my-[70px] my-[50px] px-4" >
284284 < div className = "flex flex-col md:flex-row gap-6" >
285285 { /* Sidebar */ }
286- < aside className = "w-full md:w-[260px] shrink-0 bg-white/5 rounded-xl p-4 h-fit md:sticky md:top-4 order-1 md:order-1" >
286+ < aside
287+ className = { `w-full md:w-[260px] shrink-0 bg-white/5 rounded-xl p-4 h-fit md:sticky md:top-4 order-1 md:order-1 ${ DevelopmentToolsStyles . filterSidebar } ` }
288+ >
287289 < div className = "flex items-center justify-between mb-3" >
288- < h2 className = " text-sm font-semibold text-white/90" > Filters</ h2 >
290+ < h2 className = { ` text-sm font-semibold text-white/90 ${ DevelopmentToolsStyles . filterHeading } ` } > Filters</ h2 >
289291 { ( selectedCategory || selectedBasis !== "All" || showFavoritesOnly ) && (
290292 < button
291293 className = "text-xs text-primary hover:underline"
@@ -326,17 +328,18 @@ const Page = () => {
326328
327329 { /* Category filter */ }
328330 < div className = "mb-4" >
329- < p className = " text-xs text-white/60 mb-2" > Categories</ p >
331+ < p className = { ` text-xs text-white/60 mb-2 ${ DevelopmentToolsStyles . filterSubLabel } ` } > Categories</ p >
330332 < div className = "space-y-2 md:mt-2" >
331333 { CATEGORY_GROUPS . map ( ( cat ) => (
332334 < button
333335 key = { cat }
334336 onClick = { ( ) => setSelectedCategory ( ( prev ) => ( prev === cat ? null : cat ) ) }
337+ data-active = { selectedCategory === cat }
335338 className = { `w-full text-left px-3 py-2 rounded-lg border transition ${
336339 selectedCategory === cat
337340 ? "bg-primary text-black font-bold border-primary"
338341 : "bg-black/40 text-white border-[#222] hover:bg-black/50"
339- } `}
342+ } ${ DevelopmentToolsStyles . filterCategoryButton } `}
340343 >
341344 < div className = "flex items-center justify-between" >
342345 < span className = "text-sm flex items-center gap-2" >
@@ -358,17 +361,18 @@ const Page = () => {
358361
359362 { /* Basis filter */ }
360363 < div className = "my-8" >
361- < p className = " text-xs text-white/60 mb-2 md:mt-4" > Filter by Type</ p >
364+ < p className = { ` text-xs text-white/60 mb-2 md:mt-4 ${ DevelopmentToolsStyles . filterSubLabel } ` } > Filter by Type</ p >
362365 < div className = "flex flex-wrap gap-2 md:mt-2" >
363366 { BASIS ?. map ( ( b ) => (
364367 < button
365368 key = { b }
366369 onClick = { ( ) => setSelectedBasis ( b ) }
370+ data-active = { selectedBasis === b }
367371 className = { `px-2.5 py-1.5 rounded-full text-xs border transition ${
368372 selectedBasis === b
369373 ? "bg-primary text-black font-bold border-primary"
370374 : "bg-black/40 text-white border-[#222] hover:bg-black/50"
371- } `}
375+ } ${ DevelopmentToolsStyles . filterBasisButton } `}
372376 aria-pressed = { selectedBasis === b }
373377 >
374378 < span className = "flex items-center gap-1.5" >
@@ -383,7 +387,7 @@ const Page = () => {
383387 { /* Main grid */ }
384388 < main className = "flex-1 order-2 md:order-2" >
385389 < div className = "flex items-center justify-between mb-4" >
386- < span className = " text-xs text-white/60" > Showing { filteredItems . length } tools</ span >
390+ < span className = { ` text-xs text-white/60 ${ DevelopmentToolsStyles . showingCount } ` } > Showing { filteredItems . length } tools</ span >
387391 < div className = "flex items-center gap-2" >
388392 { showFavoritesOnly && (
389393 < button
@@ -396,7 +400,7 @@ const Page = () => {
396400 ) }
397401 { selectedCategory && (
398402 < button
399- className = " text-xs px-2 py-1 rounded-full bg-white/10 border border-white/10 hover:bg-white/20"
403+ className = { ` text-xs px-2 py-1 rounded-full bg-white/10 border border-white/10 hover:bg-white/20 ${ DevelopmentToolsStyles . activeFilterPill } ` }
400404 onClick = { ( ) => setSelectedCategory ( null ) }
401405 title = "Clear category filter"
402406 >
@@ -405,7 +409,7 @@ const Page = () => {
405409 ) }
406410 { selectedBasis !== "All" && (
407411 < button
408- className = " text-xs px-2 py-1 rounded-full bg-white/10 border border-white/10 hover:bg-white/20"
412+ className = { ` text-xs px-2 py-1 rounded-full bg-white/10 border border-white/10 hover:bg-white/20 ${ DevelopmentToolsStyles . activeFilterPill } ` }
409413 onClick = { ( ) => setSelectedBasis ( "All" ) }
410414 title = "Clear type filter"
411415 >
@@ -425,7 +429,7 @@ const Page = () => {
425429 < Link
426430 key = { index }
427431 href = { `${ item ?. url } ` }
428- className = { `bg-white/5 rounded-lg p-8 w-full ${ DevelopmentToolsStyles . contentCardHoverEffect } group md:min-h-[160px] relative` }
432+ className = { `bg-white/5 rounded-lg p-8 w-full ${ DevelopmentToolsStyles . contentCardHoverEffect } ${ DevelopmentToolsStyles . toolCard } group md:min-h-[160px] relative` }
429433 >
430434 < div className = "flex justify-between items-start gap-2" >
431435 < h3 className = "text-lg font-semibold pr-6" > { item ?. title } </ h3 >
@@ -449,7 +453,7 @@ const Page = () => {
449453 </ svg >
450454 </ button >
451455 </ div >
452- < p className = " text-white/70 group-hover:text-black/90 text-sm font-medium mt-1" >
456+ < p className = { ` text-white/70 group-hover:text-black/90 text-sm font-medium mt-1 ${ DevelopmentToolsStyles . toolCardDescription } ` } >
453457 { ( ( ) => {
454458 let description = item ?. description || "" ;
455459 let truncated =
@@ -476,7 +480,7 @@ const Page = () => {
476480 ) ) ;
477481 } ) ( ) }
478482 </ p >
479- < div className = " mt-3 text-xs text-white/50" > { item ?. __group } • { item ?. __basis } </ div >
483+ < div className = { ` mt-3 text-xs text-white/50 ${ DevelopmentToolsStyles . toolCardMeta } ` } > { item ?. __group } • { item ?. __basis } </ div >
480484 </ Link >
481485 ) ) }
482486 </ div >
0 commit comments