Skip to content

Commit

Permalink
๐Ÿ’„design: NotFoundPage ๋ชจ๋ฐ”์ผ UI ์ถ”๊ฐ€ ๋ฐ ์•„์ด์ฝ˜ ์ƒ‰์ƒ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdcodus committed Oct 6, 2024
1 parent 42a268a commit 2e0c394
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion grass-diary/src/assets/svg/error_outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions grass-diary/src/pages/Error/NotFoundPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import Footer from '@components/Layout/Footer';
import Header from '@components/Layout/Header';
import useIsMobile from '@hooks/useIsMobile';
import * as S from '@styles/Error/NotFoundPage.style';
import { semantic } from '@styles/semantic';
import errorIcon from '@svg/error_outline.svg';
import { ReactComponent as Arrow } from '@svg/chevron_right.svg';
import { useNavigate } from 'react-router-dom';

const NotFoundPage = () => {
const navigate = useNavigate();
const isMobile = useIsMobile();
const linkToMain = () => {
navigate('/main');
};
Expand All @@ -16,9 +17,11 @@ const NotFoundPage = () => {
<Header />
<S.Container>
<S.ErrorSection>
<img src={errorIcon} />
<img src="../src/assets/svg/error_outline.svg" alt="error_image" />
<S.ErrorTextBox>
<S.HeaderText>ํŽ˜์ด์ง€๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†์–ด์š”</S.HeaderText>
<S.HeaderText>
ํŽ˜์ด์ง€๋ฅผ{isMobile ? <br /> : ' '}์ฐพ์„ ์ˆ˜ ์—†์–ด์š”
</S.HeaderText>
<S.GuideText>
์ฃผ์†Œ๊ฐ€ ์ž˜๋ชป ์ž…๋ ฅ๋˜์—ˆ๊ฑฐ๋‚˜ ๋ณ€๊ฒฝ๋˜์—ˆ์„ ์ˆ˜ ์žˆ์–ด์š”. <br />
์ •ํ™•ํ•œ ์ฃผ์†Œ์ธ์ง€ ๋‹ค์‹œ ํ•œ ๋ฒˆ ํ™•์ธํ•ด ์ฃผ์„ธ์š”!
Expand Down
8 changes: 7 additions & 1 deletion grass-diary/src/styles/Error/NotFoundPage.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,20 @@ export const ErrorTextBox = styled.div`
`;

export const HeaderText = styled.h1`
color: ${semantic.light.accent.solid.normal};
color: ${semantic.light.object.solid.hero};
${TYPO.display1}
@media screen and (max-width: 60em) {
${TYPO.title3}
}
`;

export const GuideText = styled.span`
color: ${semantic.light.object.transparent.neutral};
${TYPO.body4}
@media screen and (max-width: 60em) {
${TYPO.body1}
}
`;

export const ErrorCode = styled.span`
Expand Down

0 comments on commit 2e0c394

Please sign in to comment.