import ezlogImg from "@/_assets/illustrations/projects/EasyLogon.svg";
import foxTubeDark from "@/_assets/illustrations/projects/FoxTube/FoxTube-dark.webp";
import foxTubeLight from "@/_assets/illustrations/projects/FoxTube/FoxTube-light.webp";
import gutScheduleImg from "@/_assets/illustrations/projects/GUTSchedule.svg";
import motionDecoderDark from "@/_assets/illustrations/projects/MotionDecoder/MotionDecoder-dark.webp";
import motionDecoderLight from "@/_assets/illustrations/projects/MotionDecoder/MotionDecoder-light.webp";
import passwordGeneratorDark from "@/_assets/illustrations/projects/PasswordGenerator/PasswordGeneratorExtension-dark.webp";
import passwordGeneratorLight from "@/_assets/illustrations/projects/PasswordGenerator/PasswordGeneratorExtension-light.webp";
import simpleOtpImg from "@/_assets/illustrations/projects/SimpleOTP.svg";
import tabsAsideDark from "@/_assets/illustrations/projects/TabsAside/dark.webp";
import tabsAsideLight from "@/_assets/illustrations/projects/TabsAside/light.webp";
import * as ic from "@fluentui/react-icons";
import { StaticImageData } from "next/image";

const projects: Project[] =
	[
		{
			title: "EasyLogon",
			subtitle: "QR code authentication on any website",
			description:
				[
					"During one of the classes at university I struggled to log into my account on a lab computer. I have long random passwords, so I had to type them manually from my phone which took about 5 minutes. I thought that there must be a better way to do this.",
					"So, I came up with this idea where you can easily send your credentials to any computer by simply scanning a QR code with a password manager app.",
					"In the end, I have created a big web service with mobile app and a customer portal, that could authenticate users on any website, and any device within a few seconds."
				],
			image: ezlogImg,
			link: "https://ezlog.app/about",
			stack:
				[
					{ text: "C#/TypeScript", icon: ic.Code24Regular },
					{ text: ".NET 6", icon: ic.Server24Regular },
					{ text: "ReactJS", icon: ic.PhoneDesktop24Regular },
					{ text: "Xamarin.Forms", icon: ic.Phone24Regular },
					{ text: "SQL Server", icon: ic.Database24Regular },
					{ text: "Azure DevOps", icon: ic.Branch24Regular },
					{ text: "Azure Pipelines/AppCenter", icon: ic.FlashFlow24Regular },
					{ text: "AppCenter", icon: ic.HeartPulse24Regular }
				]
		},
		{
			title: "Tabs aside",
			subtitle: "Browser extension inspired by Edge's \"Tabs aside\" and Collections features",
			description:
				[
					"Initially built on pure JS/CSS this extension was designed to recreate the \"Tabs aside\" feature that Microsoft introduced in their EdgeHTML-based Microsoft Edge browser but removed it in subsequent Chromium-based version.",
					"Later I rewrote it in ReactJS and TypeScript, and added new and unique features, yet still maintaining that original aesthetics."
				],
			image: tabsAsideLight,
			imageDark: tabsAsideDark,
			link: "https://github.com/xfox111/TabsAsideExtension",
			stack:
				[
					{ text: "ReactJS", icon: ic.Desktop24Regular },
					{ text: "TypeScript/SASS", icon: ic.Code24Regular },
					{ text: "Chrome/WebExt", icon: ic.FlashSettings24Regular },
					{ text: "Fluent UI", icon: ic.Color24Regular },
					{ text: "GitHub", icon: ic.Branch24Regular },
					{ text: "GitHub Actions", icon: ic.FlashFlow24Regular },
				]
		},
		{
			title: "SimpleOTP",
			subtitle: "Simple yet powerfull .NET library for OTP implementation",
			description:
				[
					"Initially created during EasyLogon development, this library was designed as a simple, yet flexible solution for one-time password authenticators and validators.",
					"It provides extensive toolset for generation, validation and management of OTP configurations and can be used in any .NET application whether it is an authenticator app or a website that accepts OTP codes."
				],
			image: simpleOtpImg,
			link: "https://github.com/xfox111/SimpleOTP",
			stack:
				[
					{ text: ".NET/C#", icon: ic.Code24Regular },
					{ text: "MSTest", icon: ic.Beaker24Regular },
					{ text: "GitHub", icon: ic.Branch24Regular },
					{ text: "GitHub Actions", icon: ic.FlashFlow24Regular },
				]
		},
		{
			title: "Password generator",
			subtitle: "Simple browser extension for generating passwords",
			description:
				[
					"Small pet project that I developed while my favorite password generator website was down.",
					"Basically, a playground, where I try out new technologies and approaches to web development."
				],
			image: passwordGeneratorLight,
			imageDark: passwordGeneratorDark,
			link: "https://github.com/xfox111/PasswordGeneratorExtension",
			stack:
				[
					{ text: "React/Vite", icon: ic.Desktop24Regular },
					{ text: "TypeScript", icon: ic.Code24Regular },
					{ text: "Chrome/WebExt", icon: ic.FlashSettings24Regular },
					{ text: "Fluent UI", icon: ic.Color24Regular },
					{ text: "GitHub", icon: ic.Branch24Regular },
					{ text: "GitHub Actions", icon: ic.FlashFlow24Regular },
				]
		},
		{
			title: "GUT.Schedule",
			subtitle: "Mobile app that exports Bonch university schedule to e-calendar",
			description:
				[
					"[2019]",
					"I created this app during my time in Bonch-Bruevich University of Telecommunications as a BS student.",
					"It was designed to help students to manage their timetable in a more convenient and effective way."
				],
			image: gutScheduleImg,
			link: "https://github.com/xfox111/GUTSchedule",
			stack:
				[
					{ text: ".NET/C#", icon: ic.Code24Regular },
					{ text: "Xamarin.Android", icon: ic.Phone24Regular },
					{ text: "GitHub", icon: ic.Branch24Regular },
					{ text: "NUnit 3", icon: ic.Beaker24Regular },
					{ text: "Azure Pipelines", icon: ic.FlashFlow24Regular },
				]
		},
		{
			title: "FoxTube",
			subtitle: "UWP app that gives YouTube a fresh look on Windows",
			description:
				[
					"[2019]",
					"My first published app.",
					"I like to watch videos while working on my projects, but at the time YouTube didn not have a proper picture-in-picture mode and overall had a lot of issues with the UX, so this was my way to fix this.",
					"Unfortunately, Google doesn't like third-party YouTube clients."
				],
			image: foxTubeLight,
			imageDark: foxTubeDark,
			link: "https://www.youtube.com/watch?v=Mio9FbxmbhM",
			stack:
				[
					{ text: ".NET/C#", icon: ic.Code24Regular },
					{ text: "UWP", icon: ic.Desktop24Regular },
					{ text: "Azure DevOps", icon: ic.Branch24Regular },
					{ text: "AppCenter", icon: ic.HeartPulse24Regular },
					{ text: "Azure Pipelines", icon: ic.FlashFlow24Regular },
				]
		},
		{
			title: "MotionDecoder",
			subtitle: "CCTV footage analysis tool",
			description:
				[
					"[2018]",
					"My earliest attempt in software development.",
					"Basically, this program analyzes pre-recorded CCTV footage by comparing different frames and using some simple algorithms and provides user with a set of timecodes where a motion was detected.",
				],
			image: motionDecoderLight,
			imageDark: motionDecoderDark,
			link: "https://github.com/xfox111/MotionDecoder",
			stack:
				[
					{ text: ".NET/C#", icon: ic.Code24Regular },
					{ text: "WinForms", icon: ic.Desktop24Regular },
					{ text: "Accord.NET", icon: ic.FlashSettings24Regular },
					{ text: "GitHub", icon: ic.Branch24Regular },
				]
		}
	];

export default projects;

export type Project =
	{
		title: string;
		subtitle: string;
		description: string[];
		image: string | StaticImageData;
		imageDark?: string | StaticImageData;
		stack: TechStackItem[];
		link: string;
	};

type TechStackItem =
	{
		icon: ic.FluentIcon;
		text: string;
	};
