Skip to content

Commit

Permalink
πŸš€ Feat : 404νŽ˜μ΄μ§€ κ΅¬ν˜„ (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
g89g6 committed Sep 27, 2024
1 parent 6d19ecb commit 8f921ed
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import NotFound from '@pages/NotFound/NotFound'
import PostDetail from '@pages/PostDetail/PostDetail'
import { Routes, Route } from 'react-router-dom'

const App = () => {
return (
<Routes>
<Route
path="*"
element={<NotFound />} />
<Route
path='/postdetail'
element={<PostDetail />}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/imgs/ν•˜νŠΈ.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions src/pages/NotFound/NotFound.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.not-found-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: white;
text-align: center;
padding: 20px;
}
html,body{
background-color: red;
}
.quote-container {
margin-bottom: 20px;
}

.quote {
font-size: 1.3rem;
font-weight: 600;
}

.quote-author {
font-size: 14px;
color: #666;
margin-bottom: 50px;
}

.not-found-logo {
max-width: 100%;
height: auto;
margin-bottom: 20px;
}

.image-container {
position: relative;
}

.heart-overlay1 {
position: absolute;
top: 30%;
left: 14%;

object-fit: contain;
}
.heart-overlay2 {
position: absolute;
top: 30%;
left: 64%;
object-fit: contain;
}

.home-link {
color: #007bff;
text-decoration: none;
font-size: 16px;
}

.home-link:hover {
text-decoration: underline;
}
29 changes: 29 additions & 0 deletions src/pages/NotFound/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

import './NotFound.css';
import Aristo from '@assets/imgs/μ•„λ¦¬μŠ€ν† ν…”λ ˆμŠ€.png';
import Heart from '@assets/imgs/ν•˜νŠΈ.png';
import NotLogo from '@assets/imgs/404 Not Found.png';
import Container from '@/components/Conatiner/Container';

const NotFound: React.FC = () => {
return (
<Container>
<div className="not-found-container">
<div className="quote-container">
<blockquote className="quote">
"λˆ„κ΅¬κ°€λ₯Ό μ‚¬λž‘ν•œλ‹€λŠ” 것은<br></br> μžμ‹ μ„ 그와 λ™μΌμ‹œ ν•˜λŠ” 것이닀"
</blockquote>
<p className="quote-author">- μ•„λ¦¬μŠ€ν† ν…”λ ˆμŠ€</p>
<img src={NotLogo} alt="404 Not Found" className="not-found-logo" />
</div>
<div className="image-container">
<img src={Aristo} alt="Aristotle" className="aristotle-image" />
<img src={Heart} alt="Heart" className="heart-overlay1" />
<img src={Heart} alt="Heart" className="heart-overlay2" />
</div>
</div>
</Container>
);
};

export default NotFound;

0 comments on commit 8f921ed

Please sign in to comment.