Skip to content

Commit

Permalink
Implemented error page
Browse files Browse the repository at this point in the history
  • Loading branch information
Floqueboque committed Mar 14, 2022
1 parent a78ba43 commit c96107b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
1 change: 0 additions & 1 deletion public/impressum.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</div>
</div>
</header>
<button onclick="backToTop()" id="btt-btn" title="Back to top"></button>
<main id="index-main">
<section id="heading-impressum" class="gradient border-radius">
<div>
Expand Down
12 changes: 11 additions & 1 deletion public/stylesheets/index-layout-responsive.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,23 @@ footer {
#heading-impressum {
height: 100%;
width: 100%;
margin-bottom: 2%;
display: block;
text-align: center;
min-height: 400px;
padding-top: 100px;
}

#heading-error {
height: 100%;
width: 100%;
display: block;
text-align: left;
min-height: 500px;
padding: 20vh;
padding-left: 5%;
padding-right: 5%;
}

#sub-slogan {
margin-top: 5px;
}
Expand Down
15 changes: 12 additions & 3 deletions views/error.pug
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
extends shared/layout

block content
h1= message
h2= error.status
pre #{error.stack}
header#navbar-fixed
nav
a(href="/") Startseite
header#navbar-hamburger
div.topnav
button.icon-home(onclick="window.location.href = '/';")
main#index-main
section#heading-error.gradient.border-radius
div
h1= message
h2= error.status
pre #{error.stack}

0 comments on commit c96107b

Please sign in to comment.