tweaked some visuals in site

This commit is contained in:
Sean Clarke 2020-01-11 11:59:33 -05:00
parent e655b222e8
commit 4c28ef12b5
4 changed files with 32 additions and 17 deletions

View File

@ -54,7 +54,7 @@ module.exports = {
if(err) throw err; if(err) throw err;
Site.findAllById(uniqueSites, function(err, uniqueSiteVisits){ Site.findAllById(uniqueSites, function(err, uniqueSiteVisits){
if(err) throw err; if(err) throw err;
res.render('site-listing', { title: "UniqueSiteVisits", sites: uniqueSiteVisits }); res.render('site-listing', { title: "Sites Visited", sites: uniqueSiteVisits });
}); });
}); });
} }

View File

@ -46,7 +46,7 @@ a {
display: inline; display: inline;
} }
h2 { h1, h2.visits {
color: var(--neon-blue); color: var(--neon-blue);
} }
@ -68,6 +68,16 @@ span.num {
color: var(--neon-purple) color: var(--neon-purple)
} }
#title, #sub-title, #footer { #title, #sub-title, #footer, h2.visits {
text-align: center; text-align: center;
} }
h1#title {
margin-bottom: 8px;
}
#sub-title h2, #sub-title h5 {
color: white;
margin: 0px;
padding: 0px;
}

View File

@ -6,13 +6,15 @@ block content
h2= "Sites: " + sites.length h2= "Sites: " + sites.length
each site in sites each site in sites
h3 #[a(href="/sites/" + site.slug) #{site.site}] div(class="listing")
//- Commmand list of all the states h3(class="site") #[a(class="remaining" href="/sites/" + site.slug) #{site.site}]
h5 //- Commmand list of all the states
- var states = site.states.split(',') h5(class="state")
- for (var i = 0; i < states.length; i++) - var states = site.states.split(',')
| #{states[i]} - for (var i = 0; i < states.length; i++)
if (i + 1 < states.length) | #{states[i]}
| , if (i + 1 < states.length)
| ,
include footer.pug include footer.pug

View File

@ -2,20 +2,23 @@ extends layout
block content block content
h1(id="title")= site.site h1(id="title")= site.site
h3(id="sub-title")= "Date Inscribed: " + site.date_inscribed div(id="sub-title")
img(src= site.img_url alt= site.site) h2= site.date_inscribed
h4= "Located: " + site.latitude + " " + site.longitude h5= site.latitude + " " + site.longitude
h5= site.category
//- img(src= site.img_url alt= site.site)
h5= site.category
.content .content
p #{site.description} p #{site.description}
if visits if visits
h2= "Visits" h2(class="visits")= "Visits"
each visit in visits each visit in visits
p #{visit.date}: #{visit.img} at the site: #{visit.site_id} p #{visit.date}: #{visit.img} at the site: #{visit.site_id}
else else
h2= "This site has yet to be visited. Soon... " h2(class="visits")= "This site has yet to be visited. Soon... "
include footer.pug include footer.pug