Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(www): Added Updated New Hero section #35

Draft
wants to merge 4 commits into
base: 05-15-feat_saas_rewapping_www_ui
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@vercel/analytics": "^1.2.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"geist": "^1.3.0",
"lucide-react": "^0.343.0",
"next": "^14.1.0",
"next-themes": "^0.2.1",
Expand Down
Binary file added apps/www/public/saasdemo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 0 additions & 112 deletions apps/www/src/app/(app)/(marketing)/page.tsx

This file was deleted.

110 changes: 0 additions & 110 deletions apps/www/src/app/(app)/_components/saas-startkit-highlight.tsx

This file was deleted.

6 changes: 2 additions & 4 deletions apps/www/src/app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +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>
);
}

export const dynamic = "force-static";
export const revalidate = 60 * 60;
6 changes: 2 additions & 4 deletions apps/www/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "@/styles/globals.css";
import type { Metadata } from "next";
import { siteConfig } from "@/config/site";
import { Analytics } from "@vercel/analytics/react";
import { fontSans, fontHeading } from "@/lib/fonts";
import { fontSans } from "@/lib/fonts";

const TITLE =
"Rapidlaunch | Open Source Nextjs SaaS Starterkits and Components";
Expand Down Expand Up @@ -49,9 +49,7 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body
className={`${fontSans.variable} ${fontHeading.variable} font-sans`}
>
<body className={`${fontSans.className} font-sans antialiased`}>
<Providers>
{children}
<Toaster position="top-center" />
Expand Down
57 changes: 22 additions & 35 deletions apps/www/src/components/background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,29 @@ interface BackgroundProps {
export function Background({ children }: BackgroundProps) {
return (
<>
<div className="absolute left-0 top-0 -z-50 h-full w-full overflow-hidden">
<div className="sticky left-0 top-0 h-full w-full overflow-hidden">
<div className="absolute inset-0 z-[-1] bg-muted-foreground/40" />
<div className="absolute left-[--x] top-[--y] z-[-1] h-56 w-56 -translate-x-1/2 -translate-y-1/2 rounded-full bg-gradient-radial from-muted-foreground/50 from-0% to-transparent to-90% blur-md" />
<svg
xmlns="http://www.w3.org/2000/svg"
width="100%"
height="100%"
<svg
className="absolute inset-0 -z-10 h-full w-full stroke-muted-foreground/15 [mask-image:radial-gradient(90%_80%_at_top,white,transparent)] sm:[mask-image:radial-gradient(50%_80%_at_top,white,transparent)]"
aria-hidden="true"
>
<defs>
<pattern
id="0787a7c5-978c-4f66-83c7-11c213f99cb7"
width={130}
height={130}
x="50%"
y={-1}
patternUnits="userSpaceOnUse"
>
<defs>
<pattern
id="dotted-pattern"
width="16"
height="16"
patternUnits="userSpaceOnUse"
>
<circle cx="2" cy="2" r="1" fill="black" />
</pattern>
<mask id="dots-mask">
<rect width="100%" height="100%" fill="white" />
<rect
width="100%"
height="100%"
fill="url(#dotted-pattern)"
/>
</mask>
</defs>
<rect
width="100%"
height="100%"
fill="hsl(var(--background))"
mask="url(#dots-mask)"
/>
</svg>
</div>
</div>
<path d="M.5 200V.5H200" fill="none" />
</pattern>
</defs>
<rect
width="100%"
height="100%"
strokeWidth={0}
fill="url(#0787a7c5-978c-4f66-83c7-11c213f99cb7)"
/>
</svg>

{children}
</>
Expand Down
24 changes: 24 additions & 0 deletions apps/www/src/components/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,28 @@ export const Icons = {
/>
</svg>
),
externalLink: (props: IconProps) => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
color={"currentColor"}
fill={"none"}
{...props}
>
<path
d="M11.1005 3.00208C7.45162 3.00864 5.54086 3.09822 4.31974 4.31931C3.00195 5.63706 3.00195 7.75796 3.00195 11.9997C3.00195 16.2415 3.00195 18.3624 4.31974 19.6801C5.63753 20.9979 7.75849 20.9979 12.0004 20.9979C16.2423 20.9979 18.3632 20.9979 19.6811 19.6801C20.9021 18.4591 20.9917 16.5484 20.9983 12.8996"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
<path
d="M20.4809 3.51715L14.9316 9.05114M20.4809 3.51715C19.9869 3.02264 16.6593 3.06873 15.9558 3.07874M20.4809 3.51715C20.9748 4.01166 20.9288 7.34292 20.9188 8.04718"
stroke="currentColor"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
),
};
4 changes: 2 additions & 2 deletions apps/www/src/components/layout/marketing-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function MarketingHeader() {
const stars = await getGithubRepoStars();

return (
<header className="sticky top-0 flex h-16 w-full items-center justify-center border-b border-border bg-background">
<header className="sticky top-0 z-50 flex h-16 w-full items-center justify-center border-b border-border bg-background">
<div className="container flex items-center justify-between gap-6">
<div className="flex items-center gap-10">
<Link href={siteUrls.marketing.base}>
Expand All @@ -29,7 +29,7 @@ export async function MarketingHeader() {
href={siteUrls.socials.github}
>
<Icons.gitHub className="h-4 w-4" />
<span className="text-sm text-muted-foreground">
<span className="hidden text-sm text-muted-foreground sm:block">
{stars}
</span>
</Link>
Expand Down
Loading
Loading