diff --git a/apps/www/src/components/early-access-form.tsx b/apps/www/src/app/(app)/_components/early-access-form.tsx similarity index 90% rename from apps/www/src/components/early-access-form.tsx rename to apps/www/src/app/(app)/_components/early-access-form.tsx index 1968013..cd3c7db 100644 --- a/apps/www/src/components/early-access-form.tsx +++ b/apps/www/src/app/(app)/_components/early-access-form.tsx @@ -13,7 +13,7 @@ import { z } from "zod"; import { zodResolver } from "@hookform/resolvers/zod"; import { useForm } from "react-hook-form"; import { useMutation } from "@tanstack/react-query"; -import { joinEarlyAccessAction } from "@/server/actions"; +import { joinEarlyAccessAction } from "@/server/actions/early-access"; import { Icons } from "@/components/icons"; import { toast } from "sonner"; @@ -62,7 +62,7 @@ export function EarlyAccessForm() {
@@ -88,7 +88,7 @@ export function EarlyAccessForm() { @@ -100,7 +100,8 @@ export function EarlyAccessForm() { diff --git a/apps/www/src/app/(app)/page.tsx b/apps/www/src/app/(app)/page.tsx index 9201018..3e54e48 100644 --- a/apps/www/src/app/(app)/page.tsx +++ b/apps/www/src/app/(app)/page.tsx @@ -5,68 +5,92 @@ import { siteUrls } from "@/config/urls"; import { buttonVariants } from "@/components/ui/button"; import { Icons } from "@/components/icons"; import { HighlightTabs } from "@/app/(app)/_components/highlight-tabs"; +import { EarlyAccessForm } from "@/app/(app)/_components/early-access-form"; +import Balancer from "react-wrap-balancer"; +import { Background } from "@/components/background"; export default async function HomePage() { const repoStars = await getRepoStars(); return ( -
- - 🎉 - - RapidLaunch is in development. Follow our progress on 𝕏 - (formally Twitter) - - - - - Rapidly launch your MVP with Beautiful Starterkits, Blocks, and - more. - - - Elevate your development game with Rapidlaunch! Launch your apps - faster with our SaaS starterkits, components, building guides, - and more. Customizable. Open Source. - -
- - Early Access - + <> +
- - Github - - - {repoStars} + 🎉 + + RapidLaunch is in development. Follow our progress on 𝕏 + (formally Twitter) + -
+ + Rapidly launch your MVP with Beautiful Starterkits, Blocks, + and more. + + + Elevate your development game with Rapidlaunch! Launch your + apps faster with our SaaS starterkits, components, building + guides, and more. Customizable. Open Source. + +
+ + Early Access + + + + Github - + + {repoStars} + + +
+ + + - -
+
+ +
+ + Join the Early Access List and get notified when we + launch! + + + +
+
+
+ ); } -export async function getRepoStars() { +async function getRepoStars() { const response = await fetch( "https://api.github.com/repos/afarooq-oss/rapidlaunch", { @@ -82,7 +106,5 @@ export async function getRepoStars() { ? Number((data as { stargazers_count?: string }).stargazers_count) : 0; - console.log(data); - return stars; } diff --git a/apps/www/src/components/background.tsx b/apps/www/src/components/background.tsx new file mode 100644 index 0000000..d705edd --- /dev/null +++ b/apps/www/src/components/background.tsx @@ -0,0 +1,48 @@ +interface BackgroundProps { + children: React.ReactNode; +} + +export function Background({ children }: BackgroundProps) { + return ( + <> +
+
+
+
+ + + + + + + + + + + + +
+
+ + {children} + + ); +} diff --git a/apps/www/src/config/urls.ts b/apps/www/src/config/urls.ts index 51e2277..841eaa0 100644 --- a/apps/www/src/config/urls.ts +++ b/apps/www/src/config/urls.ts @@ -6,4 +6,5 @@ export const siteUrls = { docs: "/docs", twitter: "https://twitter.com/AliFarooqDev", github: "/gh", + earlyAccess: "/#early-access", } as const; diff --git a/apps/www/src/server/actions.ts b/apps/www/src/server/actions/early-access.ts similarity index 100% rename from apps/www/src/server/actions.ts rename to apps/www/src/server/actions/early-access.ts