From d2ceafe6dae24dcab5418f62b7beb755e4bd281e Mon Sep 17 00:00:00 2001 From: mjw Date: Mon, 2 Nov 2026 17:11:39 -0500 Subject: [PATCH 1/2] revamped faq section w/ biinary rain bg compatible with all views (mobile, desktop) --- .../event/jinja2/event/faq_styles.html | 172 ++++++++++++++++++ .../event/jinja2/event/landing.html | 138 +++++--------- .../event/static/event/js/landing.js | 77 ++++++++ 3 files changed, 290 insertions(+), 97 deletions(-) create mode 100644 hackathon_site/event/jinja2/event/faq_styles.html diff --git a/hackathon_site/event/jinja2/event/faq_styles.html b/hackathon_site/event/jinja2/event/faq_styles.html new file mode 100644 index 0000000..52613bb --- /dev/null +++ b/hackathon_site/event/jinja2/event/faq_styles.html @@ -0,0 +1,172 @@ + diff --git a/hackathon_site/event/jinja2/event/landing.html b/hackathon_site/event/jinja2/event/landing.html index 33971b8..960ce7c 100644 --- a/hackathon_site/event/jinja2/event/landing.html +++ b/hackathon_site/event/jinja2/event/landing.html @@ -9,6 +9,7 @@ const registrationCloseDate = new Date("{{ localtime(registration_close_date)|strftime('%b %-d, %Y, %H:%M:%S') }}"); const eventStartDate = new Date("{{ localtime(event_start_date)|strftime('%b %-d, %Y, %H:%M:%S') }}"); +{% include "event/faq_styles.html" %} @@ -291,105 +292,48 @@




-
-
-
-

FAQ

-
-
- +
+ +

FAQ

+
+
+
+ What is a makeathon? +
A makeathon is like a hackathon but more hands-on. It involves the integration of hardware and software to build a working device that could be used in any application from gaming to solving a real life problem! As such, we require all participants to build some sort of physical device that is at the very least electrically powered or computer programmed.
+
+
+ What if I have no experience? Can I still come? +
Yes! MakeUofT is for everyone, from beginners to veterans. You will have the opportunity to learn technical skills from industry mentors. Also, if you ever get stuck on your project just ask one of the mentors!
+
+
+ Will we receive hardware for the project? +
Yes! Once you are accepted, each team will be able to select and sign out a wide range of hardware on our Hardware Signout Site hardware.makeuoft.ca. The site opens for ordering on the first day of the hackathon, you must be in a team of 2 to 4 to order from our inventory.
+
+
+ How do I apply with a team? +
You only need to fill out your individual application, receive an acceptance, and form a team with other accepted hackers. Teams are not required in advance; you're welcome to form a team with other hackers on the first day of the event! When you demo, you will provide the names of all of your team members.
+
- -
-
    - -
  • -
    - Who can apply? When is the deadline to apply? -
    -
    - - We're welcoming any students pursuing post-secondary education! Applications will open later this year. Acceptances will be internally decided on a rolling basis, so apply early to maximize your chances of getting accepted! - -
    -
  • - -
  • -
    - What size of team is allowed? -
    -
    - - Feel free to make a team with 2 to 4 members, including yourself. - -
    -
  • -
  • -
    - When can I expect to hear back? -
    -
    - - Acceptances will be sent out on a rolling basis, so apply early! - -
    -
  • -
  • -
    - Is the makeathon in-person? -
    -
    - - This year (2026), MakeUofT will be fully in person. The event will be hosted at the University of Toronto St.George Campus in Myhal Centre for Engineering Innovation and Entrepreneurship (MY). - -
    -
  • -
+
+
+ Who can apply? When is the deadline to apply? +
We're welcoming any students pursuing post-secondary education! Applications will open later this year. Acceptances will be internally decided on a rolling basis, so apply early to maximize your chances of getting accepted!
+
+
+ What size of team is allowed? +
Feel free to make a team with 2 to 4 members, including yourself.
+
+
+ When can I expect to hear back? +
Acceptances will be sent out on a rolling basis, so apply early!
+
+
+ Is the makeathon in-person? +
This year (2027), MakeUofT will be fully in person. The event will be hosted at the University of Toronto St.George Campus in Myhal Centre for Engineering Innovation and Entrepreneurship (MY).
+
-
+



@@ -493,7 +437,7 @@

Contact Us

