Img optimized
This commit is contained in:
parent
09af95bde9
commit
c003b0627d
@ -1,19 +1,22 @@
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
import type { NextPage } from "next";
|
||||
import Link from "next/link";
|
||||
import Image from "next/image";
|
||||
import { TerminalWindow, House, User } from "phosphor-react";
|
||||
import ThemeSwitch from "./ThemeSwitch";
|
||||
|
||||
import styles from "../../styles/Blog/Navigation.module.scss";
|
||||
import logo from "../../public/icon.png";
|
||||
|
||||
const Navigation: NextPage<{}> = () => {
|
||||
return <nav className={styles.navigation}>
|
||||
<Link href={"/"}>
|
||||
<a className={`nostyle ${styles.imgContainer}`}>
|
||||
<picture>
|
||||
<a className={`nostyle ${styles.imgContainer} ${styles.logo}`}>
|
||||
<Image src={logo} alt={"Logo"} layout={"fill"} />
|
||||
{/*<picture>
|
||||
<source srcSet="/icon.png" type="image/png" />
|
||||
<img src="/icon.png" alt={"Website icon, a red eye"} className={styles.logo} />
|
||||
</picture>
|
||||
</picture>*/}
|
||||
</a>
|
||||
</Link>
|
||||
<div className={styles.navLink}>
|
||||
|
@ -32,16 +32,14 @@ const Blog: NextPage<{ content: ContentList }> = ({content}) => {
|
||||
</div>;
|
||||
};
|
||||
|
||||
return <>
|
||||
<Layout>
|
||||
return <Layout>
|
||||
<h1>Hello there!</h1>
|
||||
<p>Miaumiau Lorem ipsum</p>
|
||||
<h2>Projects</h2>
|
||||
{ generateCards("project") }
|
||||
<h2>Diaries</h2>
|
||||
{ generateCards("diary") }
|
||||
</Layout>
|
||||
</>;
|
||||
</Layout>;
|
||||
|
||||
};
|
||||
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
.logo {
|
||||
height: calc(1em + 40px - 20px);
|
||||
width: calc((501 / 204) * (1em + 40px - 20px));
|
||||
}
|
||||
|
||||
.navLink {
|
||||
|
Loading…
Reference in New Issue
Block a user