add 404 page
This commit is contained in:
Родитель
035cb04083
Коммит
14ccd6eb88
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="stylesheet" href="https://code.cdn.mozilla.net/fonts/fira.css">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
<title>Extension Compatibility Tester</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="hero hero--full text-center">
|
||||
<div class="container">
|
||||
<h1 class="hero__title">Extension Compatibility Test for Firefox</h1>
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<p>
|
||||
The page you requested could not be found.
|
||||
</p>
|
||||
<a href="/" class="button">« Go Home</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- START FOOTER -->
|
||||
<div class="footer">
|
||||
<div class="container">
|
||||
<div class="col-md-3">
|
||||
<img class="footer__logo" src="/img/mozilla.svg" />
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<h4>Additional Resources:</h4>
|
||||
<ul class="footer__list">
|
||||
<li><a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions?utm_source=hacks&utm_medium=social&utm_campaign=webextensions&utm_content=mdn_webextensions" target="_blank">Extension documentation on MDN</a></li>
|
||||
<li><a href="https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension" target="_blank">How to port a Chrome extension</a></li>
|
||||
<li><a href="https://developer.mozilla.org/en-US/Add-ons#Contact_us" target="_blank">Contact us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<h4>Find a bug?</h4>
|
||||
<a href="https://github.com/mozilla/webext-compat-tool/issues" target="_blank">Let us know on Github</a>
|
||||
</div>
|
||||
<ul class="footer__legal clearfix">
|
||||
<li><a href="https://www.mozilla.org/en-US/privacy/" target="_blank">Privacy</a></li>
|
||||
<li><a href="https://www.mozilla.org/en-US/privacy/websites/#cookies" target="_blank">Cookies</a></li>
|
||||
<li><a href="https://www.mozilla.org/en-US/about/legal/" target="_blank">Legal</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END FOOTER -->
|
||||
</body>
|
||||
</html>
|
|
@ -56,7 +56,11 @@ app.get('/test/:id', function(req, res) {
|
|||
return fs.readFile(path.join(__dirname, 'run.html'));
|
||||
})
|
||||
.then(res.end.bind(res))
|
||||
.catch(e => res.end(e));
|
||||
.catch(e => {
|
||||
fs.readFile(path.join(__dirname, '404.html'))
|
||||
.then(res.end.bind(res))
|
||||
.catch(e => res.end(e));
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/status/:id', function (req, res) {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -18,7 +18,7 @@ button,
|
|||
padding: spacing(1) spacing(3);
|
||||
border: 2px solid transparent;
|
||||
background: $green;
|
||||
transition: all $base-time $base-ease;
|
||||
transition: background $base-time $base-ease;
|
||||
text-decoration: none;
|
||||
color: $white;
|
||||
|
||||
|
@ -28,6 +28,7 @@ button,
|
|||
background: darken($green, 5%);
|
||||
text-decoration: none;
|
||||
outline: 0;
|
||||
color: $white;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче