Skip to content

Commit

Permalink
feat: 로그인 리다이렉트 페이지 스타일작업 (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwl98 authored Nov 27, 2023
1 parent 588aaf2 commit 7fb20c8
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
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>
);
};

0 comments on commit 7fb20c8

Please sign in to comment.