Skip to content

Commit

Permalink
Merge pull request #20 from EFUB-TEAM4/issue-6
Browse files Browse the repository at this point in the history
#6 : [SaveComplete] PC, Mobile UI
  • Loading branch information
JangAyeon authored Jul 21, 2022
2 parents 88a787b + e9591e1 commit 25c362b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AppRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function AppRouter() {
{/* 추후 로그인 여부 확인 로직 필요 */}

<Route path="/save" element={<Save />} />
<Route path="/complete" element={<SaveComplete />} />
<Route path="/savecomplete" element={<SaveComplete />} />
<Route path="/vote" element={<Vote />} />
<Route path="/votecomplete" element={<VoteComplete />} />
<Route path="/mypage" element={<MyPage />} />
Expand Down
9 changes: 8 additions & 1 deletion src/pages/Save/SaveComplete/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable import/no-unresolved */
import React from 'react';
import { useNavigate } from 'react-router-dom';
import { SaveBear, WhiteClose } from 'assets';
import {
StyledRoot,
Expand All @@ -12,10 +13,16 @@ import {
} from './style';

function SaveComplete() {
const navigate = useNavigate();
return (
<StyledRoot>
<ButtonBox>
<button type="button">
<button
type="button"
onClick={() => {
navigate(-1);
}}
>
<ExitButton src={WhiteClose} alt="창 닫기 버튼" />
</button>
</ButtonBox>
Expand Down
7 changes: 3 additions & 4 deletions src/pages/Save/SaveComplete/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ const ButtonBox = styled.div`
`;

const ExitButton = styled.img`
${applyMediaQuery('desktop')} {
display: none;
}
display: none;
${applyMediaQuery('mobile')} {
display: block;
width: 3rem;
height: 3rem;
}
Expand All @@ -36,7 +35,7 @@ const MainText = styled.p`
font-family: 'Cafe24Ssurround';
font-size: ${({ theme: { font } }) => font.size.large};
color: ${({ theme: { color } }) => color.white};
/* margin-top: 7rem; */
margin-bottom: 5rem;
${applyMediaQuery('mobile')} {
Expand Down

0 comments on commit 25c362b

Please sign in to comment.