diff --git a/public/js/carousel.js b/public/js/carousel.js index 4daaa464..08f98663 100644 --- a/public/js/carousel.js +++ b/public/js/carousel.js @@ -6,7 +6,7 @@ function initCarousel(container, options = {}) { const buttonContainer = container.querySelector('.carousel-buttons'); let current = 0; - function activateCarousel(i) { + function activateCarousel(i, silent = false) { const items = document.querySelectorAll('.carousel-item'); for (const item of items) { item.classList.remove('active'); @@ -29,7 +29,9 @@ function initCarousel(container, options = {}) { current = i; - onChange(current); + if (!silent) { + onChange(current); + } } function activateNext() { @@ -67,7 +69,7 @@ function initCarousel(container, options = {}) { buttonContainer.appendChild(button); } - activateCarousel(0); + activateCarousel(0, true); return { next: activateNext, diff --git a/src/config/types.go b/src/config/types.go index 2235476f..c67a8961 100644 --- a/src/config/types.go +++ b/src/config/types.go @@ -75,12 +75,11 @@ type DiscordConfig struct { OAuthClientID string OAuthClientSecret string - GuildID string - MemberRoleID string - ShowcaseChannelID string - LibraryChannelID string - StreamsChannelID string - JamShowcaseChannelID string + GuildID string + MemberRoleID string + ShowcaseChannelID string + LibraryChannelID string + StreamsChannelID string } type TwitchConfig struct { diff --git a/src/hmndata/jams.go b/src/hmndata/jams.go index 6ed88228..96a7f1bd 100644 --- a/src/hmndata/jams.go +++ b/src/hmndata/jams.go @@ -8,6 +8,7 @@ import ( "git.handmade.network/hmn/hmn/src/db" "git.handmade.network/hmn/hmn/src/models" "git.handmade.network/hmn/hmn/src/oops" + "git.handmade.network/hmn/hmn/src/utils" ) type Jam struct { @@ -27,8 +28,8 @@ var WRJ2021 = Jam{ var WRJ2022 = Jam{ Name: "Wheel Reinvention Jam 2022", Slug: "WRJ2022", - StartTime: time.Date(2022, 8, 15, 0, 0, 0, 0, time.UTC), - EndTime: time.Date(2022, 8, 22, 0, 0, 0, 0, time.UTC), + StartTime: time.Date(2022, 8, 15, 8, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), + EndTime: time.Date(2022, 8, 22, 8, 0, 0, 0, utils.Must1(time.LoadLocation("America/Los_Angeles"))), } var AllJams = []Jam{WRJ2021, WRJ2022} diff --git a/src/templates/src/wheeljam_2022_index.html b/src/templates/src/wheeljam_2022_index.html index 49d6a1b7..ad25c520 100644 --- a/src/templates/src/wheeljam_2022_index.html +++ b/src/templates/src/wheeljam_2022_index.html @@ -156,6 +156,11 @@ text-decoration: underline; } + .emphasized { + padding-left: 1rem; + border-left: 0.3rem solid white; + } + .flex-fair { flex-basis: 1px; flex-grow: 1; @@ -268,12 +273,23 @@ {{ template "header.html" . }} + {{ $discordInviteURL := "https://discord.gg/zFt8Rf59?event=1004511448107602031" }} +

Wheel Reinvention Jam

August 15 - 21, 2O22

A one-week jam to change the status quo. + {{ if gt .DaysUntilEnd 0 }} + {{ if eq .DaysUntilStart 0 }} + Happening now. + {{ else if eq .DaysUntilStart 1 }} + Starting tomorrow. + {{ else }} + In {{ .DaysUntilStart }} days. + {{ end }} + {{ end }}
{{ if gt .DaysUntilStart 0 }} @@ -288,7 +304,7 @@ {{ end }} {{ end }} {{ end }} - Join the Discord + Join the Discord
@@ -311,14 +327,14 @@
{{ if gt .DaysUntilEnd 0 }} -

Recent activity

+

Recent updates

- These screenshots and videos were shared in #jam-showcase on our Discord. Join us! + These screenshots and videos were shared by jam participants in #project-showcase on our Discord. Join us and share what you're working on!

{{ else }} -

Showcase

+

Community showcase

- Post-jam text + These screenshots and videos were shared by jam participants in #project-showcase on our Discord during the jam. Join us and chat about your favorites!

{{ end }}
@@ -329,111 +345,141 @@
{{ end }} -
-
-

Last year's entries

-

- We had many incredible entries last year. Here are a few of our favorites: -

+ {{ if gt .DaysUntilStart 0 }} +
+
+

Last year's entries

+

+ We had many incredible entries last year. Here are a few of our favorites: +

- + {{ end }}
-

Details / Rules

+

How to participate

The jam takes place from Monday, August 15 through Sunday, August 21. Here's how you can participate:

-

Pick a project and form a team.

-

- Find a project idea that excites you! Whether there's a project you've always wanted to start, or you're looking for inspiration, join the conversation over on our Wishlist, brainstorm project ideas, and find a team. -

+
+

Pick a project and form a team.

+

+ Find a project idea that excites you! Join the conversation over on our Wishlist, brainstorm ideas in #jam on Discord, or just invite some friends to jam with you. +

+
-

Jam.

-

- Create a personal Handmade Network project to track your work. Then, build your program over the course of the week. Sharing your work in progress is highly recommended - you can share WIP content in #project-showcase on Discord, or directly from your project page. -

+
+

Jam.

+

+ {{ if eq .DaysUntilStart 0 }} + Create a Handmade Network project + {{ else }} + After the jam starts, create a Handmade Network project + {{ end }} + to track your work. Then, build your program! Share your work in progress in #project-showcase on Discord, or directly from your project page. +

+
-

Submit your work!

-

- Your Handmade Network project acts as your submission. Fill out the project description, making sure to explain the goals of the project and how it improves on what came before. Also consider posting an update on the project with video of your program in action! -

+
+

Submit your work!

+

+ Your Handmade Network project is your submission. Fill out the project description, making sure to explain the goals of the project and how it improves on what came before. Also consider posting an update with video of your program in action! +

+ {{ if and (eq .DaysUntilStart 0) (gt .DaysUntilEnd 0) }} +

+ Submissions close . +

+ {{ else if eq .DaysUntilEnd 0 }} +

+ Submissions are now closed. +

+ {{ end }} +
+
+
-

Rules

+
+
+

Rules

+
    +
  • Any tech is allowed, but we encourage you to use only use what you really need. If you want some lightweight templates to get you started, check out our app templates.
  • +
  • You may work solo or in a team. (But we encourage you to work with a team!)
  • +
  • Submit your work by the end of the day on August 21.
  • +
+

There are no explicit winners, but we will be selecting a few of our favorite projects to highlight in a recap stream following the jam.

+ +

Submission rules

+

+ {{ with .SubmittedProjectUrl }} + Your Handmade Network project + {{ else }} + Your Handmade Network project + {{ end }} + is your submission. We will be looking at the project's description and any extra updates you share toward the end of the jam. +

    -
  • Any tech is allowed, but in the spirit of the Handmade ethos, we encourage you to use only use what you really need. If you want some lightweight templates to get you started, check out our app templates.
  • -
  • Working with a team is strongly encouraged, but working solo is allowed.
  • -

    Submit your work by the end of August 21 in your local timezone.

    -
      -
    • Update the description of your Handmade Network project. The project is your submission.
    • {{/* TODO: dynamically link to their project? */}} -
    • Explain the project's goals and how it improves on what came before. Also share some closing thoughts - did it turn out how you hoped? What did you learn? If you continue the project, what will you do differently?
    • -
    • -

      - Your description must contain multiple screenshots of your software in action. You should ideally also share a project update with a demo video. -

      -

      - We recommend Mārtiņš Možeiko's wcap for recording desktop video on Windows. On Mac, just press ⌘-Option-5 and record a video, or use QuickTime. -

      -
    • -
    • If at all possible, please provide a way for people to either build or download your program.
    • -
    + Explain the project's goals and how it improves on what came before. Also share some closing thoughts - did it turn out how you hoped? What did you learn? If you continue the project, what will you do differently?
  • -
  • There are no explicit winners, but we will be selecting a few of our favorite projects to highlight in a recap stream following the jam.
  • +
  • + Your description must contain multiple screenshots of your software in action. You should ideally also share a project update with a demo video. We recommend Mārtiņš Možeiko's wcap for recording desktop video on Windows. On Mac, just press ⌘-Option-5 and record a video, or use QuickTime. +
  • +
  • If at all possible, please provide a way for people to either build or download your program.
-
+

Make it by hand.

@@ -570,23 +616,52 @@ + + diff --git a/src/website/jam.go b/src/website/jam.go index 647ac16d..194ce038 100644 --- a/src/website/jam.go +++ b/src/website/jam.go @@ -32,6 +32,7 @@ func JamIndex2022(c *RequestContext) ResponseData { type JamPageData struct { templates.BaseData DaysUntilStart, DaysUntilEnd int + StartTimeUnix, EndTimeUnix int64 SubmittedProjectUrl string ProjectSubmissionUrl string ShowcaseFeedUrl string @@ -91,6 +92,8 @@ func JamIndex2022(c *RequestContext) ResponseData { BaseData: baseData, DaysUntilStart: daysUntilStart, DaysUntilEnd: daysUntilEnd, + StartTimeUnix: hmndata.WRJ2022.StartTime.Unix(), + EndTimeUnix: hmndata.WRJ2022.EndTime.Unix(), ProjectSubmissionUrl: hmnurl.BuildProjectNewJam(), SubmittedProjectUrl: submittedProjectUrl, ShowcaseFeedUrl: hmnurl.BuildJamFeed2022(),