import appDev from "@/assets/app_dev.jpg.asset.json";
import cloudInfra from "@/assets/Cloud_Infrastructure.png.asset.json";
import computerRepair from "@/assets/computer_repair.jpg.asset.json";
import training from "@/assets/gat_computer_training.jpg.asset.json";
import healthcare from "@/assets/healthcare.png.asset.json";
import government from "@/assets/it_in_goverment.jpg.asset.json";
import virusRemoval from "@/assets/viruse_removal.jpg.asset.json";
import professional from "@/assets/professional.jpg.asset.json";

export interface PageImage {
  url: string;
  alt: string;
}

export const IMAGES = {
  appDev: {
    url: appDev.url,
    alt: "Android developer building a mobile application in an IDE with a live device preview",
  },
  cloudInfra: {
    url: cloudInfra.url,
    alt: "Cloud infrastructure diagram connecting servers, laptops and mobile devices",
  },
  computerRepair: {
    url: computerRepair.url,
    alt: "Technician repairing a laptop motherboard with precision tools",
  },
  training: {
    url: training.url,
    alt: "Students learning practical computer skills in a Gatavase training lab",
  },
  healthcare: {
    url: healthcare.url,
    alt: "Doctors reviewing an AI-assisted brain analysis on a laptop",
  },
  government: {
    url: government.url,
    alt: "Digital government and public sector technology icons on a smartphone",
  },
  virusRemoval: {
    url: virusRemoval.url,
    alt: "Laptop displaying a virus detected warning during a security clean-up",
  },
  professional: {
    url: professional.url,
    alt: "Engineers servicing computer hardware on a workbench",
  },
} satisfies Record<string, PageImage>;

export const PAGE_IMAGES: Record<string, PageImage> = {
  "/app-development": IMAGES.appDev,
  "/software-development": IMAGES.appDev,
  "/website-development": IMAGES.cloudInfra,
  "/networking": IMAGES.cloudInfra,
  "/computer-training": IMAGES.training,
  "/secure-guard": IMAGES.virusRemoval,
  "/robotics-engineering": IMAGES.professional,
  "/gatavase-ai": IMAGES.healthcare,
  "/innovation-hub": IMAGES.professional,
  "/innovation": IMAGES.government,
  "/corporate": IMAGES.government,
  "/gazman-advanced-technologies": IMAGES.computerRepair,
  "/projects": IMAGES.computerRepair,
  "/community": IMAGES.training,
};

export function getPageImage(slug: string): PageImage | undefined {
  return PAGE_IMAGES[slug];
}
