changing colours for visits/remaining

This commit is contained in:
Sean Clarke 2020-01-08 12:49:34 -05:00
parent fe53e623a9
commit 65a6759874
2 changed files with 18 additions and 5 deletions

View File

@ -18,15 +18,24 @@ html {
body { body {
background-color: black; background-color: black;
color: white;
} }
a { a {
color: var(--neon-green); color: var(--neon-yellow);
text-decoration: none; text-decoration: none;
/* font-weight: bold; */ /* font-weight: bold; */
} }
.remaining {
color: var(--neon-red);
}
.visits {
color: var(--neon-green);
}
.site { .site {
margin: 8px; margin: 8px;
display: inline; display: inline;
@ -37,7 +46,12 @@ a {
display: inline; display: inline;
} }
h2 {
color: var(--neon-blue);
}
.title h1 { .title h1 {
color: var(--neon-blue);
text-align: left; text-align: left;
padding-left: 16px; padding-left: 16px;
padding-right: 16px; padding-right: 16px;
@ -45,6 +59,7 @@ a {
} }
.title h2,h3 { .title h2,h3 {
color: white;
margin-top: 8px; margin-top: 8px;
margin-left: 36px; margin-left: 36px;
} }

View File

@ -11,15 +11,13 @@ block content
- var num = (visits.length/totalSites) * 100 - var num = (visits.length/totalSites) * 100
- var percent = num.toFixed(2); - var percent = num.toFixed(2);
h2= percent + "% Complete" h2= percent + "% Complete"
- var sitesVisited = []; - var sitesVisited = [];
h2= "Visits" h2= "Visits"
each visit in visits each visit in visits
- sitesVisited.push(visit.id); - sitesVisited.push(visit.id);
div(class="listing") div(class="listing")
h3(class="site") #[a(href="/sites/" + visit.slug) #{visit.site}] h3(class="site") #[a(class="visits" href="/sites/" + visit.slug) #{visit.site}]
//- Commmand list of all the states //- Commmand list of all the states
h5(class="state") h5(class="state")
- var states = visit.states.split(',') - var states = visit.states.split(',')
@ -32,7 +30,7 @@ block content
each site in sites each site in sites
if !(sitesVisited.includes(site.id)) if !(sitesVisited.includes(site.id))
div(class="listing") div(class="listing")
h3(class="site") #[a(href="/sites/" + site.slug) #{site.site}] h3(class="site") #[a(class="remaining" href="/sites/" + site.slug) #{site.site}]
//- Commmand list of all the states //- Commmand list of all the states
h5(class="state") h5(class="state")
- var states = site.states.split(',') - var states = site.states.split(',')