diff --git a/src/components/card-caption.tsx b/src/components/card-caption.tsx index 3108a57..1bab4fa 100644 --- a/src/components/card-caption.tsx +++ b/src/components/card-caption.tsx @@ -18,7 +18,7 @@ export function CardCaption({ className={`typo-headline-medium flex ${iconPosition === "right" ? "justify-between" : "flex-col-reverse"}`} > {title} - {icon && } + {icon && }

{caption}

diff --git a/src/components/card-course-group.tsx b/src/components/card-course-group.tsx index 2dba99a..46cb821 100644 --- a/src/components/card-course-group.tsx +++ b/src/components/card-course-group.tsx @@ -40,8 +40,8 @@ export function CardCourseGroup({ {groupName} - {hasWhatsapp && } - {hasTelegram && } + {hasWhatsapp && } + {hasTelegram && } ) } diff --git a/src/components/card-course.tsx b/src/components/card-course.tsx index 52c1fd8..672cea2 100644 --- a/src/components/card-course.tsx +++ b/src/components/card-course.tsx @@ -23,13 +23,13 @@ export function CardCourse({ {courseName} - {location} + {location} - {language} + {language} - + ) diff --git a/src/components/card-path-selection.tsx b/src/components/card-path-selection.tsx index 630bcbb..f615c3e 100644 --- a/src/components/card-path-selection.tsx +++ b/src/components/card-path-selection.tsx @@ -6,7 +6,7 @@ export function CardPathSelection({ caption, icon: Icon = BsBook }: { caption: s return ( - {caption} + {caption} ) diff --git a/src/components/ui/call-to-action.tsx b/src/components/ui/call-to-action.tsx new file mode 100644 index 0000000..974d622 --- /dev/null +++ b/src/components/ui/call-to-action.tsx @@ -0,0 +1,33 @@ +import Link from "next/link" +import type { IconType } from "react-icons" +import { Card, CardAction, CardContent, CardHeader, CardTitle } from "./card" + +export function CallToAction({ + title, + caption, + icon, + href, +}: { + title: string + caption?: string + icon: IconType + href: string +}) { + return ( + + + +
+ +
+ {title} +
+ {caption && ( + +

{caption}

+
+ )} +
+ + ) +} diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx index 4161c83..f22e3dc 100644 --- a/src/components/ui/card.tsx +++ b/src/components/ui/card.tsx @@ -61,10 +61,14 @@ function CardDescription({ className, ...props }: React.ComponentProps<"div">) { function CardAction({ className, icon: Icon, - iconSize = "normal", + iconSize = "md", gradient = true, ...props -}: React.ComponentProps<"div"> & { icon: IconType; iconSize?: "small" | "normal" | "large"; gradient?: boolean }) { +}: React.ComponentProps<"div"> & { + icon: IconType + iconSize?: "xs" | "sm" | "md" | "lg" + gradient?: boolean +}) { const gradientId = React.useId() return ( @@ -83,9 +87,18 @@ function CardAction({ )} )