-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from bsideproject/feature/liked
[feat] 404 Page, Liked Page 수정
- Loading branch information
Showing
3 changed files
with
70 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
/* eslint-disable react/no-unstable-nested-components */ | ||
import React from 'react'; | ||
import NotFound from '@/public/icons/404_bg.svg'; | ||
import LinkLine from '@/public/icons/linkLine.svg'; | ||
import Typography from '@/components/Typography/Typography'; | ||
import ErrorPage from '@/public/icons/errorPageImage.svg'; | ||
import { useRouter } from 'next/router'; | ||
|
||
export default function NoPostings() { | ||
const router = useRouter(); | ||
const noPostingStyle = 'text-[20px] font-bold mt-[29px] text-center'; | ||
const containerStyle = 'flex flex-col items-center justify-start mt-[135px]'; // 'justify-start'로 변경 | ||
|
||
const NotFoundPage = () => { | ||
return ( | ||
<div className="flex items-center justify-center h-screen bg-g2"> | ||
<div className="w-[271px] h-[142px] relative"> | ||
<NotFound className="absolute inset-0" /> | ||
<div className="absolute inset-0 bg-g0 flex flex-col justify-end"> | ||
<span className="text-white text-2xl font-bold mb-2"> | ||
<Typography variant="header" customClassName="text-center"> | ||
Something's missing. | ||
</Typography> | ||
<Typography variant="label" customClassName="text-center"> | ||
This page is missing or you assembled <br /> the link incorrectly | ||
</Typography> | ||
</span> | ||
<div className={containerStyle}> | ||
<ErrorPage /> | ||
<div className={noPostingStyle}>{`Something's missing.`}</div> | ||
<div className="text-[16px] text-g5 font-pretendard">This page is missing or you assembled</div> | ||
<div className="text-[16px] text-g5 font-pretendard">the link incorrectly</div> | ||
<div className="fixed bottom-[0px] w-full overflow-x-hidden left-[50%] translate-x-[-50%] px-[20px] max-w-max"> | ||
<div className="w-full"> | ||
<hr /> | ||
<div className="mb-[13px] space-x-[8px] max-w-max"> | ||
<button | ||
className="font-pretendard text-[16px] font-semibold bg-r1 border border-solid border-r1 rounded-[2px] text-g0 w-full h-[48px] items-center " | ||
onClick={() => window.history.back()} | ||
type="button" | ||
data-size="md" | ||
> | ||
Go back | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.