Skip to content

Commit 4e4e10b

Browse files
authored
Add program guide to schedule (#239)
1 parent c9acdda commit 4e4e10b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/program/schedule.njk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ layout: base.njk
55
---
66

77
{% from "components/flat-card.njk" import flatCard %}
8+
{% from "components/button.njk" import button %}
89

910
<div class="w-full h-auto bg-pycon-blue -mb-24 px-[6%] lg:pb-40 pb-72">
1011
<div class="pt-32 pb-8 md:pb-4 w-full">
@@ -54,9 +55,13 @@ layout: base.njk
5455
{% endfor %}
5556
</div>
5657

58+
<div class="pt-20 flex justify-center">
59+
{{ button(text="Program Guide", url=env.baseUrl ~ "program/guide/", lime_bg=true, env=env) }}
60+
</div>
61+
5762
<!-- Dynamically display Schedule Content -->
5863
{% for day in active_days %}
59-
<div id="{{ day.index }}" class="schedule-content {% if loop.first %}block{% else %}hidden{% endif %} pt-24 text-center">
64+
<div id="{{ day.index }}" class="schedule-content {% if loop.first %}block{% else %}hidden{% endif %} pt-20 text-center">
6065
{% set dayInfo = day.date | dateInfo %}
6166
<div>
6267
<div class="pb-16">

src/static/js/schedule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ document.addEventListener('DOMContentLoaded', () => {
2929
hideAllSchedules();
3030

3131
// Always show FIRST card + its content
32-
const firstCard = cards[0];
32+
const firstCard = cards[1];
3333
const firstContentId = firstCard.getAttribute('data-schedule');
3434

3535
highlight(firstCard);

0 commit comments

Comments
 (0)