"use client"; import Image from "next/image"; import Link from "next/link"; import { useAbout } from "@/lib/hooks/useAbout"; import { AboutJourney } from "@/lib/api/aboutService"; import { getValidImageUrl, FALLBACK_IMAGES } from "@/lib/imageUtils"; import thumb from "@/public/images/start-thumb.png"; const AboutStarter = () => { const { data, loading, error } = useAbout(); // Show loading state if (loading) { return (
Loading...

Loading journey content...

); } // Show error state if (error) { return (

Error Loading Content

{error}

); } // Use API data or fallback to default content const journeyData = data?.journey as AboutJourney | undefined; return (
{journeyData?.badge_text || "Our Journey"}

{journeyData?.title || "From Startup to Enterprise Leader"}

{journeyData?.description || "Founded in 2020 by three visionary engineers, GNX Technologies began as a small startup with a big dream: to revolutionize how enterprises approach software development. What started as a passion project has grown into a global enterprise software company serving Fortune 500 clients worldwide."}

{journeyData?.milestones && journeyData.milestones.length > 0 ? ( journeyData.milestones.map((milestone, index) => (
{milestone.year}
{milestone.title}

{milestone.description}

)) ) : ( <>
2008
Company Founded

Started with 3 engineers

2015
Enterprise Focus

Pivoted to enterprise solutions

2020
Global Expansion

Opened offices in 5 countries

)}
{journeyData?.cta_text || "Explore Solutions"}
{journeyData?.image_url ? ( Enterprise Journey ) : ( Enterprise Journey )}
); }; export default AboutStarter;