-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create custom error page template (aka Page Not Found (404)) (#1161)
* feat APPS-2388 Page Not Found * added links * whitespace removed * styles update
- Loading branch information
1 parent
aa98926
commit 16736bf
Showing
7 changed files
with
73 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.content-container--error-page { | ||
margin: 0 auto; | ||
max-width: 832px; | ||
|
||
.error-page__title-row { | ||
margin-bottom: 48px; | ||
color: $ucla-darkest-blue; | ||
|
||
h1 { | ||
font-size: 52px; | ||
font-weight: 700; | ||
line-height: 62px; | ||
text-align: center; | ||
} | ||
|
||
h4 { | ||
font-size: 24px; | ||
line-height: 36px; | ||
} | ||
} | ||
|
||
ul { | ||
margin-left: 40px; | ||
|
||
li { | ||
margin-bottom: 10px; | ||
|
||
a { | ||
font-size: 16px; | ||
line-height: 24px; | ||
text-decoration: underline; | ||
color: #000; | ||
} | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# frozen_string_literal: true | ||
class ErrorsController < ApplicationController | ||
def not_found; end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="content-container--error-page"> | ||
<div class="error-page__title-row"> | ||
<h1 class="error-page__title">Page not found.</h1> | ||
</div> | ||
|
||
<div class="error-page__title-row"> | ||
<h4> | ||
We can’t find the page you are looking for, but we're here to help. Try | ||
these regularly visited links. | ||
</h4> | ||
</div> | ||
|
||
<ul> | ||
<li><a href="https://digital.library.ucla.edu/">UCLA Library Digital Collections Home</a></li> | ||
<li><a href="https://www.library.ucla.edu/">UCLA Library Home</a></li> | ||
<li><a href="https://www.library.ucla.edu/help/research-help/">Research Help</a></li> | ||
<li><a href="https://www.library.ucla.edu/help/services-resources/ask-us/">Ask a Librarian</a></li> | ||
<li><a href="https://www.ucla.edu/accessibility/">Accessibility Resources</a></li> | ||
</ul> | ||
</div> |
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
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