diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-07-15 23:26:04 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-07-15 23:26:04 +0200 |
| commit | 83d65bdd15946c4307a38af9f5c43b4c51e906fb (patch) | |
| tree | 6173411e9ef69eb9d7f729cc77f3d42c67d8a2cd /apps | |
| parent | 3a8d57921e48b9ca1055644482ad39753c077ff4 (diff) | |
| download | opencut-83d65bdd15946c4307a38af9f5c43b4c51e906fb.tar.gz | |
feat: remove waitlist count due to bots
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/web/src/app/page.tsx | 8 | ||||
| -rw-r--r-- | apps/web/src/components/landing/hero.tsx | 18 |
2 files changed, 2 insertions, 24 deletions
diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 74308470..74961549 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -1,18 +1,12 @@ import { Hero } from "@/components/landing/hero"; import { Header } from "@/components/header"; import { Footer } from "@/components/footer"; -import { getWaitlistCount } from "@/lib/waitlist"; - -// Force dynamic rendering so waitlist count updates in real-time -export const dynamic = "force-dynamic"; export default async function Home() { - const signupCount = await getWaitlistCount(); - return ( <div> <Header /> - <Hero signupCount={signupCount} /> + <Hero /> <Footer /> </div> ); diff --git a/apps/web/src/components/landing/hero.tsx b/apps/web/src/components/landing/hero.tsx index 01ad7e7e..462e3ba7 100644 --- a/apps/web/src/components/landing/hero.tsx +++ b/apps/web/src/components/landing/hero.tsx @@ -10,11 +10,7 @@ import { toast } from "sonner"; import Image from "next/image"; import { Handlebars } from "./handlebars"; -interface HeroProps { - signupCount: number; -} - -export function Hero({ signupCount }: HeroProps) { +export function Hero() { const [email, setEmail] = useState(""); const [isSubmitting, setIsSubmitting] = useState(false); @@ -131,18 +127,6 @@ export function Hero({ signupCount }: HeroProps) { </Button> </form> </motion.div> - - {signupCount > 0 && ( - <motion.div - initial={{ opacity: 0, y: 10 }} - animate={{ opacity: 1, y: 0 }} - transition={{ delay: 0.8, duration: 0.6 }} - className="mt-8 inline-flex items-center gap-2 text-sm text-muted-foreground justify-center" - > - <div className="w-2 h-2 bg-green-500 rounded-full animate-pulse" /> - <span>{signupCount.toLocaleString()} people already joined</span> - </motion.div> - )} </motion.div> </div> ); |
