fix(dimentorin): homepage kosong akibat duplikat page route

- hapus apps/dimentorin/src/app/page.tsx (hanya Navbar+div kosong) yg menang conflict /
- aktifkan (public)/(home) yg berisi 5 section (Hero, WhatWeOffer, Testimonial, FAQ, CTA)
- tambah navigasi onClick tombol CTA: hero & CTA -> /mentoring/ai-agent, /mentoring
This commit is contained in:
asepharyana
2026-08-05 18:36:35 +07:00
parent 7294040fd1
commit 94f80e4eda
3 changed files with 7 additions and 12 deletions
@@ -2,8 +2,10 @@ import { Button } from '@imphnen-frontend-service/ui/atoms';
import { cn } from '@imphnen-frontend-service/utils'; import { cn } from '@imphnen-frontend-service/utils';
import { FC, useRef } from 'react'; import { FC, useRef } from 'react';
import { motion, useInView, Variants } from 'framer-motion'; import { motion, useInView, Variants } from 'framer-motion';
import { useNavigate } from 'react-router-dom';
export const CTASection: FC = () => { export const CTASection: FC = () => {
const navigate = useNavigate();
const ref = useRef(null) const ref = useRef(null)
const isInView = useInView(ref, { once: true, amount: 0.2 }) const isInView = useInView(ref, { once: true, amount: 0.2 })
@@ -137,6 +139,7 @@ export const CTASection: FC = () => {
<Button <Button
type="button" type="button"
className="w-full h-auto py-2 text-[10px] font-medium md:w-max md:text-sm md:px-2.5 md:font-semibold lg:text-base" className="w-full h-auto py-2 text-[10px] font-medium md:w-max md:text-sm md:px-2.5 md:font-semibold lg:text-base"
onClick={() => navigate('/mentoring/ai-agent')}
> >
Mulai Belajar Dengan AI Mulai Belajar Dengan AI
</Button> </Button>
@@ -144,6 +147,7 @@ export const CTASection: FC = () => {
type="button" type="button"
variant="secondary" variant="secondary"
className="w-full h-auto py-2 text-[10px] font-medium md:w-max md:text-sm md:px-2.5 md:font-semibold lg:text-base" className="w-full h-auto py-2 text-[10px] font-medium md:w-max md:text-sm md:px-2.5 md:font-semibold lg:text-base"
onClick={() => navigate('/mentoring')}
> >
Temukan Mentor Temukan Mentor
</Button> </Button>
@@ -1,7 +1,9 @@
import { Button } from "@imphnen-frontend-service/ui/atoms"; import { Button } from "@imphnen-frontend-service/ui/atoms";
import { motion } from 'framer-motion' import { motion } from 'framer-motion'
import { useNavigate } from 'react-router-dom';
export function HeroSection() { export function HeroSection() {
const navigate = useNavigate();
return ( return (
<section className="relative w-full z-0 py-20 md:py-28 lg:py-32"> <section className="relative w-full z-0 py-20 md:py-28 lg:py-32">
{/* Background gradients and shapes */} {/* Background gradients and shapes */}
@@ -63,6 +65,7 @@ export function HeroSection() {
type="button" type="button"
size="sm" size="sm"
className="text-[10px] h-auto px-2.5 py-2 md:text-sm" className="text-[10px] h-auto px-2.5 py-2 md:text-sm"
onClick={() => navigate('/mentoring/ai-agent')}
> >
Belajar Dengan AI Sekarang Belajar Dengan AI Sekarang
</Button> </Button>
-12
View File
@@ -1,12 +0,0 @@
import { Navbar } from '@imphnen-frontend-service/ui/organisms';
import { FC, ReactElement } from 'react';
export const Components: FC = (): ReactElement => {
return (
<div className='bg-blue-50'>
<Navbar />
</div>
);
};
export default Components;