From a4e543d30ed703806972ed77f72a4b1e96484f99 Mon Sep 17 00:00:00 2001 From: arraysid Date: Thu, 29 May 2025 19:08:59 +0700 Subject: [PATCH] feat: remove all unused components in landing --- .../_components/__old__/call-to-action.tsx | 75 ---------- .../(home)/_components/__old__/community.tsx | 110 -------------- .../(home)/_components/__old__/features.tsx | 94 ------------ .../(home)/_components/__old__/hero.tsx | 130 ---------------- .../__old__/learning-resources.tsx | 141 ------------------ .../_components/__old__/testimonials.tsx | 126 ---------------- apps/landing/src/data/communities-stats.json | 6 - apps/landing/src/data/communities.json | 23 --- apps/landing/src/data/features.json | 22 --- apps/landing/src/data/learning-resources.json | 30 ---- apps/landing/src/data/testimonial-stats.json | 6 - 11 files changed, 763 deletions(-) delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/call-to-action.tsx delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/community.tsx delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/features.tsx delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/hero.tsx delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/learning-resources.tsx delete mode 100644 apps/landing/src/app/(public)/(home)/_components/__old__/testimonials.tsx delete mode 100644 apps/landing/src/data/communities-stats.json delete mode 100644 apps/landing/src/data/communities.json delete mode 100644 apps/landing/src/data/features.json delete mode 100644 apps/landing/src/data/learning-resources.json delete mode 100644 apps/landing/src/data/testimonial-stats.json diff --git a/apps/landing/src/app/(public)/(home)/_components/__old__/call-to-action.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/call-to-action.tsx deleted file mode 100644 index b7a608f..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/call-to-action.tsx +++ /dev/null @@ -1,75 +0,0 @@ -'use client'; - -import { Button } from '@components'; -import { motion, useInView } from 'framer-motion'; -import { useRef } from 'react'; - -export function CallToAction() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.2 }); - - 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/(public)/(home)/_components/__old__/community.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/community.tsx deleted file mode 100644 index 20b6ff0..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/community.tsx +++ /dev/null @@ -1,110 +0,0 @@ -'use client'; - -import COMMUNITIES_STATS from '@/data/communities-stats.json'; -import COMMUNITIES from '@/data/communities.json'; -import { Button } from '@components'; -import { Icon } from '@iconify/react'; -import { motion, useInView } from 'framer-motion'; -import { useRef } from 'react'; - -export function Community() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.2 }); - - const containerVariants = { - hidden: { opacity: 0 }, - visible: { - opacity: 1, - transition: { - staggerChildren: 0.1, - }, - }, - }; - - const itemVariants = { - hidden: { y: 20, opacity: 0 }, - visible: { - y: 0, - opacity: 1, - transition: { duration: 0.5 }, - }, - }; - - return ( -
-
-
-
-
-
- -

- Komunitas{' '} - - Kami - -

-

- Bergabunglah dengan ribuan programmer Indonesia yang saling membantu - dan berbagi pengalaman. -

-
- - {COMMUNITIES.map((c, i) => ( - -
-
-
- -
-

{c.title}

-

{c.description}

- -
-
- - ))} - - - {COMMUNITIES_STATS.map((s, i) => ( -
-
- {s.value} -
-
{s.label}
-
- ))} -
-
-
- ); -} diff --git a/apps/landing/src/app/(public)/(home)/_components/__old__/features.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/features.tsx deleted file mode 100644 index 61df652..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/features.tsx +++ /dev/null @@ -1,94 +0,0 @@ -'use client'; - -import FEATURES from '@/data/features.json'; -import { Icon } from '@iconify/react'; -import { motion, useInView } from 'framer-motion'; -import { useRef } from 'react'; - -export function Features() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.2 }); - - const containerVariants = { - hidden: { opacity: 0 }, - visible: { - opacity: 1, - transition: { - staggerChildren: 0.1, - }, - }, - }; - - const itemVariants = { - hidden: { y: 20, opacity: 0 }, - visible: { - y: 0, - opacity: 1, - transition: { duration: 0.5 }, - }, - }; - - return ( -
-
-
-
-
- -
-
- -
- Fitur Unggulan -
-

- Belajar programming dengan cara yang lebih baik -

-

- IMPHNEN hadir dengan berbagai fitur untuk membantu kamu menjadi - programmer handal tanpa harus pusing dengan coding. -

-
-
- - - {FEATURES.map((feature, index) => ( - -
- -
-
- -
-

{feature.title}

-

{feature.description}

-
- -
- - ))} - -
-
- ); -} diff --git a/apps/landing/src/app/(public)/(home)/_components/__old__/hero.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/hero.tsx deleted file mode 100644 index f669874..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/hero.tsx +++ /dev/null @@ -1,130 +0,0 @@ -'use client'; - -import HERO_STATS from '@/data/hero-stats.json'; -import { Button, SparklesIcon } from '@components'; -import { motion } from 'framer-motion'; -import Image from 'next/image'; -import { Fragment, useEffect, useState } from 'react'; - -export function Hero() { - const [scrollY, setScrollY] = useState(0); - - useEffect(() => { - const handleScroll = () => { - setScrollY(window.scrollY); - }; - - window.addEventListener('scroll', handleScroll); - return () => window.removeEventListener('scroll', handleScroll); - }, []); - - return ( -
-
-
-
-
-
-
- -
-
- -
- - Komunitas Programmer Indonesia -
- -
-

- Programmer Handal,
- - Tanpa Ribet - -

-

- Temukan potensi programming Anda bersama komunitas yang - mendukung, tutorial interaktif, dan sumber daya berkualitas - tinggi. -

-
- -
- - -
- -
- {HERO_STATS.map(({ value, label }, i) => ( - -
-
- {value} -
-
{label}
-
- {i < HERO_STATS.length - 1 && ( -
- )} - - ))} -
- - - - logo - -
-
-
- ); -} diff --git a/apps/landing/src/app/(public)/(home)/_components/__old__/learning-resources.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/learning-resources.tsx deleted file mode 100644 index 9f39a99..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/learning-resources.tsx +++ /dev/null @@ -1,141 +0,0 @@ -'use client'; - -import LEARNING_RESOURCES from '@/data/learning-resources.json'; -import { Button } from '@components'; -import { Icon } from '@iconify/react'; -import { motion, useInView } from 'framer-motion'; -import { useRef } from 'react'; - -export function LearningResources() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.2 }); - - const containerVariants = { - hidden: { opacity: 0 }, - visible: { - opacity: 1, - transition: { - staggerChildren: 0.1, - }, - }, - }; - - const itemVariants = { - hidden: { y: 20, opacity: 0 }, - visible: { - y: 0, - opacity: 1, - transition: { duration: 0.5 }, - }, - }; - - return ( -
-
-
-
-
-
-
-
- -

- Sumber Belajar -

-

- Akses berbagai materi belajar yang akan membantu kamu menguasai - konsep programming dengan cara yang menyenangkan. -

-
-
- - {LEARNING_RESOURCES.map((r, i) => ( - -
-
-
- -
-

{r.title}

-

{r.description}

- - -
-
- - ))} - - -
-
-
- Rekomendasi Terbaik -
-

- Kursus Lengkap Web Development -

-

- Pelajari HTML, CSS, JavaScript, React, dan Node.js dalam satu - kursus komprehensif yang dirancang untuk pemula hingga tingkat - menengah. -

-
- - -
-
-
-
-
-
-
-
-
-
-
- -
-
- ); -} diff --git a/apps/landing/src/app/(public)/(home)/_components/__old__/testimonials.tsx b/apps/landing/src/app/(public)/(home)/_components/__old__/testimonials.tsx deleted file mode 100644 index 159304a..0000000 --- a/apps/landing/src/app/(public)/(home)/_components/__old__/testimonials.tsx +++ /dev/null @@ -1,126 +0,0 @@ -'use client'; - -import TESTIMONIAL_STATS from '@/data/testimonial-stats.json'; -import TESTIMONIALS from '@/data/testimonials.json'; -import { QuoteIcon } from '@components'; -import { motion, useInView } from 'framer-motion'; -import Image from 'next/image'; -import { useRef } from 'react'; - -export function Testimonials() { - const ref = useRef(null); - const isInView = useInView(ref, { once: true, amount: 0.2 }); - - const containerVariants = { - hidden: { opacity: 0 }, - visible: { opacity: 1, transition: { staggerChildren: 0.1 } }, - }; - - const itemVariants = { - hidden: { y: 20, opacity: 0 }, - visible: { y: 0, opacity: 1, transition: { duration: 0.5 } }, - }; - - return ( -
-
-
-
-
- -
- -

- - Testimoni - - Member -

-

- Apa kata mereka yang telah bergabung dengan komunitas IMPHNEN? -

-
- - - {TESTIMONIALS.map((t, idx) => ( - -
- -
-
-

- “{t.quote}” -

-
-
- {t.name} -
-
-

{t.name}

-

{t.role}

-
-
-
-
- - ))} - - - -
-
-

- Bergabunglah dengan 10,000+ programmer Indonesia lainnya -

-

- Komunitas kami terus berkembang dengan programmer dari berbagai - latar belakang dan tingkat keahlian. Bersama-sama, kita belajar, - berbagi, dan tumbuh sebagai profesional. -

-
-
- {TESTIMONIAL_STATS.map((s, idx) => ( -
-
- {s.value} -
-
{s.label}
-
- ))} -
-
-
-
-
- ); -} diff --git a/apps/landing/src/data/communities-stats.json b/apps/landing/src/data/communities-stats.json deleted file mode 100644 index 689484b..0000000 --- a/apps/landing/src/data/communities-stats.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { "value": "100K+", "label": "Member Aktif" }, - { "value": "50+", "label": "Event Bulanan" }, - { "value": "100+", "label": "Mentor Profesional" }, - { "value": "5K+", "label": "Diskusi Mingguan" } -] diff --git a/apps/landing/src/data/communities.json b/apps/landing/src/data/communities.json deleted file mode 100644 index a9f179f..0000000 --- a/apps/landing/src/data/communities.json +++ /dev/null @@ -1,23 +0,0 @@ -[ - { - "iconName": "tabler:brand-facebook", - "title": "Facebook Group", - "description": "Bergabunglah dengan grup Facebook kami untuk diskusi santai dan berbagi artikel menarik.", - "buttonText": "Gabung Sekarang", - "buttonLink": "https://facebook.com/groups/programmerhandal" - }, - { - "iconName": "tabler:brand-instagram", - "title": "Instagram", - "description": "Ikuti kami di Instagram untuk tips programming, konten inspiratif, dan info event terbaru.", - "buttonText": "Follow Kami", - "buttonLink": "https://www.instagram.com/imphnen.dev" - }, - { - "iconName": "tabler:brand-discord-filled", - "title": "Discord Server", - "description": "Diskusikan langsung dengan sesama programmer dan dapatkan bantuan langsung dari para ahli.", - "buttonText": "Join Server", - "buttonLink": "https://discord.com/invite/imphnen" - } -] diff --git a/apps/landing/src/data/features.json b/apps/landing/src/data/features.json deleted file mode 100644 index 5163089..0000000 --- a/apps/landing/src/data/features.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "iconName": "tabler:device-laptop", - "title": "Belajar Tanpa Koding", - "description": "Pelajari konsep programming dengan cara yang mudah dipahami tanpa harus menulis kode yang rumit." - }, - { - "iconName": "tabler:users", - "title": "Komunitas Supportif", - "description": "Bergabunglah dengan komunitas programmer Indonesia yang siap membantu dan berbagi pengalaman." - }, - { - "iconName": "tabler:book", - "title": "Tutorial Interaktif", - "description": "Akses tutorial interaktif yang membuat konsep programming lebih mudah untuk dipahami." - }, - { - "iconName": "tabler:code", - "title": "Proyek Praktis", - "description": "Terapkan pengetahuan Anda dalam proyek nyata dengan panduan langkah demi langkah." - } -] diff --git a/apps/landing/src/data/learning-resources.json b/apps/landing/src/data/learning-resources.json deleted file mode 100644 index ec8dd98..0000000 --- a/apps/landing/src/data/learning-resources.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "icon": "tabler:video", - "title": "Video Tutorial", - "description": "Belajar melalui tutorial video dari langkah awal hingga mahir.", - "buttonText": "Lihat Semua Video", - "buttonLink": "#" - }, - { - "icon": "tabler:article", - "title": "Artikel & Tutorial", - "description": "Pelajari konsep programming melalui artikel yang disusun secara terstruktur.", - "buttonText": "Baca Artikel", - "buttonLink": "#" - }, - { - "icon": "tabler:brand-vscode", - "title": "Tantangan Koding", - "description": "Uji kemampuan koding kamu dengan tantangan yang menyenangkan dan menantang.", - "buttonText": "Mulai Tantangan", - "buttonLink": "#" - }, - { - "icon": "tabler:device-desktop-share", - "title": "Sharing Session", - "description": "Ikuti sesi berbagi pengalaman dari programmer berpengalaman dan belajar dari pengalaman mereka.", - "buttonText": "Jadwal Session", - "buttonLink": "#" - } -] diff --git a/apps/landing/src/data/testimonial-stats.json b/apps/landing/src/data/testimonial-stats.json deleted file mode 100644 index 0e77dc9..0000000 --- a/apps/landing/src/data/testimonial-stats.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { "value": "98%", "label": "Tingkat Kemalasan" }, - { "value": "4.9/5", "label": "Rating Drama" }, - { "value": "85%", "label": "Mendapat Pekerjaan" }, - { "value": "24/7", "label": "Yapping" } -]