mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
Add branded 404 page to replace Github Pages 404 (#798)
This commit is contained in:
parent
6b29bb8468
commit
a7b7c716d4
35
src/404.css
Normal file
35
src/404.css
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
html, body, .row {
|
||||||
|
height: 100%;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 25px;
|
||||||
|
margin-bottom: 12.5px;
|
||||||
|
font-weight: 500;
|
||||||
|
line-height: 1.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
font-size: 23px;
|
||||||
|
line-height: 25px;
|
||||||
|
color: #fff;
|
||||||
|
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
background-color: #175DDC;
|
||||||
|
height: 56px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
padding: 40px 0 40px 0;
|
||||||
|
border-top: 1px solid #dee2e6;
|
||||||
|
}
|
54
src/404.html
Normal file
54
src/404.html
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||||
|
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
|
||||||
|
<link rel="stylesheet" crossorigin="anonymous"
|
||||||
|
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
|
||||||
|
integrity="sha256-eZrrJcwDc/3uDhsdt61sL2oOBY362qM3lon1gyExkL0= sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw==">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,300italic,400italic,600italic"
|
||||||
|
rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<link href="/404.css" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/images/icons/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/images/icons/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/images/icons/favicon-16x16.png">
|
||||||
|
<link rel="mask-icon" href="/images/icons/safari-pinned-tab.svg" color="#175DDC">
|
||||||
|
<link rel="manifest" href="/manifest.json">
|
||||||
|
|
||||||
|
<title>Page not found!</title>
|
||||||
|
<meta name="description" content="404 Page Not Found">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="banner">
|
||||||
|
<div class="container inner banner">
|
||||||
|
<div class="row align-items-center">
|
||||||
|
<div class="col brand">
|
||||||
|
<i class="fa fa-shield"></i>
|
||||||
|
<strong>bit</strong>warden</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container inner content">
|
||||||
|
<h2>Page not found!</h2>
|
||||||
|
<p>Sorry, but the page you were looking for could not be found.</p>
|
||||||
|
<p>
|
||||||
|
<a href="/">
|
||||||
|
<img src="/images/404.png" class="img-fluid" alt="404 image" width="80%"/>
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<p>You can <a href="/">return to the web vault</a>, check our <a href="https://status.bitwarden.com/">status page</a>
|
||||||
|
or <a href="https://bitwarden.com/contact/">contact us</a>.</p>
|
||||||
|
</div>
|
||||||
|
<div class="container footer text-muted content">
|
||||||
|
© Copyright 2021 Bitwarden, Inc.
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
BIN
src/images/404.png
Normal file
BIN
src/images/404.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
@ -99,6 +99,8 @@ const plugins = [
|
|||||||
{ from: './src/favicon.ico' },
|
{ from: './src/favicon.ico' },
|
||||||
{ from: './src/browserconfig.xml' },
|
{ from: './src/browserconfig.xml' },
|
||||||
{ from: './src/app-id.json' },
|
{ from: './src/app-id.json' },
|
||||||
|
{ from: './src/404.html' },
|
||||||
|
{ from: './src/404.css' },
|
||||||
{ from: './src/images', to: 'images' },
|
{ from: './src/images', to: 'images' },
|
||||||
{ from: './src/locales', to: 'locales' },
|
{ from: './src/locales', to: 'locales' },
|
||||||
{ from: './src/scripts', to: 'scripts' },
|
{ from: './src/scripts', to: 'scripts' },
|
||||||
|
Loading…
Reference in New Issue
Block a user