Import repositories from gitlab

This commit is contained in:
Julien Aldon
2026-01-19 11:43:59 +01:00
commit 68b7405c52
131 changed files with 17192 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
'use client';
import { useState } from 'react';
import styles from './style.module.scss';
import ImagePopup from '../imagePopup';
export default function ImageBlock({alt, src, ...props}) {
const [showPopup, setShowPopup] = useState(false);
const toggleShowPopup = () => {
setShowPopup(prev => !prev);
}
return (
<>
<img
{...props}
onClick={toggleShowPopup}
src={src}
alt={alt}
className={`${styles.imageBlock} ${props.className}`}
/>
{
showPopup ?
<ImagePopup
toggleShowPopup={toggleShowPopup}
alt={alt}
src={src}
/>
: null
}
</>
);
}