Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Hack Nights - Landing page
[https://hacknights.dev/](https://hacknights.dev/)
[https://hacknights.hackersatupc.org](https://hacknights.hackersatupc.org)

## How to change the content?
There is a [hackNights.js](https://github.com/hackupc/hack-nights-landing/blob/master/hackNights.js) file in the root that contains all the data that can be edited.
There is a [hackNights.js](https://github.com/hackupc/hack-nights-landing/blob/master/hackNights.js) file in the root that contains all the data that can be edited.

## How to deploy?
Push your changes to the master and GitHub Pages will update the page automatically. 🧙
16 changes: 8 additions & 8 deletions hackNights.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ var hackNights = {
schedule: undefined,
done: false,
next: false,
},
},
events: [
{
date: "2025-02-21 21:00",
name: "Episodi I (2025)",
theme: { emoji: "🎨", name: "UX/UI 101" },
applyUrl: "https://hackersatupc.typeform.com/ht-2025-ep-1",
date: "2026-02-27 21:00",
name: "Episodi I (2026)",
theme: { emoji: "🤖", name: "Estudiar en temps de IA" },
applyUrl: "https://hackersatupc.typeform.com/hacknights2026",
schedule: [
{ hour: "21:00", name: "Registre" },
{ hour: "21:15", name: "Cerimònia d'obertura" },
{ hour: "21:30", name: "Workshop: UX/UI Introduction." },
{ hour: "21:30", name: "Workshop: AI tools for university and school." },
{ hour: "00:00", name: "Midnight Snack" },
{ hour: "05:00", name: "Cerimònia de clausura" },
],
Expand All @@ -43,7 +43,7 @@ hackNights.events.sort(compare);

let now = new Date();

// set the next event
// set the next event
hackNights.nextEvent = hackNights.events.reduce((event, next) => {
let date = new Date(event.date);
let dateNext = new Date(next.date);
Expand All @@ -52,7 +52,7 @@ hackNights.nextEvent = hackNights.events.reduce((event, next) => {
if(date > now && date < dateNext) return event;
else return next;
}, hackNights.events[0]);
hackNights.nextEvent.next = true;
hackNights.nextEvent.next = true;

// set done and next attribute
for (const event of hackNights.events) {
Expand Down