@@ -43,44 +43,47 @@ export const LandingFeaturedProjects = <Name extends string>({
4343 heading : string ;
4444 projects : {
4545 name : FeaturedBadgeName | Name ;
46+ color ?: string ;
4647 link : string ;
4748 description : string ;
4849 title ?: string ;
4950 } [ ] ;
5051 showDivider ?: boolean ;
5152} ) => (
52- < div className = "flex flex-col text-left mx-16 lg:mx-32 xl:mx-64 mt-12 py-12" >
53+ < div className = "flex flex-col gap-6 text-center md: text-left mx-16 lg:mx-32 xl:mx-64 mt-12 py-12" >
5354 { showDivider && < Divider /> }
5455 < h2 className = "my-8 text-4xl font-semibold" > { heading } </ h2 >
55- < div className = "grid grid-cols-2 gap-8 " >
56- { projects . map ( ( { name, link, description, title } ) => {
56+ < div className = "grid grid-cols-2 gap-12 " >
57+ { projects . map ( ( { name, link, description, title, color } ) => {
5758 const lowerCaseName = name . toLocaleLowerCase ( ) ;
5859 return (
5960 < a
6061 href = { link }
6162 key = { link }
62- className = "col-span-2 sm:col-span-1 block grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 align-center items-center text-theme-2 hover:text-theme-2 dark:text-white dark:hover:text-white" >
63+ className = "col-span-2 sm:col-span-1 flex flex-col lg:flex-row gap-6 align-center items-center text-theme-2 hover:text-theme-2 dark:text-white dark:hover:text-white" >
6364 { isFeaturedBadgeName ( lowerCaseName ) ? (
6465 < FeaturedBadge
6566 name = { lowerCaseName }
6667 isHoverable
67- className = "col-span-1 "
68+ className = "lg:basis-1/3 max-w-xs md:justify-self-end "
6869 />
6970 ) : (
7071 < ProjectBadge
7172 color = {
73+ color ||
7274 DEFAULT_BADGE_COLOR_OPTIONS [ Math . floor ( Math . random ( ) * 5 ) + 1 ]
7375 }
7476 isHoverable
7577 abbreviation = { name . charAt ( 0 ) . toUpperCase ( ) + name . slice ( 1 , 2 ) }
7678 description = { name }
79+ className = "lg:basis-1/3 max-w-xs md:justify-self-end"
7780 />
7881 ) }
79- < span className = "flex flex-col col-span-1 lg:col-span-2 " >
82+ < span className = "flex flex-col lg:basis-2/3 text-center md:text-left " >
8083 < span className = "text-xl font-semibold capitalize" >
8184 { title || name }
8285 </ span >
83- < span className = "text-sm " > { description } </ span >
86+ < span className = "text-sm max-w-md " > { description } </ span >
8487 </ span >
8588 </ a >
8689 ) ;
0 commit comments