diff --git a/src/app/page.tsx b/src/app/page.tsx index 19367f1..e6ff587 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { FaBookBookmark } from "react-icons/fa6" import { FiBook, FiBookOpen, FiClipboard, FiFileText, FiPenTool, FiTriangle, FiUploadCloud } from "react-icons/fi" import { CardCaption } from "@/components/card-caption" import { CardCourse } from "@/components/card-course" +import { CardCourseGroup } from "@/components/card-course-group" import { CardIcon } from "@/components/card-icon" import { CardPathSelection } from "@/components/card-path-selection" import { Hero } from "@/components/home/hero" @@ -60,6 +61,12 @@ export default function Home() {
+ + + + +
+
diff --git a/src/components/card-course-group.tsx b/src/components/card-course-group.tsx new file mode 100644 index 0000000..17a4934 --- /dev/null +++ b/src/components/card-course-group.tsx @@ -0,0 +1,60 @@ +import { cva, type VariantProps } from "class-variance-authority" +import type { IconType } from "react-icons" +import { FaWhatsapp } from "react-icons/fa" +import { LiaTelegramPlane } from "react-icons/lia" +import { cn } from "@/lib/utils" +import { Card, CardAction, CardTitle } from "./ui/card" + +export const cardCourseGroupVariants = cva( + "flex h-fit w-full flex-row items-center gap-5 px-7.5 py-6.25 font-normal leading-6 tracking-[0.03125rem]", + { + variants: { + secondary: { + true: "bg-[rgba(148,192,237,0.40)]", + false: "", + }, + }, + defaultVariants: { + secondary: false, + }, + } +) + +export function CardCourseGroup({ + groupName, + hasWhatsapp = true, + iconWhatsApp: IconWhatsApp = FaWhatsapp, + hasTelegram = true, + iconTelegram: IconTelegram = LiaTelegramPlane, + secondary = false, +}: { + groupName: string + hasWhatsapp?: boolean + iconWhatsApp?: IconType + hasTelegram?: boolean + iconTelegram?: IconType +} & VariantProps) { + return ( + + + {groupName} + + {hasWhatsapp && ( + + )} + {hasTelegram && ( + + )} + + ) +}