diff --git a/src/app/page.tsx b/src/app/page.tsx index aeb0c4e6..f654ef4d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -3,6 +3,7 @@ import Faqs from '@/components/Faqs'; import HalfCircleGradient from '@/components/HalfCircleGradient'; import HeroSection from '@/components/hero-section'; import { JobLanding } from '@/components/job-landing'; +import Testimonials from '@/components/Testimonials'; import { JobQuerySchemaType } from '@/lib/validators/jobs.validator'; const HomePage = async ({ @@ -20,6 +21,7 @@ const HomePage = async ({
+ diff --git a/src/components/TestimonialCard.tsx b/src/components/TestimonialCard.tsx new file mode 100644 index 00000000..72369199 --- /dev/null +++ b/src/components/TestimonialCard.tsx @@ -0,0 +1,27 @@ +'use client'; +import { testimonialItem } from '@/types/testimonials.types'; +import { motion } from 'framer-motion'; + +interface testimonialCardProps { + testimonial: testimonialItem; +} + +export default function TestimonialCard({ + testimonial, +}: testimonialCardProps) { + return ( + +
+

+ {testimonial.name.charAt(0).toUpperCase()} +

+

{testimonial.name}

+
+

"{testimonial.testimonial}"

+
+ ); +} diff --git a/src/components/Testimonials.tsx b/src/components/Testimonials.tsx new file mode 100644 index 00000000..575dbaf7 --- /dev/null +++ b/src/components/Testimonials.tsx @@ -0,0 +1,30 @@ +'use client'; +import { Button } from './ui/button'; +import { testimonials } from '@/lib/constant/testimonials.constants'; +import TestimonialCard from './TestimonialCard'; +export default function Testimonials() { + return ( +
+
+

Testimonials

+

+ Trusted by those who matter. +

+
+
+ {testimonials.map((testimonial, i) => ( + + ))} +
+
+

+ Your story matters. Share it with us! +

+ +
+
+ ); +} diff --git a/src/config/path.config.ts b/src/config/path.config.ts index 92e07034..c26f81ae 100644 --- a/src/config/path.config.ts +++ b/src/config/path.config.ts @@ -6,5 +6,7 @@ const APP_PATHS = { RESET_PASSWORD: '/reset-password', JOBS: '/jobs', MANAGE_JOBS: '/jobs/manage', + TESTIMONIALS: '#testimonials', + FAQS: '#faq', }; export default APP_PATHS; diff --git a/src/lib/constant/app.constant.ts b/src/lib/constant/app.constant.ts index 9de956c7..d1b02b36 100644 --- a/src/lib/constant/app.constant.ts +++ b/src/lib/constant/app.constant.ts @@ -12,10 +12,8 @@ export const navbar = [ }, // todo: add actual path { id: 3, label: 'Internship', path: '/' }, - { id: 4, label: 'Testimonials', path: '/' }, - - { id: 5, label: 'FAQs', path: '#faq' }, - + { id: 4, label: 'Testimonials', path: APP_PATHS.TESTIMONIALS }, + { id: 5, label: 'FAQs', path: APP_PATHS.FAQS }, { id: 6, label: 'Post a Job', path: APP_PATHS.POST_JOB }, ]; diff --git a/src/lib/constant/testimonials.constants.ts b/src/lib/constant/testimonials.constants.ts new file mode 100644 index 00000000..7eb4ebfb --- /dev/null +++ b/src/lib/constant/testimonials.constants.ts @@ -0,0 +1,34 @@ +import { testimonialItem } from '@/types/testimonials.types'; + +export const testimonials: testimonialItem[] = [ + { + name: 'Jane Doe', + testimonial: + 'The job board made my job search seamless. I found my dream job in just a few weeks, and the application process was super easy!', + }, + { + name: 'John Smith', + testimonial: + 'This platform is incredibly user-friendly and helped me land a great position. The filtering and search options are fantastic!', + }, + { + name: 'Emily Johnson', + testimonial: + 'I appreciate how easy it was to track my job applications. The job board helped me stay organized throughout my job search!', + }, + { + name: 'Michael Brown', + testimonial: + 'Thanks to the platform, I was able to connect with amazing companies. The job alerts feature made it easy to stay updated on new opportunities.', + }, + { + name: 'Sophia Green', + testimonial: + 'The job portal helped me transition to a new career. The interface is intuitive, and I loved the personalized job recommendations!', + }, + { + name: 'David Lee', + testimonial: + 'This job board stands out from the rest. It made the job application process smooth and connected me to roles that matched my skills perfectly.', + }, +]; diff --git a/src/types/testimonials.types.ts b/src/types/testimonials.types.ts new file mode 100644 index 00000000..7c95a5a8 --- /dev/null +++ b/src/types/testimonials.types.ts @@ -0,0 +1,4 @@ +export type testimonialItem = { + name: string; + testimonial: string; +};