website refactor
This commit is contained in:
@@ -13,7 +13,19 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
||||
fullHeight?: boolean;
|
||||
}
|
||||
|
||||
export function Image({ src, alt, width, height, className = '', fallbackSrc, objectFit, fill, fullWidth, fullHeight, ...props }: ImageProps) {
|
||||
export function Image({
|
||||
src,
|
||||
alt,
|
||||
width,
|
||||
height,
|
||||
className = '',
|
||||
fallbackSrc,
|
||||
objectFit,
|
||||
fill,
|
||||
fullWidth,
|
||||
fullHeight,
|
||||
...props
|
||||
}: ImageProps) {
|
||||
const classes = [
|
||||
objectFit ? `object-${objectFit}` : '',
|
||||
fill ? 'absolute inset-0 w-full h-full' : '',
|
||||
|
||||
Reference in New Issue
Block a user