add searchbar and status tracker
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lynne Megido 2020-03-01 01:32:38 +10:00
parent 2147f0e269
commit fbe5d156cd
Signed by: lynnesbian
GPG key ID: F0A184B5213D9F90
5 changed files with 62 additions and 9 deletions

3
_includes/search.html Normal file
View file

@ -0,0 +1,3 @@
<form id='searchbar'>
<input type='search'><button>Search</button>
</form>

View file

@ -0,0 +1,5 @@
<ul id='statuses'>
{%- for item in site.data.status %}
<li><a class='status checking' href='{{ item.link }}'>{{ item.name }}</a></li>
{%- endfor %}
</ul>

View file

@ -2,9 +2,11 @@
layout: default layout: default
title: New Tab title: New Tab
--- ---
{% include search.html %}
<div id='boxes'> <div id='boxes'>
<div class='box'> <div class='box'>
<h2>Status</h2> <h2>Status</h2>
{% include status.html %}
</div> </div>
<div class='box'> <div class='box'>

View file

@ -41,6 +41,27 @@ a {
text-decoration: none; text-decoration: none;
} }
#searchbar {
text-align: center;
margin: 0 auto 30px;
width: max-content;
min-width: 500px;
max-width: 90%;
display: flex;
}
#searchbar input {
border: thin #ccc solid;
height: 100%;
padding: 8px 0;
flex-grow: 1;
border-radius: 5px 0 0 5px;
}
#searchbar button {
background: #0001;
border: none;
border-radius: 0 5px 5px 0;
}
#boxes { #boxes {
text-align: center; text-align: center;
} }
@ -50,7 +71,7 @@ a {
min-height: 300px; min-height: 300px;
min-width: 300px; min-width: 300px;
border-radius: 3px; border-radius: 3px;
box-shadow: 0 0 5px black; box-shadow: 0 0 20px #99999922;
display: inline-block; display: inline-block;
background: transparent; background: transparent;
transition: 0.2s all linear; transition: 0.2s all linear;
@ -72,6 +93,28 @@ a {
background: radial-gradient(at 0% 0%, #99999911, 80%, #99999944); background: radial-gradient(at 0% 0%, #99999911, 80%, #99999944);
} }
.status::after {
margin-left: 5px;
color: white;
font-size: 0.6em;
text-transform: uppercase;
padding: 0 3px;
border-radius: 5px;
vertical-align: text-bottom;
}
.status.checking::after {
background: orange;
content: "checking";
}
.status.ok::after {
content: "ok";
background: #5c5;
}
.status.down::after {
content: "down";
background: red;
}
footer { footer {
text-align: center; text-align: center;
color: grey; color: grey;