- + diff --git a/hackathon_site/event/static/event/js/landing.js b/hackathon_site/event/static/event/js/landing.js index f9a0557..f477c64 100644 --- a/hackathon_site/event/static/event/js/landing.js +++ b/hackathon_site/event/static/event/js/landing.js @@ -127,3 +127,80 @@ function setCounter(countDownDate) { $("#day2").html(Math.floor(days / 10) % 10); $("#day3").html(days % 10); } +// Bottom-anchored binary rain field bg +(function () { + const box = document.querySelector("#faq .faq-binary"); + if (!box) return; + const columns = 72; + const rows = 29; + // Seeded randomness keeps the layout stable between page loads. + let seed = 2026; + function random() { + seed = (seed * 16807) % 2147483647; + return (seed - 1) / 2147483646; + } + const lengths = Array.from({ length: columns }, () => + Math.floor(14 + Math.pow(random(), 0.25) * (rows - 14)) + ); + const fragment = document.createDocumentFragment(); + for (let row = 0; row < rows; row++) { + for (let column = 0; column < columns; column++) { + const distance = rows - 1 - row; + const cell = document.createElement("span"); + if (column >= 48) cell.classList.add("faq-desktop-column"); + if (column >= 32) cell.classList.add("faq-wide-column"); + const probability = distance < lengths[column] + ? 0.88 - 0.25 * (distance / rows) : 0.04; + if (random() < probability) { + cell.textContent = random() < 0.5 ? "0" : "1"; + const opacity = Math.max(0.05, + 0.62 * Math.pow(1 - distance / rows, 1.4) + 0.06 + ) * (0.6 + random() * 0.6); + cell.style.setProperty("--o", opacity.toFixed(2)); + if (random() < 0.07) { + cell.classList.add("pulse"); + cell.style.setProperty("--k", Math.min(1, opacity + 0.5).toFixed(2)); + cell.style.setProperty("--t", (5 + random() * 5).toFixed(1) + "s"); + cell.style.setProperty("--d", "-" + (random() * 8).toFixed(1) + "s"); + } + } + fragment.appendChild(cell); + } + } + box.appendChild(fragment); +})(); +// Animate answer slideout cards while preserving keyboard and no-JS support. +(function () { + const reducedMotion = window.matchMedia("(prefers-reduced-motion: reduce)"); + document.querySelectorAll("#faq .faq-card").forEach(function (card) { + const summary = card.querySelector("summary"); + let animation = null; + let expanded = card.open; + summary.addEventListener("click", function (event) { + if (reducedMotion.matches || !card.animate) return; + event.preventDefault(); + // Native toggles can change the open state while reduced motion is enabled. + if (!animation) expanded = card.open; + const startHeight = card.getBoundingClientRect().height; + if (animation) { + animation.cancel(); + animation = null; + } + expanded = !expanded; + // Measure both natural states, keeping the answer rendered to slide closed. + card.open = expanded; + const endHeight = card.getBoundingClientRect().height; + card.open = true; + summary.setAttribute("aria-expanded", String(expanded)); + animation = card.animate( + { height: [startHeight + "px", endHeight + "px"] }, + { duration: 300, easing: "cubic-bezier(0.4, 0, 0.2, 1)" } + ); + animation.onfinish = function () { + card.open = expanded; + animation = null; + summary.removeAttribute("aria-expanded"); + }; + }); + }); +})(); From b2d2c7cfac0326be4c1656c251946fb245ecedbb Mon Sep 17 00:00:00 2001 From: mjw Date: Mon, 2 Nov 2026 17:16:18 -0500 Subject: [PATCH 2/2] ran prettier on landing.js --- .../event/static/event/js/landing.js | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hackathon_site/event/static/event/js/landing.js b/hackathon_site/event/static/event/js/landing.js index f477c64..9b2c497 100644 --- a/hackathon_site/event/static/event/js/landing.js +++ b/hackathon_site/event/static/event/js/landing.js @@ -149,19 +149,25 @@ function setCounter(countDownDate) { const cell = document.createElement("span"); if (column >= 48) cell.classList.add("faq-desktop-column"); if (column >= 32) cell.classList.add("faq-wide-column"); - const probability = distance < lengths[column] - ? 0.88 - 0.25 * (distance / rows) : 0.04; + const probability = + distance < lengths[column] ? 0.88 - 0.25 * (distance / rows) : 0.04; if (random() < probability) { cell.textContent = random() < 0.5 ? "0" : "1"; - const opacity = Math.max(0.05, - 0.62 * Math.pow(1 - distance / rows, 1.4) + 0.06 - ) * (0.6 + random() * 0.6); + const opacity = + Math.max(0.05, 0.62 * Math.pow(1 - distance / rows, 1.4) + 0.06) * + (0.6 + random() * 0.6); cell.style.setProperty("--o", opacity.toFixed(2)); if (random() < 0.07) { cell.classList.add("pulse"); - cell.style.setProperty("--k", Math.min(1, opacity + 0.5).toFixed(2)); + cell.style.setProperty( + "--k", + Math.min(1, opacity + 0.5).toFixed(2) + ); cell.style.setProperty("--t", (5 + random() * 5).toFixed(1) + "s"); - cell.style.setProperty("--d", "-" + (random() * 8).toFixed(1) + "s"); + cell.style.setProperty( + "--d", + "-" + (random() * 8).toFixed(1) + "s" + ); } } fragment.appendChild(cell);