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 Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css' import styles from '../styles/Home.module.css'
export default function Home() { export default function Home() {
...@@ -58,13 +59,9 @@ export default function Home() { ...@@ -58,13 +59,9 @@ export default function Home() {
rel="noopener noreferrer" rel="noopener noreferrer"
> >
Powered by{' '} Powered by{' '}
<img <span className={styles.logo}>
src="/vercel.svg" <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
alt="Vercel Logo" </span>
className={styles.logo}
width="72"
height="16"
/>
</a> </a>
</footer> </footer>
</div> </div>
......
...@@ -25,10 +25,6 @@ ...@@ -25,10 +25,6 @@
align-items: center; align-items: center;
} }
.footer img {
margin-left: 0.5rem;
}
.footer a { .footer a {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -112,6 +108,7 @@ ...@@ -112,6 +108,7 @@
.logo { .logo {
height: 1em; height: 1em;
margin-left: 0.5rem;
} }
@media (max-width: 600px) { @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