feat(SW-1383): Implement ContentCard for the Start Page * feat(SW-1383): Implement ContentCard - Add ContentCard component - Use within CarouselCards component * fix(SW-1383): adjust carousel and content card styling * refactor(SW-1383): optimize ContentCard component styling and props * feat(SW-1383): move ContentCard image check out of component * feat(SW-1383): Add optional link prop to ContentCard component * refactor(SW-1383): Make ContentCard component linkable Approved-by: Christian Andolf Approved-by: Erik Tiekstra
22 lines
430 B
TypeScript
22 lines
430 B
TypeScript
import type { ImageVaultAsset } from "@/types/components/imageVault"
|
|
|
|
export interface ContentCardProps {
|
|
link?: {
|
|
href: string
|
|
openInNewTab?: boolean
|
|
isExternal?: boolean
|
|
}
|
|
heading: string
|
|
image: ImageVaultAsset
|
|
bodyText: string
|
|
promoText?: string
|
|
className?: string
|
|
}
|
|
|
|
export interface ContentCardLinkProps {
|
|
href: string
|
|
openInNewTab?: boolean
|
|
isExternal?: boolean
|
|
children: React.ReactNode
|
|
}
|