import {SvelteComponent} from "svelte";

import MaterialSymbolsGlobe from '~icons/material-symbols/globe';
import MaterialSymbolsExtension from '~icons/material-symbols/extension';
import MdiGithub from '~icons/mdi/github';

import PureCityImg1 from "$lib/assets/projects/pure_city/1.png";
import PureCityImg2 from "$lib/assets/projects/pure_city/2.png";
import VkMuteImg1 from "$lib/assets/projects/vk_mute/1.png";
import TpkArtelImg1 from "$lib/assets/projects/tpk_artel/1.png";
import TpkArtelImg2 from "$lib/assets/projects/tpk_artel/2.png";
import TpkArtelImg3 from "$lib/assets/projects/tpk_artel/3.png";
import GamesImg1 from "$lib/assets/projects/games/1.png";
import GamesImg2 from "$lib/assets/projects/games/2.png";
import GamesImg3 from "$lib/assets/projects/games/3.png";
import MusanthropeImg1 from "$lib/assets/projects/musanthrope/1.png";
import MusanthropeImg2 from "$lib/assets/projects/musanthrope/2.png";
import VkAdultImg1 from "$lib/assets/projects/vk_adult/1.png";

export type TProject = {
  nameSlug: string
  descriptionSlug: string
  images: string[]
  links: {
    href: string
    textSlug: string
    icon?: SvelteComponent
  }[]
}

export const projects = [
  {
    nameSlug: 'projects.pure_city.name',
    descriptionSlug: 'projects.pure_city.description',
    images: [
      PureCityImg1,
      PureCityImg2
    ],
    links: [
      {
        href: 'https://pure-city.ru',
        textSlug: 'projects.link_types.website',
        icon: MaterialSymbolsGlobe
      }
    ]
  },
  {
    nameSlug: 'projects.vk_mute.name',
    descriptionSlug: 'projects.vk_mute.description',
    images: [
      VkMuteImg1
    ],
    links: [
      {
        href: 'https://chromewebstore.google.com/detail/vk-mute/mcnkfnjggkbenehgfelnnkklpkpjeibl',
        textSlug: 'projects.link_types.chrome',
        icon: MaterialSymbolsExtension
      },
      {
        href: 'https://github.com/anatolykopyl/vk-mute',
        textSlug: 'projects.link_types.github',
        icon: MdiGithub
      }
    ]
  },
  {
    nameSlug: 'projects.tpk_artel.name',
    descriptionSlug: 'projects.tpk_artel.description',
    images: [
      TpkArtelImg1,
      TpkArtelImg2,
      TpkArtelImg3
    ],
    links: [
      {
        href: 'https://tpk-artel.ru',
        textSlug: 'projects.link_types.website',
        icon: MaterialSymbolsGlobe
      }
    ]
  },
  {
    nameSlug: 'projects.games.name',
    descriptionSlug: 'projects.games.description',
    images: [
      GamesImg1,
      GamesImg2,
      GamesImg3
    ],
    links: [
      {
        href: 'https://games.kopyl.dev',
        textSlug: 'projects.link_types.website',
        icon: MaterialSymbolsGlobe
      }
    ]
  },
  {
    nameSlug: 'projects.musanthrope.name',
    descriptionSlug: 'projects.musanthrope.description',
    images: [
      MusanthropeImg1,
      MusanthropeImg2
    ],
    links: [
      {
        href: 'https://musanthrope.kopyl.dev',
        textSlug: 'projects.link_types.website',
        icon: MaterialSymbolsGlobe
      }
    ]
  },
  {
    nameSlug: 'projects.vk_adult.name',
    descriptionSlug: 'projects.vk_adult.description',
    images: [
      VkAdultImg1
    ],
    links: [
      {
        href: 'https://chromewebstore.google.com/detail/vk-adult/laiidhgadnejimjkaobcecboppgbeppa',
        textSlug: 'projects.link_types.chrome',
        icon: MaterialSymbolsExtension
      },
      {
        href: 'https://github.com/anatolykopyl/vk-adult',
        textSlug: 'projects.link_types.github',
        icon: MdiGithub
      },
      {
        href: 'https://vk-adult.kopyl.dev',
        textSlug: 'projects.link_types.website',
        icon: MaterialSymbolsGlobe
      }
    ]
  }
] as TProject[]
