added Al, events, restyled day

This commit is contained in:
Spencer Flagg 2022-06-18 11:42:18 +02:00
parent 678ee61aaf
commit d37107a271
6 changed files with 94 additions and 24 deletions

View file

@ -1,14 +1,30 @@
[ [
{
"name": "Activities in Amsterdam?",
"date": 13
},
{
"name": "Activities in Amsterdam?",
"date": 14
},
{
"name": "Activities in Amsterdam or Utrecht?",
"date": 15
},
{ {
"name": "Bachelor Party (TBD)", "name": "Bachelor Party (TBD)",
"date": 16 "date": 16
}, },
{ {
"name": "Foreigner Lunch, (TBD)", "name": "Foreigner Dinner, Echteld or Tiel?",
"date": 17 "date": 17
}, },
{ {
"name": "Wedding, Echteld", "name": "Wedding, Echteld",
"date": 18 "date": 18
},
{
"name": "Activities in Utrecht?",
"date": 19
} }
] ]

View file

@ -624,18 +624,18 @@
}, },
{ {
"date": 13, "date": 13,
"day": "u", "day": "a",
"night": "u" "night": "a"
}, },
{ {
"date": 14, "date": 14,
"day": "u", "day": "a",
"night": "u" "night": "a"
}, },
{ {
"date": 15, "date": 15,
"day": "u", "day": "a",
"night": "u" "night": "a"
}, },
{ {
"date": 16, "date": 16,
@ -699,6 +699,43 @@
} }
] ]
}, },
{
"name": "Alfonso & Linsey",
"slug": "alfonso-and-linsey",
"count": 2,
"dates": [
{
"date": 14,
"day": "a",
"night": "a"
},
{
"date": 15,
"day": "a",
"night": "a"
},
{
"date": 16,
"day": "a",
"night": "b"
},
{
"date": 17,
"day": "b",
"night": "e"
},
{
"date": 18,
"day": "e",
"night": "e"
},
{
"date": 19,
"day": "e",
"night": "d"
}
]
},
{ {
"name": "Ray & Rebecca", "name": "Ray & Rebecca",
"slug": "rayray-and-becs", "slug": "rayray-and-becs",

View file

@ -18,5 +18,13 @@
{ {
"name": "Echteld", "name": "Echteld",
"abbr": "e" "abbr": "e"
},
{
"name": "Brussels",
"abbr": "b"
},
{
"name": "Den Haag",
"abbr": "d"
} }
] ]

View file

@ -1,6 +1,6 @@
{% if guestslug == null %} {% if guestslug == null %}
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<h3>(Updated {{ updated }}: not everyone has given us complete travel schedules yet; check back later)</h3> <h3>(Updated {{ updated }}: check back later as schedules come in)</h3>
{% else %} {% else %}
<h1>{{guestname | safe}}'s Schedule</h1> <h1>{{guestname | safe}}'s Schedule</h1>
<a class="back-home" href="/">👈 back to full schedule</a> <a class="back-home" href="/">👈 back to full schedule</a>
@ -49,9 +49,12 @@
{% if guestslug == null %} {% if guestslug == null %}
<ul class="locations"> <ul class="locations">
{% for loc in locations %} {% for loc in locations %}
{% set daylen = guests | day(date,loc.abbr) | length %}
{% set nightlen = guests | night(date,loc.abbr) | length %}
{% if (daylen > 0) or (nightlen > 0) %}
<li class="location"> <li class="location">
<div>{{loc.name}}</div> <div>{{loc.name}}</div>
{% if guests | day(date,loc.abbr) | length > 0 %} {% if daylen > 0 %}
<div class="time-window"> <div class="time-window">
<a class="category day hover">{{ guests | day(date,loc.abbr) | total }}</a> <a class="category day hover">{{ guests | day(date,loc.abbr) | total }}</a>
<ul class="list"> <ul class="list">
@ -63,7 +66,7 @@
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
{% if guests | night(date,loc.abbr) | length > 0 %} {% if nightlen > 0 %}
<div> <div>
<div class="category night hover">{{ guests | night(date,loc.abbr) | total }}</div> <div class="category night hover">{{ guests | night(date,loc.abbr) | total }}</div>
<ul class="list"> <ul class="list">
@ -76,6 +79,7 @@
</div> </div>
{% endif %} {% endif %}
</li> </li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}

View file

@ -1,9 +1,11 @@
:root { :root {
font-size: 1vw; font-size: 1vw;
--dark-blue: #213563;
--teal: #098391;
} }
html { html {
background-color: #213563; background-color: var(--dark-blue);
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
} }
@ -38,7 +40,7 @@ h1 {
h3{ h3{
font-weight: 100; font-weight: 100;
color: #098391; color: var(--teal);
} }
main { main {
@ -58,7 +60,7 @@ main {
border-radius: 1rem; border-radius: 1rem;
background-color: #fff; background-color: #fff;
&:hover { &:hover {
background-color: #098391; background-color: var(--teal);
color: white; color: white;
} }
} }
@ -117,7 +119,7 @@ main {
background-color: #fff; background-color: #fff;
display: inline-block; display: inline-block;
&:hover { &:hover {
background-color: #098391; background-color: var(--teal);
color: white; color: white;
} }
} }
@ -129,7 +131,7 @@ main {
display: grid; display: grid;
margin-bottom: 5rem; margin-bottom: 5rem;
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
grid-template-rows: 3rem 15rem 15rem 15rem; grid-template-rows: 3rem 16rem 16rem 16rem;
width: 95vw; width: 95vw;
& > li { & > li {
&:nth-child(-n+7){ &:nth-child(-n+7){
@ -138,27 +140,30 @@ main {
} }
background-color: #eee; background-color: #eee;
margin: 1px; margin: 1px;
padding: 1.25rem 1rem 1rem 1rem;
position: relative; position: relative;
display: flex;
flex-direction: column;
.event{ .event{
text-transform: uppercase; text-transform: uppercase;
font-size: .8rem; display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
text-align: center; text-align: center;
padding: .15rem 0; padding: .15rem;
background-color: #098391; background-color: var(--teal);
color: white; color: white;
margin: 0 .5rem .5rem .5rem;
} }
.date { .date {
font-size: 3rem; font-size: 3rem;
font-weight: 500; font-weight: 500;
margin: .5rem 0 0 1rem;
} }
} }
.locations { .locations {
margin: 0 1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.location { .location {

View file

@ -1,7 +1,7 @@
--- ---
title: The Schedule title: The Schedule
layout: layouts/base.njk layout: layouts/base.njk
updated: June 15 updated: June 18
--- ---
{% include "components/cal.njk" %} {% include "components/cal.njk" %}