import { Metadata } from "next"; import { fetchServicePageData } from "../../api/servicesApi"; import { imageUrl } from "../utils/image"; import Breadcrumb from "../components/Breadcrumb"; import "./services.css"; export default async function ServicesPage() { const data = await fetchServicePageData(); const { services, destinations, visas, reviews } = data; const country = [ { id: "canada", name: "Canada", description: "Canada provides quality education, rich culture and global opportunities", image: "img/home-3/choose-us/01.jpg", icon: "img/home-3/choose-us/icon-1.png", link: "country-details.html", }, { id: "south-korea", name: "South Korea", description: "South Korea offers advanced technology and cultural experiences", image: "img/home-3/choose-us/02.jpg", icon: "img/home-3/choose-us/icon-2.png", link: "country-details.html", }, { id: "france", name: "France", description: "France offers rich cultural heritage and educational excellence", image: "img/home-3/choose-us/03.jpg", icon: "img/home-3/choose-us/icon-3.png", link: "country-details.html", }, { id: "uk", name: "UK", description: "UK provides world-class education and career opportunities", image: "img/home-3/choose-us/04.jpg", icon: "img/home-3/choose-us/icon-2.png", link: "country-details.html", }, { id: "germany", name: "Germany", description: "Germany offers excellent education and strong economy", image: "img/home-3/choose-us/05.jpg", icon: "img/home-3/choose-us/icon-3.png", link: "country-details.html", }, ]; return ( <> {/* Breadcrumb Section */} {/* Service Section Start */}
{services.title.subTitle}

{services.title.mainTitle}

{services.items.map((service: any) => (
{service.layout === "right" && ( )}
{service.layout === "left" && (
img
)}

{service.name}

{service.description}

{service.layout === "right" && (
img
)}
{service.layout === "left" && ( )}
))}
{/* Destination-Offer Section Start */}
img
{destinations.title.subTitle}

{destinations.title.mainTitle}

{country.map((country: any) => (
img

{country.description}

))}
{/* Service-Visa Section Start */} {/*
{visas.items.map((visa: any, index: number) => (
0 ? "style-2" : ""}`} >

{visa.number}

{visa.name}

{visa.description}

{visa.buttonText}
))}
*/} {/* Testimonial Section3 Start */}
{reviews.title.subTitle}

{reviews.title.mainTitle}

View All Review
img
{reviews.items.map((testimonial: any) => (
{[...Array(testimonial.rating)].map( (_: any, i: number) => ( ), )}

"{testimonial.content}"

{testimonial.author.name}
{testimonial.author.type}
))}
); }