Skip to content

Commit

Permalink
Merge branch 'fix/feature'
Browse files Browse the repository at this point in the history
  • Loading branch information
asaei623 committed Sep 25, 2023
2 parents d549550 + 0727814 commit 37e996c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
6 changes: 5 additions & 1 deletion src/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ export const Header = ({

const handleBack = () => {
const currentURI = location.pathname;
if (currentURI === '/ask/write' || currentURI.match(/^\/answer\/\d+$/)) {
if (currentURI === '/ask/write') {
alert('μž‘μ„±μ„ μ·¨μ†Œν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?');
navigate('/ask');
} else if (currentURI.match(/^\/answer\/\d+$/)) {
alert('μž‘μ„±μ„ μ·¨μ†Œν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?');
navigate('/answer');
} else {
navigate(-1);
}
Expand Down
59 changes: 36 additions & 23 deletions src/pages/Signup/SignupSuccess/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Column, EntireContainer } from 'assets/common';
import { LongBtn } from 'components/common/Button';
import { Header } from 'components/common/Header';
import styled from 'styled-components';
import { Palette } from 'styles/Palette';
import Typo from 'styles/Typo';
Expand All @@ -8,40 +9,52 @@ const SignupSuccess = () => {
const userType = window.localStorage.getItem('userType');

return (
<EntireContainer>
<InnerContainer>
<Column gap={11}>
<Typo.h1>νšŒμ›κ°€μž… μ™„λ£Œ</Typo.h1>
<Typo.h2 color={Palette.Gray4}>
μ₯¬μž‡μ”¨ κ°€μž…μ΄ μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€. <br />
λ§Œλ‚˜μ„œ λ°˜κ°€μ›Œμš”!
</Typo.h2>
</Column>
<Img>
{userType === 'Juni' ? (
<img src="/img/pageImgs/signup-success-juni.svg" />
) : (
<img src="/img/pageImgs/signup-success-cyni.svg" />
)}
</Img>

<LongBtn to="/">확인</LongBtn>
</InnerContainer>
</EntireContainer>
<Column>
<Header borderBottom={false}>{''}</Header>
<EntireContainer>
<InnerContainer>
<Column gap={11}>
<Typo.h1>νšŒμ›κ°€μž… μ™„λ£Œ</Typo.h1>
<Typo.h2 color={Palette.Gray4}>
μ₯¬μž‡μ”¨ κ°€μž…μ΄ μ™„λ£Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€. <br />
</Typo.h2>
<Typo.h2 color={Palette.Gray4}>
{userType === 'Juni'
? 'μ§€κΈˆ λ°”λ‘œ μ§ˆλ¬Έμ„ λ“±λ‘ν•΄λ³΄μ„Έμš”!'
: 'μ£Όλ‹ˆμ–΄λ“€μ˜ 고민을 ν™•μΈν•˜λŸ¬ κ°€λ³ΌκΉŒμš”?'}
</Typo.h2>
</Column>
<ImgWrapper>
{userType === 'Juni' ? (
<Img src="/img/pageImgs/signup-success-juni.svg" />
) : (
<Img src="/img/pageImgs/signup-success-cyni.svg" />
)}
</ImgWrapper>
<LongBtn to="/">확인</LongBtn>
</InnerContainer>
</EntireContainer>
</Column>
);
};

export default SignupSuccess;

const Container = styled(EntireContainer)`
width: 100%;
height: 100dvh;
padding: 60px 30px 79px 30px;
`;
const InnerContainer = styled(Column)`
width: 100%;
height: 100%;
justify-content: space-between;

padding-top: 60px;
`;
const Img = styled(Column)`
const ImgWrapper = styled(Column)`
width: 100%;
justify-content: center;
align-items: center;
`;
const Img = styled.img`
width: 250px;
`;

0 comments on commit 37e996c

Please sign in to comment.