-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(www): Added Updated New Hero section
- Loading branch information
1 parent
67ddd90
commit 87784e6
Showing
19 changed files
with
204 additions
and
185 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { MarketingLayout } from "@/components/layout/marketing-layout"; | ||
import { Hero } from "@/components/marketing/hero"; | ||
|
||
export default function HomePage() { | ||
return ( | ||
<MarketingLayout> | ||
<h1>Marketing Page</h1> | ||
<Hero /> | ||
</MarketingLayout> | ||
); | ||
} |
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,15 @@ | ||
export function PageHeaderHeading({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<h1 className="text-center font-heading text-6xl font-bold leading-tight tracking-tighter lg:leading-[1.1]"> | ||
{children} | ||
</h1> | ||
); | ||
} | ||
|
||
export function PageHeaderDescription({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return <p className="text-center text-2xl font-medium">{children}</p>; | ||
} |
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 @@ | ||
import { Icons } from "@/components/icons"; | ||
import { badgeVariants } from "@/components/ui/badge"; | ||
import { BorderBeam } from "@/components/ui/border-beam"; | ||
import { siteUrls } from "@/config/urls"; | ||
import { cn } from "@/lib/utils"; | ||
import Link from "next/link"; | ||
|
||
export function Announcment() { | ||
return ( | ||
<Link | ||
href={siteUrls.marketing.earlyAccess} | ||
className={cn( | ||
badgeVariants({ | ||
variant: "outline", | ||
className: | ||
"relative transition-all hover:border-primary/30", | ||
}), | ||
)} | ||
> | ||
Get Early Access for SaaS Starterkit | ||
<Icons.externalLink className="ml-2 h-3.5 w-3.5" /> | ||
<BorderBeam size={40} duration={5} borderWidth={2} delay={16} /> | ||
</Link> | ||
); | ||
} |
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,24 @@ | ||
import { Background } from "@/components/background"; | ||
import { | ||
PageHeaderDescription, | ||
PageHeaderHeading, | ||
} from "@/components/layout/page-header"; | ||
import { Announcment } from "@/components/marketing/announment"; | ||
|
||
export function Hero() { | ||
return ( | ||
<Background> | ||
<section className="flex flex-col items-center justify-center gap-6 py-16"> | ||
<Announcment /> | ||
|
||
<div className="grid gap-2"> | ||
<PageHeaderHeading>Copy. Build. Launch.</PageHeaderHeading> | ||
<PageHeaderDescription> | ||
<span className="font-bold">Open Source </span> SaaS | ||
Starterkit, Building Blocks and Guides | ||
</PageHeaderDescription> | ||
</div> | ||
</section> | ||
</Background> | ||
); | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
import { cn } from "@/lib/utils"; | ||
|
||
interface BorderBeamProps { | ||
className?: string; | ||
size?: number; | ||
duration?: number; | ||
borderWidth?: number; | ||
anchor?: number; | ||
colorFrom?: string; | ||
colorTo?: string; | ||
delay?: number; | ||
} | ||
|
||
const BorderBeam = ({ | ||
className, | ||
size = 200, | ||
duration = 15, | ||
anchor = 90, | ||
borderWidth = 1.5, | ||
colorFrom = "#ffaa40", | ||
colorTo = "#9c40ff", | ||
delay = 0, | ||
}: BorderBeamProps) => { | ||
return ( | ||
<div | ||
style={ | ||
{ | ||
"--size": size, | ||
"--duration": duration, | ||
"--anchor": anchor, | ||
"--border-width": borderWidth, | ||
"--color-from": colorFrom, | ||
"--color-to": colorTo, | ||
"--delay": `-${delay}s`, | ||
} as React.CSSProperties | ||
} | ||
className={cn( | ||
"absolute inset-[0] rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]", | ||
|
||
// mask styles | ||
"![mask-clip:padding-box,border-box] ![mask-composite:intersect] [mask:linear-gradient(transparent,transparent),linear-gradient(white,white)]", | ||
|
||
// pseudo styles | ||
"after:animate-border-beam after:absolute after:aspect-square after:w-[calc(var(--size)*1px)] after:[animation-delay:var(--delay)] after:[background:linear-gradient(to_left,var(--color-from),var(--color-to),transparent)] after:[offset-anchor:calc(var(--anchor)*1%)_50%] after:[offset-path:rect(0_auto_auto_0_round_calc(var(--size)*1px))]", | ||
className, | ||
)} | ||
/> | ||
); | ||
}; | ||
|
||
export { BorderBeam }; |
Oops, something went wrong.