Skip to content

Commit

Permalink
fix: Added animation to cards (#1775)
Browse files Browse the repository at this point in the history
* Update Banner.tsx

Signed-off-by: Akanksha Chaurasia <[email protected]>

* Update Banner.tsx

Signed-off-by: Akanksha Chaurasia <[email protected]>

---------

Signed-off-by: Akanksha Chaurasia <[email protected]>
Co-authored-by: Priyankar Pal <[email protected]>
  • Loading branch information
akanksha984 and priyankarpal authored Jul 21, 2023
1 parent 4564485 commit 521961f
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,21 @@ export default function Banner() {
<div className="mx-auto mt-16 max-w-2xl sm:mt-20 lg:mt-24 lg:max-w-4xl">
<dl className="grid max-w-xl grid-cols-1 gap-x-8 gap-y-10 lg:max-w-none lg:grid-cols-2 lg:gap-y-16">
{features.map((feature) => (
<div key={feature.name} className="relative pl-16">
<dt className="text-base font-semibold leading-7 text-white">
<div className="absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-lg bg-primary">
<feature.icon
className="h-6 w-6 text-white"
aria-hidden="true"
/>
</div>
{feature.name}
</dt>
<dd className="mt-2 text-base leading-7 text-gray-400">
{feature.description}
</dd>
<div key={feature.name} className=" p-5 hover:border border-gray-600 rounded">
<div className="relative pl-16">
<dt className="text-base font-semibold leading-7 text-white">
<div className="absolute left-0 top-0 flex h-10 w-10 items-center justify-center rounded-lg bg-primary">
<feature.icon
className="h-6 w-6 text-white"
aria-hidden="true"
/>
</div>
{feature.name}
</dt>
<dd className="mt-2 text-base leading-7 text-gray-400">
{feature.description}
</dd>
</div>
</div>
))}
</dl>
Expand Down

0 comments on commit 521961f

Please sign in to comment.