Skip to content

Commit

Permalink
Merge pull request #1 from WISVCH/Old-2022-code
Browse files Browse the repository at this point in the history
Old 2022 code into main
  • Loading branch information
sajochems authored Oct 9, 2023
2 parents 3947698 + 64127d7 commit 67c937d
Show file tree
Hide file tree
Showing 81 changed files with 1,734 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
charset = utf-8

[*.{yml,yaml}]
indent_size = 2
34 changes: 34 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker
on:
push:
schedule:
- cron: "42 2 2 * *"
workflow_dispatch:
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/wisvch/hackdelft-2024
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/main' }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
yarn.lock
dist
.parcel-cache
node_modules
yarn-error.log
*.report.html
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Start the builder container.
FROM satantime/puppeteer-node AS builder
WORKDIR /src

# Instal Dependencies.
COPY ./package.json .
RUN yarn

# Copy source files and build.
COPY ./static ./static
COPY ./data ./data
COPY ./src ./src
RUN yarn build

# Start the NGINX container.
FROM wisvch/nginx
COPY --from=builder /src/dist /srv
50 changes: 50 additions & 0 deletions data/faq.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"question": "Who can attend?",
"answer": "Any current university student can attend HackDelft."
},
{
"question": "How can I sign up for HackDelft?",
"answer": "Unfortunately we are completely sold out! Use the button on top of the page to sign up for the waiting list."
},
{
"question": "What languages can I use during the event?",
"answer": "You can use any language or tool you want during the event!"
},
{
"question": "What is the maximum group size?",
"answer": "There is a limit of four participants per group. Do you have more friends? You can join in multiple groups! Don't know who joins you yet? You can form your groups later, or even at the event itself."
},
{
"question": "What if I've never been to a hackathon before?",
"answer": "HackDelft is a very beginner friendly hackathon, so that is no issue! At the start of the hackathon we will explain how the weekend works, after which you can start hacking with your team."
},
{
"question": "Can I still participate if I am not a programmer?",
"answer": "Yes! We have some challenges specifically designed for you. These challenges don't require a lot of programming experience, and are more focused on mathematics."
},
{
"question": "Can I start working on my submission before the event begins?",
"answer": "No, this is not allowed. The challenges will also not be announced before the event starts."
},
{
"question": "How much will it cost to attend HackDelft?",
"answer": "The price has been set at 1,- for the entire weekend. In return you can hack away all weekend, get three meals, and much more!"
},
{
"question": "What do I need to bring to the event?",
"answer": "You will have to bring your laptop, some chargers, and an air mattress with sleeping bag if you intent to sleep. Some hygiene items will also be appreciated by other hackers."
},
{
"question": "What will the Covid-19 measures look like at the event?",
"answer": "We fill follow the recommendations of the Dutch government with regards to Covid-19. Currently there are no restrictions in place, but we will keep a close eye on any changes as the event approaches."
},
{
"question": "Do you provide any travel reimbursement?",
"answer": "Unfortunately, we do not provide any travel reimbursement. We hope to see you at the event regardless!"
},
{
"question": "My question is not in here!",
"answer": "Send us an email at `[email protected]`, and we will be happy to help you out!"
}
]
24 changes: 24 additions & 0 deletions data/photos.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Create an array with all photos.
// This is required as the bundler (currently) cannot currently read the contents of the photo folder
export const photosMap: URL[] = [
new URL("/static/photos/YAW01116.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01127.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01268.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01272.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01275.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01280.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01287.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01289.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01296.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01298.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01349.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01399.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01429.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01437.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01448.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01449.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01454.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01640.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01727.jpg?as=webp&width=1200", import.meta.url),
new URL("/static/photos/YAW01760.jpg?as=webp&width=1200", import.meta.url),
];
70 changes: 70 additions & 0 deletions data/sponsors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[
{
"type": "organisation",
"title": "Organisation",
"items": [
{
"logoKey": "ch",
"url": "https://wisv.ch/",
"title": "W.I.S.V. Christiaan Huygens"
},
{
"logoKey": "xtudelft",
"url": "https://www.tudelft.nl/en/x/",
"title": "X TU Delft"
}
]
},
{
"type": "primary",
"title": "Primary",
"items": [
{
"logoKey": "cgi",
"url": "https://www.cgi.com/en",
"title": "CGI"
},
{
"logoKey": "ind",
"url": "https://ind.nl/over-ind/werken-bij-de-IND/Paginas/default.aspx",
"title": "Immigratie- en Naturalisatiedienst"
}
]
},
{
"type": "secondary",
"title": "Supporting",
"items": [
{
"logoKey": "ded",
"url": "https://www.dutchenergydrink.nl/",
"title": "Dutch Energy Drink"
},
{
"logoKey": "elastic",
"url": "https://www.elastic.co/",
"title": "Elastic"
},
{
"logoKey": "koro",
"url": "https://koro-handels-gmbh.jobs.personio.de/",
"title": "KoRo"
},
{
"logoKey": "bit",
"url": "https://wearebit.com/join-us/",
"title": "Bit"
},
{
"logoKey": "bwl",
"url": "https://www.biteswelove.nl/",
"title": "Bites We Love"
},
{
"logoKey": "kleine",
"url": "https://www.dekleineconsultant.nl/",
"title": "De Kleine Consultant"
}
]
}
]
26 changes: 26 additions & 0 deletions data/sponsors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Create an object, mapping the logo key to the URL out of the bundler.
// This is required as the bundler (currently) cannot currently read the images from the JSON URL's directly.
export const sponsorLogoMap: { [key: string]: URL } = {
ch: new URL("/static/sponsors/ch.png?as=webp&width=200", import.meta.url),
xtudelft: new URL(
"/static/sponsors/xtudelft.png?as=webp&width=200",
import.meta.url
),
cgi: new URL("/static/sponsors/cgi.png?as=webp&width=200", import.meta.url),
elastic: new URL(
"/static/sponsors/elastic.png?as=webp&width=200",
import.meta.url
),
ded: new URL("/static/sponsors/ded.png?as=webp&width=200", import.meta.url),
koro: new URL(
"/static/sponsors/koro.png?as=webp&width=200",
import.meta.url
),
bit: new URL("/static/sponsors/bit.png?as=webp&width=200", import.meta.url),
bwl: new URL("/static/sponsors/bwl.png?as=webp&width=200", import.meta.url),
ind: new URL("/static/sponsors/ind.png?as=webp&width=200", import.meta.url),
kleine: new URL(
"/static/sponsors/kleine.png?as=webp&width=200",
import.meta.url
),
};
71 changes: 71 additions & 0 deletions data/timeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"saturday": [
{
"time": "12:00",
"name": "Walk-in",
"description": "We will welcome you in hall X1 of TU Delft X! You then have a bit of time to get settled in before the hacking starts."
},
{
"time": "13:00",
"name": "Opening Presentation",
"description": "Here you will finally be introduced to the challenges, and get other important information about the event. If you don't have a team yet, you can form it here."
},
{
"time": "14:00",
"name": "Start Hacking!",
"description": "After the challenges have been divided you can now get started on your project. We are excited to see what you will come up with!"
},
{
"time": "± 17:00",
"name": "Workshop - Elastic",
"description": "In this workshop Elastic will give an introduction to their platform, and how you can use it for your project."
},
{
"time": "18:30 - 20:00",
"name": "Dinner",
"description": ""
}
],
"sunday": [
{
"time": "7:00",
"name": "Morning Gymnastics",
"description": "Get a fresh start of the day with Cas and Berend"
},
{
"time": "8:00 - 10:00",
"name": "Breakfast",
"description": ""
},
{
"time": "± 10:00",
"name": "Workshop - Bit",
"description": "Our supporting partner Bit has a talk prepared!"
},
{
"time": "± 12:00",
"name": "Pitch Workshop",
"description": "De Kleine Consultant will come and prepare you for your pitch at 14:00!"
},
{
"time": "12:30 - 14:30",
"name": "Lunch",
"description": ""
},
{
"time": "14:00",
"name": "Hacking Ends",
"description": "It has been 24 hours since we started! Now it's time to pitch your project to the jury."
},
{
"time": "14:30",
"name": "Networking Drinks",
"description": "Talk to your fellow hackers at the drinks after the hacking has ended."
},
{
"time": "± 16:00",
"name": "Award Ceremony",
"description": "We have a lot of prizes to award here, maybe to you?"
}
]
}
37 changes: 37 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "hackdelft-2024",
"version": "0.1.0",
"description": "HackDelft informational website for the 23/24 edition",
"repository": "[email protected]:WISVCH/hackdelft-2024.git",
"author": "Scott Jochems",
"browserslist": "> 0.5%, last 2 versions, not dead",
"license": "MIT",
"private": true,
"type": "module",
"scripts": {
"start": "parcel -p 8000 ./src/index.html",
"build": "yarn clear-cache && parcel build ./src/index.html --reporter parcel-reporter-prerender && yarn fix-prerender",
"serve": "yarn build && http-server ./dist -p 8000 -g -b",
"clear-cache": "rm -rf dist .parcel-cache parcel-bundle-reports",
"fix-prerender": "sed -i 's/http:\\/\\/localhost:8000\\//\\//g' dist/index.html",
"lighthouse": "lighthouse http://localhost:8000 --view"
},
"dependencies": {
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"preact": "^10.18.1"
},
"devDependencies": {
"@parcel/packager-raw-url": "2.9.3",
"@parcel/transformer-sass": "^2.9.3",
"@parcel/transformer-webmanifest": "^2.9.3",
"http-server": "^14.1.1",
"lighthouse": "^11.1.0",
"parcel": "^2.9.3",
"parcel-reporter-prerender": "^2.0.0",
"sharp": "^0.31.1"
},
"@parcel/transformer-css": {
"cssModules": true
}
}
34 changes: 34 additions & 0 deletions src/.github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docker
on:
push:
schedule:
- cron: "42 2 2 * *"
workflow_dispatch:
jobs:
buildDockerImage:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/wisvch/hackdelft-2022
tags: type=sha, prefix={{date 'YYYYMMDD'}}-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: ${{ github.ref == 'refs/heads/main' }}
Loading

0 comments on commit 67c937d

Please sign in to comment.