first commit

This commit is contained in:
2025-05-13 12:12:47 +02:00
commit c37cf55f67
75 changed files with 13258 additions and 0 deletions

28
components/Tab.tsx Normal file
View File

@@ -0,0 +1,28 @@
import Link from 'next/link';
import Image from 'next/image';
import { useRouter } from 'next/router';
import styles from '@/styles/Tab.module.css';
interface TabProps {
icon: string;
filename: string;
path: string;
}
const Tab = ({ icon, filename, path }: TabProps) => {
const router = useRouter();
return (
<Link href={path}>
<div
className={`${styles.tab} ${router.pathname === path && styles.active}`}
>
<Image src={icon} alt={filename} height={18} width={18} />
<p>{filename}</p>
</div>
</Link>
);
};
export default Tab;