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 (
@@ -132,9 +110,9 @@ const LoginStage = ({ setCurrItem }) => { - @@ -147,9 +125,9 @@ const LoginStage = ({ setCurrItem }) => { ) : (
- @@ -165,7 +143,7 @@ const LoginStage = ({ setCurrItem }) => { {/* Logout Button */}
+
{cards.map((card, index) => { // Calculate arch position @@ -254,28 +242,27 @@ const LoginStage = ({ setCurrItem }) => { const x = centerX + radius * Math.cos(angle); const y = centerY + radius * Math.sin(angle); - // Add animation offset - const animX = x + cardOffsets[index].x; - const animY = y + cardOffsets[index].y; - return (
- +
+ +
); })}