--- template/app/src/landing-page/components/HighlightedFeature.tsx +++ opensaas-sh/app/src/landing-page/components/HighlightedFeature.tsx @@ -1,11 +1,14 @@ import { cn } from "../../client/utils"; interface FeatureProps { + id?: string; name: string; description: string | React.ReactNode; direction?: "row" | "row-reverse"; highlightedComponent: React.ReactNode; tilt?: "left" | "right"; + className?: string; + url?: string; } /** @@ -13,11 +16,14 @@ * Shows text description on one side, and whatever component you want to show on the other side to demonstrate the functionality. */ export function HighlightedFeature({ + id, name, description, direction = "row", highlightedComponent, tilt, + className, + url, }: FeatureProps) { const tiltToClass: Record["tilt"], string> = { left: "rotate-1", @@ -26,13 +32,16 @@ return (
-

{name}

+ +

{name}

+
{typeof description === "string" ? (

{description}

) : ( @@ -43,6 +52,7 @@ className={cn( "my-10 flex w-full flex-1 items-center justify-center transition-transform duration-300 ease-in-out", tilt && tiltToClass[tilt], + className, )} > {highlightedComponent}