Skip to content

Commit

Permalink
feat: remove grid from card
Browse files Browse the repository at this point in the history
  • Loading branch information
supattrw committed Nov 10, 2024
1 parent aa24702 commit b603302
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/app/[locale]/(default)/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,20 @@ const faqs: FAQ[] = [
</div>
</div>
<FAQAccordion faqs={(faqs)}/>

<div className='max-x-xs relative w-full'>
<h2 className='content-center items-center text-center'> {t('activeGroup')} </h2>
<div className='grid gap-4 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3'>
{cardData.map(card => (
<div key={card.id} className='group relative p-4'>
<Card className='relative overflow-hidden group-hover:underline'>
<CardHeader className='font-semibold text-xl'>{card.title}</CardHeader>
<CardContent className='max-h-30 overflow-hidden text-ellipsis whitespace-normal'>{card.content}</CardContent>
<div className='absolute inset-0 z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100'>
<Meteors number={10} className={'absolute inset-0 z-10'} hoverDelay='0.5s' />
</div>
</Card>
</div>
<h2 className='m-5 content-center items-center text-center'> {t('activeGroup')} </h2>
<div className='grid gap-4 lg:grid-cols-1'>
{cardData.map(card => (

<div key={card.id} className='group relative p-4'>
<Card className='relative overflow-hidden group-hover:underline'>
<CardHeader className='font-semibold text-xl'>{card.title}</CardHeader>
<CardContent className='max-h-30 overflow-hidden text-ellipsis whitespace-normal'>{card.content}</CardContent>
<div className='absolute inset-0 z-10 opacity-0 transition-opacity duration-500 group-hover:opacity-100'>
<Meteors number={15} className={'absolute inset-0 z-10'} hoverDelay='0.5s' />
</div>
</Card>
</div>
))}
</div>
</div>
</div>;
}

0 comments on commit b603302

Please sign in to comment.