diff --git a/src/components/CardCategory1.tsx b/src/components/CardCategory1.tsx new file mode 100644 index 0000000..6217b23 --- /dev/null +++ b/src/components/CardCategory1.tsx @@ -0,0 +1,52 @@ +import React, { FC } from "react"; +import { TaxonomyType } from "@/data/types"; +import Link from "next/link"; +import Image from "next/image"; + +export interface CardCategory1Props { + className?: string; + taxonomy: TaxonomyType; + size?: "large" | "normal"; +} + +const CardCategory1: FC = ({ + className = "", + size = "normal", + taxonomy, +}) => { + const { count, name, href = "/", thumbnail } = taxonomy; + return ( + +
+ +
+ +
+

+ {name} +

+ + {count} Articles + +
+ + ); +}; + +export default CardCategory1;