Skip to content

Commit

Permalink
feature cards
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebstep committed Oct 10, 2023
1 parent 81c5486 commit 2f6467d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions components/Featurecard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from "react";
import Link from "next/link";
import { GiWizardStaff } from "react-icons/gi";

type FeaturecardProps = {
title: string;
description: string;
icon: any;
link: string;
};

export default function Featurecard(props: FeaturecardProps) {
return (
<div className="p-4 md:w-1/3">
<div className="flex rounded-lg h-full bg-gray-100 p-8 flex-col">
<div className="flex items-center mb-3">
<div className="w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-blue-500 text-white flex-shrink-0">
{props.icon}
</div>
<h3>{props.title}</h3>
</div>
<div className="flex-grow">
<p className="leading-relaxed text-base">
{props.description}
</p>
<Link href={props.link} className="mt-3 text-indigo-500 inline-flex items-center">
Learn More -&gt;
</Link>
</div>
</div>
</div>
);
}

0 comments on commit 2f6467d

Please sign in to comment.