diff --git a/ticker-serve/src/index.rs b/ticker-serve/src/index.rs
index 8f8d9d7..85c85ae 100644
--- a/ticker-serve/src/index.rs
+++ b/ticker-serve/src/index.rs
@@ -1,3 +1,4 @@
+use std::convert::TryInto;
use gotham::{
helpers::http::response::create_response,
hyper::{Body, Response},
@@ -6,7 +7,7 @@ use gotham::{
use http::status::StatusCode;
use mime::TEXT_HTML;
-use typed_html::{html, text, dom::DOMTree};
+use typed_html::{html, text, dom::DOMTree, types::{Class, SpacedSet}};
use diesel::prelude::*;
use chrono::{offset::Local, Datelike, NaiveDate};
@@ -73,47 +74,52 @@ fn render_index(app_state: &AppState) -> String {
- { days.iter().map(|day| html!(
-
-
-
- { text!("{}", day.date.day()) }
-
-
- { text!("{}", &config.months[day.date.month0() as usize]) }
-
-
-
- { text!("{}", &config.weekdays[day.date.weekday().num_days_from_monday() as usize]) }
-
-
+ { days.iter().map(|day| {
+ let mut day_class: SpacedSet
= ["date"].try_into().unwrap();
+ day_class.add(&format!("wd{}", day.date.weekday().num_days_from_monday())[..]);
+ html!(
+
+
+
+
+ { text!("{}", day.date.day()) }
+
+
+ { text!("{}", &config.months[day.date.month0() as usize]) }
+
+
+
+ { text!("{}", &config.weekdays[day.date.weekday().num_days_from_monday() as usize]) }
+
+
- { day.events.iter().map(|e| html!(
-
- { match &e.url {
- None => html!(
- { text!("{}", &e.summary) }
- ),
- Some(url) => html!(
-
- ),
- } }
+ { day.events.iter().map(|e| html!(
+
+ { match &e.url {
+ None => html!(
+ { text!("{}", &e.summary) }
+ ),
+ Some(url) => html!(
+
+ ),
+ } }
-
- { text!("{}", &e.dtstart.format("%H:%S")) }
-
- { e.location.as_ref().map(|location| html!(
-
- { text!("{}", location) }
-
- )) }
-
- )) }
- )) }
+
+ { text!("{}", &e.dtstart.format("%H:%S")) }
+
+ { e.location.as_ref().map(|location| html!(
+
+ { text!("{}", location) }
+
+ )) }
+
+ )) }
+ )
+ }) }