-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from TheBroMoe/404-html-component
update app routes and redesign 404 page
- Loading branch information
Showing
3 changed files
with
46 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 30 additions & 14 deletions
44
frontend/src/app/shared/components/page-not-found/page-not-found.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,44 @@ | ||
.mat-elevation-z0 | ||
|
||
main { | ||
height: 94vh; | ||
width: 100vw; | ||
height: 100%; | ||
width: 100%; | ||
position: fixed; | ||
} | ||
|
||
mat-card { | ||
background-color: silver; | ||
background-color: lightgoldenrodyellow; | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
|
||
@media(min-width: 40em) { | ||
|
||
mat-card { | ||
height: 50vh; | ||
|
||
} | ||
mat-card-title{ | ||
font-size: 13em; | ||
width: 567px; | ||
max-width: 100%; | ||
margin:0; | ||
} | ||
|
||
|
||
mat-card-subtitle{ | ||
font-size: 2.5em; | ||
width: 567px; | ||
max-width: 100%; | ||
} | ||
|
||
.separator{ | ||
margin-top: 0; | ||
padding:0; | ||
margin-left: 20%; | ||
} | ||
|
||
@media(max-width: 40em){ | ||
p { | ||
text-align: left; | ||
font-size: larger; | ||
font-weight: bold; | ||
} | ||
|
||
mat-card { | ||
height: 40vh; | ||
margin-top: 5%; | ||
} | ||
a > button { | ||
background-color: darkorange; | ||
color: white; | ||
} |
30 changes: 14 additions & 16 deletions
30
frontend/src/app/shared/components/page-not-found/page-not-found.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
<main> | ||
<!-- LARGE AND MEDIUM SCREENS --> | ||
<div class="sm-show"> | ||
<main class="mat-elevation-z0"> | ||
<div class="p2"></div> | ||
<div class="flex"> | ||
<span class="flex-grow"></span> | ||
<mat-card class="col col-6 center"> | ||
<div class="p4"></div> | ||
<mat-card-title> PAGE NOT FOUND </mat-card-title> | ||
<mat-card-subtitle> The requested resource was not found </mat-card-subtitle> | ||
<mat-card-title> 404 </mat-card-title> | ||
<div class="separator"> | ||
<mat-card-subtitle> Sorry - the resource you have requested does not exist </mat-card-subtitle> | ||
<p>You may have entered an invalid URL. If you believe this to be an error, please | ||
<a href="https://docs.google.com/forms/d/e/1FAIpQLScxdY0tJJXKGAPvuCtwL23TVc72G14TCNMxsWdWdZAn57dh2g/viewform" target="_blank"> | ||
report it. | ||
</a> | ||
</p> | ||
<a routerLink="/home"> | ||
<button mat-raised-button ><mat-icon>home</mat-icon> Go to the home page</button> | ||
</a> | ||
</div> | ||
</mat-card> | ||
<span class="flex-grow"></span> | ||
</div> | ||
</div> | ||
|
||
<!-- SMALL SCREENS --> | ||
<div class="sm-hide"> | ||
<mat-card class="center"> | ||
<div class="p2"></div> | ||
<mat-card-title> PAGE NOT FOUND </mat-card-title> | ||
<mat-card-subtitle> The requested resource was not found </mat-card-subtitle> | ||
</mat-card> | ||
</div> | ||
</main> | ||
</main> |