Skip to content

Commit

Permalink
error page with better RWD
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrzej Bacz committed Feb 12, 2021
1 parent 37d5969 commit 75244cd
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
11 changes: 6 additions & 5 deletions s4e-web/src/app/errors/errors.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@
~
-->

<div class="container">
<div class="container errors">
<h2 class="description">{{ actualError.description }}</h2>
<h3 class="title">{{ actualError.title }}</h3>

<p>
<a routerLink="/" class="button button--secondary button--small">Wróć do strony głównej</a>
<span *ngIf="!!backLink && backLink !== ''" >
<span>&nbsp; | &nbsp;</span>
<a routerLink="{{ backLink }}">Wróć do poprzedniej strony</a>
<span>
<a routerLink="/" class="button button--secondary button--small">Wróć do strony głównej</a>
</span>
<span *ngIf="!!backLink && backLink !== ''">
lub <a routerLink="{{ backLink }}"> lub wróć do poprzedniej strony</a>
</span>
</p>
</div>
2 changes: 2 additions & 0 deletions s4e-web/src/app/errors/errors.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

body, html {
height: auto;
overflow: hidden !important;
}

.container {
Expand All @@ -27,6 +28,7 @@ body, html {
text-align: center;
}


h2 {
padding-top: 120px;
background: url(/../../assets/images/logo_s4e_color.png) no-repeat center top;
Expand Down
12 changes: 12 additions & 0 deletions s4e-web/src/scss/_auth.scss
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,18 @@ body, html {
}
}

.errors {
span {
display: inline-block;
margin: 10px 5px;
}

& > * {
margin: 15px !important;
}
}





Expand Down
11 changes: 9 additions & 2 deletions s4e-web/src/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,15 @@ input.checkbox-slide:checked + .slider:after
}
}

ngx-ui-loader .ngx-background-spinner {
z-index: 5 !important;
/* jira collector */
.atlwdg-popup {
max-width: calc(100% - 100px);
}

/*loader*/

ngx-ui-loader .ngx-background-spinner[_ngcontent-c3]{
z-index: 1 !important;
}

.ol-attribution.ol-uncollapsible {
Expand Down
1 change: 1 addition & 0 deletions s4e-web/src/scss/_rwd_phone.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

.search-results {
width: 100% !important;
top: 100px !important;
}
}

Expand Down

0 comments on commit 75244cd

Please sign in to comment.