-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
marketing page layout and component abstraction
- Loading branch information
Showing
10 changed files
with
155 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface FeatureCardProps { | ||
title: string; | ||
description: string; | ||
icon: React.ReactElement; | ||
className?: string; | ||
} | ||
|
||
export const FeatureCard = ({ | ||
title, | ||
description, | ||
icon, | ||
className | ||
}: FeatureCardProps) => { | ||
return ( | ||
<div className="flex flex-col gap-4 bg-background border rounded-lg p-8 group"> | ||
{icon} | ||
<div className="text-3xl"> | ||
{title} | ||
</div> | ||
<div className="text-muted-foreground group-hover:text-primary transition-colors ease-in-out"> | ||
{description} | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { cn } from "@/lib/utils"; | ||
import { Overline } from "./overline"; | ||
|
||
interface SectionHeadingProps { | ||
overline: string; | ||
headline: string; | ||
subheading: string; | ||
align?: "left" | "center" | "right"; | ||
} | ||
|
||
export const SectionHeading = ({ | ||
overline, | ||
headline, | ||
subheading, | ||
align, | ||
}: SectionHeadingProps) => { | ||
return ( | ||
<div className={cn( | ||
"max-w-3xl space-y-4 text-center m-auto mb-16", | ||
align ? `text-${align}` : "text-center" | ||
)} | ||
> | ||
<Overline title={overline} /> | ||
<div className="text-6xl"> | ||
{headline} | ||
</div> | ||
<div className="text-muted-foreground"> | ||
{subheading} | ||
</div> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.