Skip to content

Commit b70ca03

Browse files
committed
Change the background on 404.html
1 parent 5dd31fe commit b70ca03

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

404.html

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,14 @@
1010
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
1111
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" rel="stylesheet">
1212
<!-- Left out CSS stylesheet link as 404.css stylesheet is linked below -->
13-
<link rel="stylesheet" href="assets/css/404.css">
13+
<link rel="stylesheet" href="assets/css/style.css">
1414
<title>Access Granted | 404 - Page Not Found </title>
1515

1616
</head>
1717
<body class="relative">
1818
<a href="#main-content" class="skip-link">Skip to main content</a>
19-
20-
<header class="fixed-top">
21-
<nav class="navbar navbar-expand-lg">
22-
<div class="container">
23-
<a class="navbar-brand" href="index.html">
24-
<img src="assets/images/logo.webp" alt="Access Granted Logo" width="30" height="30"
25-
class="d-inline-block align-top">
26-
Access Granted
19+
20+
2721
</a>
2822
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent"
2923
aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
@@ -90,7 +84,7 @@ <h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Accessibility Set
9084
<div class="dropdown-item">
9185
<div class="form-check form-switch form-switch-lg d-flex align-items-center">
9286
<input class="form-check-input theme-switch" type="checkbox" id="themeSwitch1" aria-label="Theme switch">
93-
<label class="form-check-label ms-2" for="themeSwitch1">Turn on High Contrast</label>
87+
<label class="form-check-label ms-2" for="themeSwitch1">Turn on High Contrast Mode</label>
9488
</div>
9589
</div>
9690
</li>
@@ -128,9 +122,9 @@ <h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Accessibility Set
128122
<main id="main-content" class="container my-5 error-background">
129123
<div class="row justify-content-center">
130124
<div class="col-md-8 text-center">
131-
<h1 class="display-1">404</h1>
132-
<h2 class="mb-4">Oops! Access NOT Granted</h2>
133-
<p class="lead mb-5">We couldn't find the page you're looking for. It might have been moved or doesn't exist.</p>
125+
<h1 class="display-1" style="font-weight: bold;">404</h1>
126+
<h2 class="mb-4"><strong>Oops! Access NOT Granted</strong></h2>
127+
<p class="lead mb-5"><strong>We couldn't find the page you're looking for. It might have been moved or doesn't exist.</strong></p>
134128
<a href="index.html" class="btn btn-primary btn-lg">Return to Home</a>
135129

136130
</div>
@@ -141,25 +135,10 @@ <h2 class="mb-4">Oops! Access NOT Granted</h2>
141135
<div class="container footerdiv">
142136
<div class="row">
143137
<div class="col-md-4">
144-
<h5>Social</h5>
145-
<ul class="list-unstyled">
146-
<li><a href="https://github.com/VCGithubCode/access-granted" class="text-muted" target="_blank"
147-
rel="noopener" aria-label="Visit our github repository page(Opens in a new tab)" aria-hidden="true"><i
148-
class="fa-brands fa-github"></i> Github</a></li>
149-
<li><a href="https://app.slack.com/client/T0L30B202/C080JB3ETHU" class="text-muted" target="_blank"
150-
rel="noopener" aria-label="Visit our Slack channel(Opens in a new tab)" aria-hidden="true"><i
151-
class="fa-brands fa-slack"></i> Slack</a></li>
152-
</ul>
138+
153139
</div>
154140
<div class="col-md-4">
155-
<h5>Site Map</h5>
156-
<ul class="list-unstyled">
157-
<li><a href="index.html" class="text-muted">Home</a></li>
158-
<li><a href="about.html" class="text-muted">About</a></li>
159-
<li><a href="resources.html" class="text-muted">Resources</a></li>
160-
<li><a href="contact.html" class="text-muted">Contact</a></li>
161-
<li><a href="accessibility-guide.html" class="text-muted">Accessibility guide</a></li>
162-
</ul>
141+
163142
</div>
164143
</div>
165144
<p class="float-end mb-1">
@@ -168,7 +147,7 @@ <h5>Site Map</h5>
168147
<p class="mb-1">&copy; 2024 Access Granted Project</p>
169148
</div>
170149
</footer>
171-
150+
172151
<svg class="svg-filter">
173152
<defs>
174153
<filter id="deuteranopia-filter">

assets/css/style.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,26 @@ nav li {
547547
text-align: center;
548548
}
549549

550+
551+
/* Error-background */
552+
.error-background {
553+
background-image: url(../images/person-with-glasses1.jpg);
554+
background-repeat: no-repeat;
555+
background-size: cover;
556+
background-position: center;
557+
padding: 50px;
558+
border-radius: 15px;
559+
560+
}
561+
562+
.error-container {
563+
border: 1px solid #000000;
564+
border-radius: 12px;
565+
padding: 1em;
566+
font-weight: 900;
567+
568+
}
569+
550570
/* Responsiveness */
551571
@media (max-width: 576px) {
552572
.flip-card {
21.1 KB
Loading

0 commit comments

Comments
 (0)