chore: updated projects & about sections

This commit is contained in:
2025-03-30 18:58:20 +02:00
parent abc6423831
commit ca258a7181
6 changed files with 95 additions and 75 deletions
+21
View File
@@ -0,0 +1,21 @@
import { ReactNode, useRef } from 'react';
import { StyledAnimatedText } from './styles/AnimatedText.styled';
interface IProps {
children: ReactNode;
}
export default function AnimatedText(props: IProps) {
const test = useRef<HTMLElement>(null);
// useEffect(() => {
// console.log(test.current?.textContent);
// }, [test]);
return (
<StyledAnimatedText>
<span ref={test}>{props.children}</span>
<span className="cursor"></span>
</StyledAnimatedText>
);
}