Skip to content

Commit

Permalink
Merge pull request #290 from TEAM-SEONYAK/design/#289/loadinsSpinnerE…
Browse files Browse the repository at this point in the history
…rror

[ Design ] 에러페이지 높이 크기 반영 , 가입페이지 배경 svg로 변경 반영
  • Loading branch information
se0jinYoon authored Oct 21, 2024
2 parents 41aff2c + 0dd9285 commit 7d0598d
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 80 deletions.
5 changes: 5 additions & 0 deletions src/assets/svgs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,8 @@ export { default as ModalRejectImg } from './img_modal_reject.svg?react';
export { default as ComingSoonModalImg } from './comingSoonModalImg.svg?react';
export { default as GhostImg } from './img_ghost.svg?react';
export { default as HbHomeMainSvg } from './img_hbhome_main.svg?react';

// 가입 페이지 배경
export { default as JoinBgImgSvg } from './joinBgImg.svg?react';
export { default as JoinHbBgSvg } from './joinHbBgImg.svg?react';
export { default as JoinSbBgSvg } from './joinSbBgImg.svg?react';
33 changes: 33 additions & 0 deletions src/assets/svgs/joinBgImg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions src/assets/svgs/joinHbBgImg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions src/assets/svgs/joinSbBgImg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/pages/errorPage/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const Wrapper = styled.div`
flex-direction: column;
align-items: center;
width: 100%;
height: 100dvh;
padding: 16.7rem 9.8rem 23.7rem 9.9rem;
`;

Expand Down
26 changes: 7 additions & 19 deletions src/pages/join/JoinPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import JoinButton from '@pages/join/components/Button';
import Welcome from '@pages/join/components/Welcome';
import { Gap } from '@pages/login/SignupPage';
import googleLogin from '@pages/login/utils/googleLogin';
import { JoinBgImgSvg } from '@assets/svgs';

const JoinPage = () => {
return (
<>
<Welcome />
<GradEllipse $type={1} />
<GradEllipse $type={2} />
<GradEllipse $type={3} />
<JoinBgImgSvgIcon />
<Wrapper>
<BigMainLogoIcon />
<TitleWrapper>
Expand Down Expand Up @@ -45,27 +44,16 @@ const Wrapper = styled.div`
z-index: 2;
width: 100%;
height: 100%;
height: 100dvh;
min-height: calc(var(--vh, 1vh) * 100 - 44px);
padding: 10vh 2rem 3.5rem;
background-image: url('');
`;

const GradEllipse = styled.div<{ $type: number }>`
position: absolute;
top: ${({ $type }) => ($type === 1 ? '12.5rem' : $type === 2 ? '14.3rem' : '29.2rem')};
left: ${({ $type }) => ($type === 1 ? '-5.5rem' : $type === 2 ? '15.6rem' : '6rem')};
z-index: 1;
width: 27.7rem;
height: 27.9rem;
border-radius: '50%';
const JoinBgImgSvgIcon = styled(JoinBgImgSvg)`
position: fixed;
background: ${({ $type }) => ($type === 1 ? '#DFEDF9' : $type === 2 ? '#E2E6FA' : '#D9F7FF')};
opacity: 0.8;
filter: blur(60px);
width: 100%;
height: 100dvh;
`;

const BigMainLogoIcon = styled(BigMainLogoIc)`
Expand Down
76 changes: 15 additions & 61 deletions src/pages/login/SignupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,16 @@ import styled from '@emotion/styled';
import theme from '@styles/theme';
import { useLocation } from 'react-router-dom';
import googleLogin from './utils/googleLogin';
import { JoinHbBgSvg, JoinSbBgSvg } from '@assets/svgs';

const SignupPage = () => {
const role = useLocation().state.role;
const isSenior = role === 'SENIOR';

return (
<>
{role === 'SENIOR' ? (
<>
<GradEllipseSb $type={1} />
<GradEllipseSb $type={2} />
<GradEllipseSb $type={3} />
</>
) : (
<>
<GradEllipseHb $type={1} />
<GradEllipseHb $type={2} />
<GradEllipseHb $type={3} />
</>
)}
{role === 'SENIOR' ? <JoinSbBgSvgIcon /> : <JoinHbBgSvgIcon />}
<SignUpContainer>
{role === 'SENIOR' ? <OnboardingBackgroundSBIcon /> : <OnboardingBackgroundHBIcon />}
<DescTextWrapper>
<MetaText>반가워요!</MetaText>
{isSenior ? (
Expand All @@ -45,7 +33,7 @@ const SignupPage = () => {
</>
)}
</DescTextWrapper>
<Gap />
{role === 'SENIOR' ? <OnboardingBackgroundSBIc /> : <OnboardingBackgroundHBIc />}
<BtnContainer onClick={() => googleLogin(role)}>
<GoogleLogoIcon />
<Text>구글로 시작하기</Text>
Expand All @@ -60,13 +48,13 @@ export default SignupPage;
const SignUpContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: stretch;
justify-content: space-evenly;
align-items: center;
position: relative;
z-index: 1;
width: 100%;
height: 100%;
height: 100dvh;
min-height: calc(var(--vh, 1vh) * 100 - 44px);
padding: 6rem 2rem 3.6rem;
`;
Expand All @@ -75,36 +63,18 @@ export const Gap = styled.div`
flex-grow: 1;
`;

const GradEllipseSb = styled.div<{ $type: number }>`
position: absolute;
top: ${({ $type }) => ($type === 1 ? '12.5rem' : $type === 2 ? '14.3rem' : '29.2rem')};
left: ${({ $type }) => ($type === 1 ? '-5.5rem' : $type === 2 ? '15.6rem' : '6rem')};
z-index: 0;
width: 27.7rem;
height: 27.9rem;
border-radius: '50%';
background: ${({ $type }) => ($type === 1 ? '#DFEDF9' : $type === 2 ? '#E2E6FA' : '#D9F7FF')};
const JoinSbBgSvgIcon = styled(JoinSbBgSvg)`
position: fixed;
opacity: 0.8;
filter: blur(60px);
width: 100%;
height: 100dvh;
`;

const GradEllipseHb = styled.div<{ $type: number }>`
position: absolute;
top: ${({ $type }) => ($type === 1 ? '14.3rem' : $type === 2 ? '12.5rem' : '29.2rem')};
left: ${({ $type }) => ($type === 1 ? '-5.9rem' : $type === 2 ? '17.8rem' : '3.8rem')};
z-index: 0;
const JoinHbBgSvgIcon = styled(JoinHbBgSvg)`
position: fixed;
width: 27.7rem;
height: 27.9rem;
border-radius: '50%';
background: ${({ $type }) => ($type === 1 ? '#E2FAFA' : $type === 2 ? '#F9E1DF' : '#D9F7FF')};
opacity: 0.8;
filter: blur(60px);
width: 100%;
height: 100dvh;
`;

const MetaText = styled.p`
Expand All @@ -119,6 +89,8 @@ const DescTextWrapper = styled.div`
flex-direction: column;
justify-content: center;
align-items: center;
padding-bottom: 3.2rem;
`;
const DescText = styled.span<{ $isActive: boolean }>`
${({ theme }) => theme.fonts.Title1_SB_16};
Expand Down Expand Up @@ -154,21 +126,3 @@ const GoogleLogoIcon = styled(GoogleLogoIc)`
height: 33px;
margin: 10px;
`;

const OnboardingBackgroundSBIcon = styled(OnboardingBackgroundSBIc)`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
`;

const OnboardingBackgroundHBIcon = styled(OnboardingBackgroundHBIc)`
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
`;

0 comments on commit 7d0598d

Please sign in to comment.