From ff65424ff9a763b332ca1a1d2335811d4cd8ba2c Mon Sep 17 00:00:00 2001 From: arraysid Date: Sat, 17 May 2025 15:31:00 +0700 Subject: [PATCH] feat: add CallToAction component to encourage community engagement --- .../_components/call-to-action/index.tsx | 71 +++++++++++++++++++ .../src/app/(frontend)/(home)/page.tsx | 2 + 2 files changed, 73 insertions(+) create mode 100644 apps/landing/src/app/(frontend)/(home)/_components/call-to-action/index.tsx diff --git a/apps/landing/src/app/(frontend)/(home)/_components/call-to-action/index.tsx b/apps/landing/src/app/(frontend)/(home)/_components/call-to-action/index.tsx new file mode 100644 index 0000000..a9e34d4 --- /dev/null +++ b/apps/landing/src/app/(frontend)/(home)/_components/call-to-action/index.tsx @@ -0,0 +1,71 @@ +'use client'; + +import { Button } from '@components/atoms'; +import { motion, useInView } from 'framer-motion'; +import { useRouter } from 'next/navigation'; +import { useRef } from 'react'; + +export function CallToAction() { + const ref = useRef(null); + const isInView = useInView(ref, { once: true, amount: 0.2 }); + + const router = useRouter(); + + return ( +
+ {/* Background Elements */} +
+
+
+
+ +
+ +
+
+ +
+

+ Siap Menjadi{' '} + + Programmer Handal? + +

+

+ Bergabunglah dengan komunitas IMPHNEN sekarang dan mulai + perjalanan programming mu dengan cara yang menyenangkan! +

+ +
+ + +
+
+ + {/* Decorative Elements */} +
+
+
+ +
+
+ ); +} diff --git a/apps/landing/src/app/(frontend)/(home)/page.tsx b/apps/landing/src/app/(frontend)/(home)/page.tsx index a21c71d..31ab3a2 100644 --- a/apps/landing/src/app/(frontend)/(home)/page.tsx +++ b/apps/landing/src/app/(frontend)/(home)/page.tsx @@ -1,3 +1,4 @@ +import { CallToAction } from './_components/call-to-action'; import { Communities } from './_components/communites'; import { Hero } from './_components/hero'; import { Testimonials } from './_components/testimonials'; @@ -8,6 +9,7 @@ export default async function Page() { + ); }