Skip to content

Commit

Permalink
[misc] error page updates
Browse files Browse the repository at this point in the history
  • Loading branch information
king-millez committed Mar 14, 2021
1 parent ee2a29a commit ad43a45
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
Binary file added legistream/static/legistream/aud/the-kevin.mp3
Binary file not shown.
Binary file added legistream/static/legistream/img/the-kevin.webp
Binary file not shown.
11 changes: 9 additions & 2 deletions legistream/statuses/placeholder.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
1613349821,
1615681917,
[
{
"parl": "ACT",
Expand All @@ -10,7 +10,7 @@
{
"parl": "Federal",
"url": "/federal",
"stat": true
"stat": false
},
{
"parl": "NSW",
Expand All @@ -27,6 +27,13 @@
"url": "/qld",
"stat": false
},
{
"parl": "Tasmania",
"lower_stat": false,
"upper_stat": false,
"url": "/tas",
"stat": false
},
{
"parl": "Victoria",
"url": "/vic",
Expand Down
10 changes: 10 additions & 0 deletions legistream/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,21 @@
<title>Where's Legistream?</title>
</head>
<body>
<div id="container_aud"></div>
<style>
html {
background-image: url("{% static 'legistream/img/bg-demoparl.webp' %}");
}
</style>
<script type="text/javascript">
if(window.location.pathname == '/krudd')
{
_html = document.getElementsByTagName('html')[0];
_html.style.background = `url("{% static 'legistream/img/the-kevin.webp' %}") repeat`;
_html.style.backgroundSize="100% 100%";
document.getElementById('container_aud').innerHTML = `<audio autoplay><source src="{% static 'legistream/aud/the-kevin.mp3' %}"></audio>`
}
</script>
<h1 id="logo-text">ERROR <p class="highlight">404</p></h1>
<div id="content">
<h3 class="main-point">Page not found...</h3>
Expand Down
27 changes: 27 additions & 0 deletions legistream/templates/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% load static %}

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="Mate, there's nothing here.">
<link rel="stylesheet" href="{% static 'legistream/css/home.css' %}">
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>
<link rel="stylesheet" href="{% static '404.css' %}">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Internal Server Error</title>
</head>
<body>
<style>
html {
background-image: url("{% static 'legistream/img/bg-demoparl.webp' %}");
}
</style>
<h1 id="logo-text">ERROR <p class="highlight">500</p></h1>
<div id="content">
<h3 class="main-point">Something has gone very wrong.</h3>
<p class="main-point">Please let us know by <strong><a class="main-point" target="_blank" href="https://github.com/OpenGovAus/legistream-site/issues/new/choose">opening an Issue on GitHub</a></strong>.</p>
</div>
<a class="dropdown-link" href="/">Home</a>
</body>
</html>

0 comments on commit ad43a45

Please sign in to comment.