diff --git a/frontend/frontend/src/pages/Home/stages/Login.js b/frontend/frontend/src/pages/Home/stages/Login.js index f373c61c..c94f4a73 100644 --- a/frontend/frontend/src/pages/Home/stages/Login.js +++ b/frontend/frontend/src/pages/Home/stages/Login.js @@ -1,10 +1,10 @@ /* eslint-disable react/no-array-index-key */ -import React, { useState, useEffect } from 'react'; +import React from 'react'; import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; -import { Button, Card } from '../../../components'; +import { Button, Card, Image } from '../../../components'; import { classnames } from '../../../utils'; import { GITHUB_PRIVATE_AUTH_URL, @@ -66,28 +66,6 @@ const LoginStage = ({ setCurrItem }) => { }, ]; - // Animation state for each card - const [cardOffsets, setCardOffsets] = useState( - cards.map(() => ({ x: 0, y: 0 })), - ); - - // Subtle floating animation - useEffect(() => { - const intervals = cards.map((_, index) => { - return setInterval(() => { - setCardOffsets((prev) => { - const newOffsets = [...prev]; - newOffsets[index] = { - x: Math.sin(Date.now() / 1000 + index) * 3, - y: Math.cos(Date.now() / 1500 + index * 0.5) * 3, - }; - return newOffsets; - }); - }, 50); - }); - - return () => intervals.forEach(clearInterval); - }, []); return (