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-18 17:09:03 +02:00
|
|
|
import { TerminalWindow, House, User } from "phosphor-react";
|
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-18 23:40:09 +02:00
|
|
|
import logo from "../../public/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-08 14:07:56 +02:00
|
|
|
<Link href={"/"}>
|
2022-10-18 23:40:09 +02:00
|
|
|
<a className={`nostyle ${styles.imgContainer} ${styles.logo}`}>
|
|
|
|
<Image src={logo} alt={"Logo"} layout={"fill"} />
|
|
|
|
{/*<picture>
|
2022-10-08 14:07:56 +02:00
|
|
|
<source srcSet="/icon.png" type="image/png" />
|
|
|
|
<img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} />
|
2022-10-18 23:40:09 +02:00
|
|
|
</picture>*/}
|
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}>
|
|
|
|
<Link href={"/"}><a className="nostyle">
|
|
|
|
<span className={styles.linkText}>Projects</span>
|
|
|
|
<span className={styles.linkIcon}><House size={"2em"} /></span>
|
|
|
|
</a></Link>
|
|
|
|
</div>
|
|
|
|
<div className={styles.navLink}>
|
|
|
|
<Link href={"/me"}><a className="nostyle">
|
|
|
|
<span className={styles.linkText}>About me</span>
|
|
|
|
<span className={styles.linkIcon}><User size={"2em"} /></span>
|
|
|
|
</a></Link>
|
|
|
|
</div>
|
2022-10-16 00:05:44 +02:00
|
|
|
<div className={styles.spacer}></div>
|
2022-10-18 17:11:04 +02:00
|
|
|
<div className={styles.navIcon}><a className="nostyle" href={"/terminal"}><TerminalWindow size={"2em"} /></a></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;
|