Update content of files

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

View file

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

View file

@ -1,32 +0,0 @@
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;