Skip to content

Instantly share code, notes, and snippets.

@sunmeat
Created June 10, 2025 12:33
Show Gist options
  • Save sunmeat/5bb2daa15f18f910d21980e42daac05f to your computer and use it in GitHub Desktop.
Save sunmeat/5bb2daa15f18f910d21980e42daac05f to your computer and use it in GitHub Desktop.
error 404 example
...
function NotFound() {
return (
<div className="page-content">
<h1 className="page-title">404 - Страница не найдена</h1>
<p className="about-text">Извините, запрашиваемая страница не существует.</p>
<div className="link-group">
<Link to="/" className="page-link">Вернуться в ленту</Link>
<Link to="/profile" className="page-link">Профиль</Link>
<Link to="/search" className="page-link">Поиск</Link>
</div>
</div>
);
}
...
<Routes>
...
<Route path="/about" element={<About/>}/>
<Route path="*" element={<NotFound/>}/>
</Routes>
...
==================================================================================================
// https://web-valley.ru/articles/404-oshibka-na-sajte
// https://www.plerdy.com/ru/blog/top-50-storinok-404/
// https://itproger.com/ua/news/luchshie-primeri-stranits-oshibok-404
// https://lifehacker.ru/oshibka-404-krutye-primery/
// https://ru.freepik.com/free-photos-vectors/404
// https://tproger.ru/articles/best-404-notfound-pages
// https://blog.depositphotos.com/ru/18-genialnyh-stranits-oshibki-404.html
// https://habr.com/ru/articles/213227/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment