diff --git a/apps/dimentorin/src/app/(public)/(home)/_components/cta-section.tsx b/apps/dimentorin/src/app/(public)/(home)/_components/cta-section.tsx new file mode 100644 index 0000000..65e0f6b --- /dev/null +++ b/apps/dimentorin/src/app/(public)/(home)/_components/cta-section.tsx @@ -0,0 +1,154 @@ +import { Button } from '@imphnen-frontend-service/ui/atoms'; +import { cn } from '@imphnen-frontend-service/utils'; +import { FC, useRef } from 'react'; +import { motion, useInView, Variants } from 'framer-motion'; + +export const CTASection: FC = () => { + const ref = useRef(null) + const isInView = useInView(ref, { once: true, amount: 0.2 }) + + const containerVariants: Variants = { + hidden: { opacity: 0 }, + visible: { + opacity: 1, + transition: { + staggerChildren: 0.1, + delayChildren: 0.2, + }, + }, + } + + const scaleVariant: Variants = { + hidden: { scale: 0 }, + visible: { + scale: 1, + transition: { + duration: 0.5, + ease: [0.25, 0.46, 0.45, 0.94], + }, + }, + } + + const contentVariant: Variants = { + hidden: { opacity: 0, y: 20 }, + visible: { + opacity: 1, + y: 0, + transition: { + duration: 0.5, + ease: [0.25, 0.46, 0.45, 0.94], + }, + }, + } + + return ( + + + {/* Background gradients and shapes */} + + + + + + + + + + + + + + + Start Your IT Journey Now! + + + Jangan biarkan progress mu hanya jadi side story! + + + Dapatkan mentor terbaik dan gunakan AI untuk belajar lebih cepat. Waktunya jadi protagonist dalam perjalanan IT-mu! + + + + + + Mulai Belajar Dengan AI + + + Temukan Mentor + + + + + ) +} diff --git a/apps/dimentorin/src/app/(public)/(home)/page.tsx b/apps/dimentorin/src/app/(public)/(home)/page.tsx index fc3d8f1..87b0dee 100644 --- a/apps/dimentorin/src/app/(public)/(home)/page.tsx +++ b/apps/dimentorin/src/app/(public)/(home)/page.tsx @@ -3,6 +3,7 @@ import { HeroSection } from './_components/hero-section'; import { WhatWeOfferSection } from './_components/what-we-offer-section'; import { TestimonialSection } from './_components/testimonial-section'; import { FAQSection } from './_components/faq-section'; +import { CTASection } from './_components/cta-section'; export const Components: FC = (): ReactElement => { return ( @@ -11,6 +12,7 @@ export const Components: FC = (): ReactElement => { + > ); };