diff --git a/src/hmndata/jams.go b/src/hmndata/jams.go index 0e9ad80..90a7216 100644 --- a/src/hmndata/jams.go +++ b/src/hmndata/jams.go @@ -88,6 +88,16 @@ var HMBoston2023 = Event{ EndTime: time.Date(2023, 8, 4, 0, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), } +var HMS2024 = Event{ + StartTime: time.Date(2024, 11, 20, 0, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), + EndTime: time.Date(2024, 11, 22, 0, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), +} + +var HMBoston2024 = Event{ + StartTime: time.Date(2024, 8, 9, 0, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), + EndTime: time.Date(2024, 8, 10, 0, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), +} + var AllJams = []Jam{WRJ2021, WRJ2022, VJ2023, WRJ2023, LJ2024} func CurrentJam() *Jam { diff --git a/src/templates/src/landing.html b/src/templates/src/landing.html index 82cc0cc..dcc0411 100644 --- a/src/templates/src/landing.html +++ b/src/templates/src/landing.html @@ -112,6 +112,116 @@ */}} +
+ + +
+

Handmade cities

+
+ Boston - Aug 9-10 2024. + {{ if gt .HMBostonDaysUntilEnd 0 }} + {{ if eq .HMBostonDaysUntilStart 0 }} + Happening now. + {{ else if eq .HMBostonDaysUntilStart 1 }} + Starting tomorrow. + {{ else if lt .HMBostonDaysUntilStart 31 }} + In {{ .HMBostonDaysUntilStart }} days. + {{ end }} + {{ end }} +
+
+ Seattle - Nov 20-22 2024. + {{ if gt .HMSDaysUntilEnd 0 }} + {{ if eq .HMSDaysUntilStart 0 }} + Happening now. + {{ else if eq .HMSDaysUntilStart 1 }} + Starting tomorrow. + {{ else if lt .HMSDaysUntilStart 31 }} + In {{ .HMSDaysUntilStart }} days. + {{ end }} + {{ end }} +
+ +
+
+
+ Tickets available now +
{{ svg "chevron-right" }}
+
+
+
+
- -
-

Handmade cities

-
- Boston - Aug 3-4 2023. - {{ if gt .HMBostonDaysUntilEnd 0 }} - {{ if eq .HMBostonDaysUntilStart 0 }} - Happening now. - {{ else if eq .HMBostonDaysUntilStart 1 }} - Starting tomorrow. - {{ else if lt .HMBostonDaysUntilStart 31 }} - In {{ .HMBostonDaysUntilStart }} days. - {{ end }} - {{ end }} -
-
- Seattle - Nov 15-17 2023. - {{ if gt .HMSDaysUntilEnd 0 }} - {{ if eq .HMSDaysUntilStart 0 }} - Happening now. - {{ else if eq .HMSDaysUntilStart 1 }} - Starting tomorrow. - {{ else if lt .HMSDaysUntilStart 31 }} - In {{ .HMSDaysUntilStart }} days. - {{ end }} - {{ end }} -
- -
-
-
- Tickets available now -
{{ svg "chevron-right" }}
-
-
-
-*/}} - {{ if not .User }}