Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

로그인 리다이렉트 페이지 스타일작업 #358

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/pages/RedirectPage/RedirectPage.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import styled from '@emotion/styled';

import { Flex } from '@components/shared/Flex';
import { Image } from '@components/shared/Image';

export const PageWrapper = styled.div`
${({ theme }) => theme.STYLES.LAYOUT}
min-height: 100dvh;
background-color: ${({ theme }) => theme.PALETTE.GRAY_100};
`;

export const PageContent = styled(Flex)`
height: 100%;
padding: 40px 0 20px 0;
`;

export const LogoImage = styled(Image)`
padding-bottom: 40px;
`;
26 changes: 25 additions & 1 deletion src/pages/RedirectPage/RedirectPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
import { useCallback, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';

import { Flex } from '@components/shared/Flex';
import { Text } from '@components/shared/Text';

import { useLoginQuery } from '@hooks/queries/useLoginQuery';

import { theme } from '@styles/theme';

import { useTokenStore } from '@stores/accessToken.store';
import { useLoginInfoStore } from '@stores/loginInfo.store';

import { Authenticated, Registration } from '@type/models';

import LOGO_SRC from '@assets/logoSvg.svg';

import { LogoImage, PageContent, PageWrapper } from './RedirectPage.styles';

export const RedirectPage = () => {
const navigate = useNavigate();

Expand Down Expand Up @@ -49,5 +58,20 @@ export const RedirectPage = () => {
fetchLoginInfo();
}, [fetchLoginInfo]);

return <div>로그인 중입니다.</div>;
return (
<PageWrapper>
<PageContent direction="column" gap={20} align="center" justify="start">
<LogoImage src={LOGO_SRC} width="35%" height="auto" alt="pickle logo" />
<Flex direction="column" gap={10}>
<Text size={40} color={theme.PALETTE.RED_400}>
로그인중...
</Text>
<Flex direction="column">
<Text size={40}>잠시만</Text>
<Text size={40}>기다려주세요</Text>
</Flex>
</Flex>
</PageContent>
</PageWrapper>
);
};
Loading