diff --git a/aeye/app/(nav)/my/page.tsx b/aeye/app/(nav)/my/page.tsx index f834fae..a4ba9b4 100644 --- a/aeye/app/(nav)/my/page.tsx +++ b/aeye/app/(nav)/my/page.tsx @@ -1,5 +1,57 @@ -export default function() { +'use client' + +import React, { useState } from "react"; +import { styled } from '@mui/material/styles'; +import { + Box, + Grid, + Paper, + Avatar, + Tooltip, + Typography +} from "@mui/material"; + +const Item = styled(Paper)(({ theme }) => ({ + backgroundColor: theme.palette.mode === 'dark' ? '#1A2027' : '#fff', + ...theme.typography.body2, + padding: theme.spacing(1), + textAlign: 'center', + color: theme.palette.text.secondary, + margin: theme.spacing(1), +})); + +function ProfileAvatar() { + const [avatar, setAvatar] = useState(null); return ( -
my page
+
+ + + + + 사람이름 + +
); } + +export default function MyPage() { + return ( + + + + + + xs=8 + + + xs=4 + + + + + ); +}; diff --git a/aeye/app/components/Navbar.tsx b/aeye/app/components/Navbar.tsx index d57eee2..5e94b0a 100644 --- a/aeye/app/components/Navbar.tsx +++ b/aeye/app/components/Navbar.tsx @@ -30,7 +30,7 @@ const Navbar: React.FC = () => { }; return ( -
+
{small && ( diff --git a/aeye/app/login/page.tsx b/aeye/app/login/page.tsx index 3338368..4baf008 100644 --- a/aeye/app/login/page.tsx +++ b/aeye/app/login/page.tsx @@ -17,7 +17,7 @@ const LoginPage = () => { } router.push('/home'); - }, []); + }, [router]); return (
diff --git a/aeye/app/page.tsx b/aeye/app/page.tsx index 731c7d8..16ec4ba 100644 --- a/aeye/app/page.tsx +++ b/aeye/app/page.tsx @@ -7,11 +7,11 @@ import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; const handleLoginWithGoogle = async () => { - window.location.replace(`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=982098409297-8krnotrs5aq8d9og7tofnvnnslfvf677.apps.googleusercontent.com&scope=email%20profile&state=z7o9tS1KdVjnBVcc1YhH7Dwk5FPqID_u_MIkY38nTP8%3D&redirect_uri=http://localhost:8080/login/oauth2/code/google`); + window.location.replace(`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=982098409297-8krnotrs5aq8d9og7tofnvnnslfvf677.apps.googleusercontent.com&scope=email%20profile&state=z7o9tS1KdVjnBVcc1YhH7Dwk5FPqID_u_MIkY38nTP8%3D&redirect_uri=https://api.a-eye.live/login/oauth2/code/google`); } const handleLoginWithKakao = async () => { - window.location.replace(`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=cdfde096b799357de4372685356ad669&scope=profile_nickname%20profile_image%20account_email&state=gefkirF7Oe7S0L7WPE2MQU2nnajOgYBMD1DSgI56N2s%3D&redirect_uri=http://localhost:8080/login/oauth2/code/kakao`); + window.location.replace(`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=cdfde096b799357de4372685356ad669&scope=profile_nickname%20profile_image%20account_email&state=gefkirF7Oe7S0L7WPE2MQU2nnajOgYBMD1DSgI56N2s%3D&redirect_uri=https://api.a-eye.live/login/oauth2/code/kakao`); }