Skip to content

Commit

Permalink
Develop 404 (hackforla#1972)
Browse files Browse the repository at this point in the history
* Standardized the page card classes in the About page

* Develop 404 page

* Made edits to margins because of new footer sizing

* Fixes mobile and tablet view

* Fixes href link for the Join Us page

* Fixes spacing for first message on 404 page
  • Loading branch information
sena-ji authored Aug 11, 2021
1 parent 07e652f commit b7d2334
Show file tree
Hide file tree
Showing 5 changed files with 270 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _data/internal/credits/404.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Error
title-link: https://www.freepik.com/
content: Image
used-in: Error page
artist: stories
provider: Freepik
provider-link: https://www.freepik.com/
image-url: /assets/images/404.svg
alt: '404'
type: icon
---
107 changes: 107 additions & 0 deletions _sass/components/_404.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
.grid-container--404 {
display: flex;
flex-flow: row;
justify-content: center;
align-items: center;
padding: 120px;
margin: 100px 100px;

@media #{$bp-below-desktop} {
margin: 70px 30px;
padding-left: 0;
padding-right: 0;
padding-top: 130px;
padding-bottom: 130px;
}

@media #{$bp-below-tablet} {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0px 20px;
padding-top: 80px;
padding-bottom: 20px;
}

ul, li {
padding: 0;
list-style-type: none;
font-weight: bold;
font-size: 16px;
line-height: 2.5;
color: #FA114F;
}

a {
text-decoration: none;
}
}

.col-left {
max-width: 500px;
width: 100%;

@media #{$bp-below-tablet} {
display: flex;
flex-direction: column;
margin: auto;
}
}

.img-404-desktop {
width: 530px;
height: 355px;

@media #{$bp-below-desktop} {
visibility: hidden;
width: 0;
height: 0;
}
}

.img-404-mobile {
visibility: hidden;
width: 0;
height: 0;

@media #{$bp-below-desktop} {
visibility: visible;
width: 276px;
height: 185px;
align-self: center;
margin: 30px 0px;
}
}

.header-message-404 {
font-weight: bold;
font-size: 76px;
font-family: "Roboto", sans-serif;
font-style: normal;
color: #333333;
margin-bottom: 0;

@media #{$bp-below-desktop} {
font-size: 39px;
line-height: 1.8;
}
}

.main-message-404 {
font-weight: bold;
font-size: 24px;
color: #000000;
opacity: 0.5;
margin-bottom: 80px;

@media #{$bp-below-desktop} {
margin-bottom: 0px;
}
}

.link-message-404 {
font-weight: bold;
font-size: 16px;
color: #333333;
}
1 change: 1 addition & 0 deletions _sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
// /**
// * Components
// */
@import 'components/404';
@import 'components/home';
@import 'components/about';
@import 'components/communities-of-practice';
Expand Down
Loading

0 comments on commit b7d2334

Please sign in to comment.