Skip to content

Commit ce2a295

Browse files
authored
Add pdf menus and food information to schedule (#126)
* Add pdf menus and food information to schedule * Add fruit to sat/sun breakfast
1 parent 4d9c18e commit ce2a295

File tree

7 files changed

+49
-18
lines changed

7 files changed

+49
-18
lines changed

content/2019/schedule.json

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"events": [
55
{
66
"time": "8:00 AM",
7-
"title": "Breakfast & Registration"
7+
"title": "Breakfast & Registration",
8+
"type": "food",
9+
"menu": "/files/2019_08_16_friday_breakfast_menu.pdf"
810
},
911
{
1012
"time": "9:00 AM",
@@ -25,7 +27,8 @@
2527
},
2628
{
2729
"time": "10:40 AM",
28-
"title": "Networking & Sponsor Mingle"
30+
"title": "Networking & Sponsor Mingle",
31+
"desc": "Snacks, fruit, and coffee will be provided."
2932
},
3033
{
3134
"tracks": [
@@ -110,7 +113,9 @@
110113
},
111114
{
112115
"time": "1:00 PM",
113-
"title": "Lunch"
116+
"title": "Lunch",
117+
"type": "food",
118+
"menu": "/files/2019_08_16_friday_lunch_menu.pdf"
114119
},
115120
{
116121
"tracks": [
@@ -173,7 +178,8 @@
173178
},
174179
{
175180
"time": "4:00 PM",
176-
"title": "Snacks & Sponsor Mingling"
181+
"title": "Snacks & Sponsor Mingling",
182+
"desc": "Snacks, fruit, and coffee will be provided."
177183
},
178184
{
179185
"tracks": [
@@ -248,7 +254,9 @@
248254
"events": [
249255
{
250256
"time": "8:00 AM",
251-
"title": "Breakfast"
257+
"title": "Breakfast",
258+
"type": "food",
259+
"desc": "Bagels (cream cheese, vegan cream cheese, jam, butter), croissants, muffins, yogurt, fruit, and granola (including gluten-free and vegan)."
252260
},
253261
{
254262
"time": "9:00 AM",
@@ -273,7 +281,8 @@
273281
},
274282
{
275283
"time": "10:20 AM",
276-
"title": "Networking & Sponsor Mingle"
284+
"title": "Networking & Sponsor Mingle",
285+
"desc": "Snacks, fruit, and coffee will be provided."
277286
},
278287
{
279288
"tracks": [
@@ -356,7 +365,9 @@
356365
},
357366
{
358367
"time": "1:00 PM",
359-
"title": "Lunch"
368+
"title": "Lunch",
369+
"type": "food",
370+
"menu": "/files/2019_08_17_saturday_lunch_menu.pdf"
360371
},
361372
{
362373
"tracks": [
@@ -417,7 +428,8 @@
417428
},
418429
{
419430
"time": "4:00 PM",
420-
"title": "Snacks & Sponsor Mingling"
431+
"title": "Snacks & Sponsor Mingling",
432+
"desc": "Snacks, fruit, and coffee will be provided."
421433
},
422434
{
423435
"tracks": [
@@ -485,7 +497,9 @@
485497
"events": [
486498
{
487499
"time": "8:00 AM",
488-
"title": "Breakfast"
500+
"title": "Breakfast",
501+
"type": "food",
502+
"desc": "Bagels (cream cheese, vegan cream cheese, jam, butter), croissants, muffins, yogurt, fruit, and granola (including gluten-free and vegan)."
489503
},
490504
{
491505
"time": "9:00 AM",
@@ -514,7 +528,8 @@
514528
},
515529
{
516530
"time": "10:40 AM",
517-
"title": "Networking & Sponsor Mingle"
531+
"title": "Networking & Sponsor Mingle",
532+
"desc": "Snacks, fruit, and coffee will be provided."
518533
},
519534
{
520535
"tracks": [
@@ -572,7 +587,9 @@
572587
},
573588
{
574589
"time": "1:00 PM",
575-
"title": "Lunch"
590+
"title": "Lunch",
591+
"type": "food",
592+
"menu": "/files/2019_08_18_sunday_lunch_menu.pdf"
576593
},
577594
{
578595
"tracks": [
@@ -642,7 +659,8 @@
642659
},
643660
{
644661
"time": "4:00 PM",
645-
"title": "Snacks & Sponsor Mingling"
662+
"title": "Snacks & Sponsor Mingling",
663+
"desc": "Snacks, fruit, and coffee will be provided."
646664
},
647665
{
648666
"time": "4:30 PM",

src/components/event/event.module.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
margin-right: 0.5em;
2929
}
3030

31-
.type {
32-
font-weight: var(--light);
33-
}
34-
3531
.grid {
3632
margin-top: 1em;
3733
}
@@ -47,3 +43,7 @@
4743
.sponsorLogo {
4844
max-width: 150px;
4945
}
46+
47+
.food {
48+
background-color: #eaf7ee;
49+
}

src/components/event/index.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const ConfEvent = ({
2828
speakers,
2929
sponsors,
3030
eventSponsors,
31+
menu,
3132
}) => {
3233
const allSpeakers = []
3334
if (additionalNames) {
@@ -45,7 +46,7 @@ const ConfEvent = ({
4546

4647
return (
4748
<>
48-
{type && <TalkType type={type} secondary />}
49+
{type && type !== 'food' && <TalkType type={type} secondary />}
4950
<div className={styles.grid}>
5051
{renderEventInfo(title, desc)}
5152
<div>
@@ -72,6 +73,16 @@ const ConfEvent = ({
7273
/>
7374
</a>
7475
))}
76+
{menu && (
77+
<a
78+
href={menu}
79+
className="link"
80+
target="_blank"
81+
rel="noopener noreferrer"
82+
>
83+
View menu (pdf)
84+
</a>
85+
)}
7586
</div>
7687
</div>
7788
</>
@@ -114,9 +125,10 @@ const Event = ({
114125
desc,
115126
type,
116127
additionalNames,
128+
menu,
117129
}) => {
118130
return (
119-
<section className={styles.event}>
131+
<section className={`${styles.event} ${styles[type]}`}>
120132
<div>
121133
<span className={styles.time}>{time}</span>
122134
{title ? (
@@ -128,6 +140,7 @@ const Event = ({
128140
speakers={speakers}
129141
sponsors={sponsors}
130142
eventSponsors={eventSponsors}
143+
menu={menu}
131144
/>
132145
) : (
133146
<TalkEvent
Binary file not shown.
60.3 KB
Binary file not shown.
67.5 KB
Binary file not shown.
58.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)