Unverified Commit c3d06a27 authored by Gary Meehan's avatar Gary Meehan Committed by GitHub

Switch Create Next App default template to use next/image (#24076)

Follow PR to #23887 to add next/image.

Only other change was wrapping the image in a span to allow for the margin that was previously on the actual `<img>`

## Documentation / Examples

- [x] Make sure the linting passes
parent 1c2ee7c6
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
export default function Home() {
......@@ -58,13 +59,9 @@ export default function Home() {
rel="noopener noreferrer"
>
Powered by{' '}
<img
src="/vercel.svg"
alt="Vercel Logo"
className={styles.logo}
width="72"
height="16"
/>
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</div>
......
......@@ -25,10 +25,6 @@
align-items: center;
}
.footer img {
margin-left: 0.5rem;
}
.footer a {
display: flex;
justify-content: center;
......@@ -112,6 +108,7 @@
.logo {
height: 1em;
margin-left: 0.5rem;
}
@media (max-width: 600px) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment