mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-04-17 10:28:46 -04:00
<IFrame /> component
This commit is contained in:
7
components/Image/Image.module.css
Normal file
7
components/Image/Image.module.css
Normal file
@@ -0,0 +1,7 @@
|
||||
.wrapper {
|
||||
line-height: 0;
|
||||
|
||||
/* default to centering all images */
|
||||
margin: 1em auto;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
import NextImage from "next/image";
|
||||
import type { ImageProps as NextImageProps } from "next/image";
|
||||
|
||||
import styles from "./Image.module.css";
|
||||
|
||||
const Image = ({ src, width, height, alt, quality, priority }: NextImageProps) => {
|
||||
return (
|
||||
<div className="image_wrapper">
|
||||
<div className={styles.wrapper}>
|
||||
<NextImage
|
||||
src={(src as string).replace(/^\/public/g, "")}
|
||||
layout="intrinsic"
|
||||
|
||||
Reference in New Issue
Block a user