Skip to content

Commit

Permalink
Using next/image
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleemboyer committed Mar 18, 2024
1 parent 5708a85 commit f958b9b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Image from "next/image";
import classNames from "classnames";
import heroImage from "../../public/hero.png";
import styles from "./index.module.css";

const CODE_OF_CONDUCT_LINK =
Expand All @@ -8,10 +10,9 @@ const HomePage = () => {
return (
<div className={styles.root}>
<header className={styles.header}>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
<Image
alt="logo"
src="/hero.png"
src={heroImage}
/>
</header>
<main className={classNames("flow", styles.main)}>
Expand Down

0 comments on commit f958b9b

Please sign in to comment.