Skip to content

Commit b6d7efa

Browse files
committed
fix about image on mobile
1 parent 7c87702 commit b6d7efa

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pages/about.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import siteConfig from "../siteConfig.json";
22
import mePresenting from "../public/assets/presenting-high-res.jpg";
33

4-
import SpacedImage from "../components/image";
4+
import Image from "next/image";
55
import Layout from "../components/layout";
66
import Link from "next/link";
77

@@ -19,15 +19,13 @@ export default function About() {
1919
<p>
2020
Feel free to <a href="mailto:[email protected]">email me</a> with any questions or comments.
2121
</p>
22-
<SpacedImage
22+
<Image
2323
src={mePresenting}
2424
placeholder="blur"
2525
alt="Presenting: When Does Development Spark Joy? Sentimental analysis of commit messages."
2626
quality={100}
27-
originalWidth={mePresenting.width}
28-
originalHeight={mePresenting.height}
2927
priority={true}
30-
style={{ borderRadius: '0.4em' }}
28+
style={{ borderRadius: '0.4em', width: '100%', height: 'auto' }}
3129
/>
3230
<p>
3331
I like teaching people things that I know. I like video games (especially classic FPS games like Quake and Counter-Strike), classic games (chess, scrabble, sudoku), running, and reading.

0 commit comments

Comments
 (0)