Update content of files

This commit is contained in:
GitHub Action 2023-09-16 15:39:36 +00:00
parent ab8a1cedc5
commit 31eed5d779
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,2 @@
// extracted by mini-css-extract-plugin
export default {"root":"j82N","clock":"sYj9"};

View file

@ -0,0 +1,32 @@
import classNames from 'classnames';
import Lottie, { LottieRefCurrentProps } from 'lottie-react';
import { FC, useEffect, useRef } from 'react';
import styles from './SandClockAnimation.module.scss';
import animationData from './sand_clock.json';
const SandClockAnimation: FC<{ className?: string }> = ({ className }) => {
const clockRef = useRef<LottieRefCurrentProps>(null);
const play = () => {
clockRef.current?.goToAndPlay(0);
};
useEffect(() => {
play();
}, []);
return (
<div className={classNames(styles.root, className)}>
<Lottie
lottieRef={clockRef}
className={styles.clock}
animationData={animationData}
autoplay={false}
loop={false}
/>
</div>
);
};
export default SandClockAnimation;