init tabler website

This commit is contained in:
codecalm
2023-07-18 00:13:56 +02:00
parent 77ae29acef
commit 06579ec91d
1336 changed files with 47866 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import clsx from 'clsx';
import Image from 'next/image';
export default function ResponsiveImage(props) {
if (props.url) {
return (
<img
src={props.url}
className={clsx('img-fluid', props.className)}
width={props.width}
height={props.height}
loading="lazy"
alt={props.alt || ''}
/>
);
}
const src2x = props.src;
return (
<Image
className={clsx(props.className)}
src={src2x}
alt={props.alt || ''}
width={props.width}
height={props.height}
quality={85}
srcSet={[props.width, props.width * 2]}
{...props}
/>
);
}