frontpage/components/Blog/Navigation.tsx

42 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2022-10-03 01:19:43 +02:00
/* eslint-disable @next/next/no-img-element */
2022-09-30 16:14:30 +02:00
import type { NextPage } from "next";
2022-10-03 01:19:43 +02:00
import Link from "next/link";
2022-10-18 23:40:09 +02:00
import Image from "next/image";
2022-10-20 14:58:13 +02:00
import Icon from "@mdi/react";
import { mdiConsole, mdiAccount, mdiHome } from "@mdi/js";
2022-10-16 15:59:08 +02:00
import ThemeSwitch from "./ThemeSwitch";
2022-10-16 00:05:44 +02:00
2022-10-03 01:19:43 +02:00
import styles from "../../styles/Blog/Navigation.module.scss";
2022-10-20 14:58:13 +02:00
import logo from "../../public/img/icon.png";
2022-09-30 16:14:30 +02:00
const Navigation: NextPage<{}> = () => {
2022-10-03 01:19:43 +02:00
return <nav className={styles.navigation}>
2022-10-29 21:13:28 +02:00
<Link href="/">
2022-10-18 23:40:09 +02:00
<a className={`nostyle ${styles.imgContainer} ${styles.logo}`}>
2022-10-29 21:13:28 +02:00
<Image src={logo} alt="Logo" layout="fill" />
2022-10-08 14:07:56 +02:00
</a>
2022-10-03 01:19:43 +02:00
</Link>
2022-10-18 17:09:03 +02:00
<div className={styles.navLink}>
2022-10-29 21:13:28 +02:00
<Link href="/"><a className="nostyle">
2022-10-18 17:09:03 +02:00
<span className={styles.linkText}>Projects</span>
2022-10-29 21:13:28 +02:00
<span className={styles.linkIcon}><Icon path={mdiHome} size="2em" title="Home and Projects" id="mdi_nav_home" /></span>
2022-10-18 17:09:03 +02:00
</a></Link>
</div>
<div className={styles.navLink}>
2022-10-29 21:13:28 +02:00
<Link href="/me"><a className="nostyle">
2022-10-20 23:32:07 +02:00
<span className={styles.linkText}>About Me</span>
2022-10-29 21:13:28 +02:00
<span className={styles.linkIcon}><Icon path={mdiAccount} size="2em" title="About Me" id="mdi_nav_aboutme" /></span>
2022-10-18 17:09:03 +02:00
</a></Link>
</div>
2022-10-16 00:05:44 +02:00
<div className={styles.spacer}></div>
2022-10-29 21:13:28 +02:00
<div className={styles.navIcon}>
<Link href="/terminal"><a className="nostyle">
<Icon path={mdiConsole} size="2em" title="Terminal" id="mdi_nav_terminal" />
</a></Link>
</div>
2022-10-16 15:59:08 +02:00
<ThemeSwitch />
2022-09-30 19:23:14 +02:00
</nav>;
2022-09-30 16:14:30 +02:00
};
export default Navigation;