mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-28 09:39:41 +02:00
404 Page not found added (#225)
* replace repose of aliases with error page * error twig modified with proper messages * add the error pcss * the lint removed * centered the error message * center style added independent of screen * the top position changed * aliases not found added * aliases throw removed * Update src/backend/controllers/pages.ts Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
09835e3007
commit
05f8f0d9e1
6 changed files with 57 additions and 19 deletions
29
src/frontend/styles/components/error.pcss
Normal file
29
src/frontend/styles/components/error.pcss
Normal file
|
@ -0,0 +1,29 @@
|
|||
.error-page {
|
||||
font-size: 15px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top: 45%;
|
||||
left: 50%;
|
||||
|
||||
@media (--mobile) {
|
||||
position: relative;
|
||||
top: 30vh;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@media (--tablet) {
|
||||
position: relative;
|
||||
top: 30vh;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@media (--mobile) {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 40px 0 20px;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue