add 1 day to event to keep highlighted

main
Ryan Moon 2023-11-28 23:07:09 -05:00
parent cf4fa260e4
commit 2ef03c558b
3 changed files with 38 additions and 8 deletions

View File

@ -59,10 +59,29 @@
.guide {
padding: 2rem .5rem;
.hero h3 {
font-size: 2.25rem;
line-height: 2.5rem;
margin: 1rem 0;
.hero {
margin: 0 0 2rem 0;
h3 {
font-size: 2rem;
line-height: 2.5rem;
margin: 1rem 0;
}
}
.content {
h2 a {
color: $f-color;
}
h4 a {
font-size: 1.5rem;
}
p {
font-size: 1.15rem;
}
}
}
}

View File

@ -59,10 +59,21 @@
.terms {
padding: 1rem .5rem;
p,
ul li {
font-size: .95rem;
font-size: 1.15rem;
padding: .4rem 0;
}
h2 a {
color: $f-color;
}
h4 a {
font-size: 1.5rem;
}
p {
font-size: 1.15rem;
}
}
}

View File

@ -6,11 +6,11 @@
.limit(3)
.find()
import { format, isPast, addMinutes, parseISO } from "date-fns";
import { format, isPast, addMinutes, addDays, parseISO } from "date-fns";
for (let i = 0; i < events.length; i++) {
let date = parseISO(events[i].date)
events[i].past = isPast(date)
events[i].past = isPast(addDays(date, 1))
events[i].date = format(addMinutes(date, 240), 'EEE, MMM d')
}