1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-28 14:43:49 -05:00

assume images should be centered for now

This commit is contained in:
2022-01-09 23:14:35 -05:00
parent 6436a34c59
commit f56006d627
14 changed files with 22 additions and 126 deletions

View File

@@ -8,7 +8,7 @@ import type { ImageProps } from "next/image";
const CustomImg = (props: ImageProps) => {
return (
// the required height and width are part of the props, so they get automatically passed here with {...props}
<div className={props.className}>
<div style={{ margin: "1em auto", textAlign: "center" }}>
<Image
src={props.src}
layout="intrinsic"