-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathDocCard.tsx
More file actions
26 lines (23 loc) · 852 Bytes
/
DocCard.tsx
File metadata and controls
26 lines (23 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from "react";
import type { IconType } from "react-icons/lib";
type DocCardProps = {
Icon?: IconType;
title: string;
link: string;
};
export default function DocCard(props: DocCardProps) {
const { Icon, title, link } = props;
return (
<>
<div
onClick={() => window.open(link, "_self")}
className="my-2 flex gap-2 cursor-pointer rounded-2xl items-center text-lg font-bold border-solid border-[1px] border-[#FF9128] p-4 hover:shadow-[0_0_10px_#FF9128] hover:shadow-orange-500/50 transition-all duration-300 ease-in-out"
>
{Icon && (
<Icon className="text-[#FF9128] text-3xl rounded-lg border-solid border-[1px] border-[#FF9128] p-1" />
)}
{title}
</div>
</>
);
}