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! + + + + router.push('#community')} + > + Gabung Komunitas + + router.push('/events')} + > + Explore Event + + + + + {/* 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() { + > ); }
+ Bergabunglah dengan komunitas IMPHNEN sekarang dan mulai + perjalanan programming mu dengan cara yang menyenangkan! +