This repository contains the code required to build the website of HackDelft 2021 / 2021. The website is completely static, and does not even require JavaScript to view for the visitor.
To build the website, you are required to have NodeJS and Yarn.
To get started, open a console and run yarn
to install the dependencies.
When this succeeds (it can take a minute), you can run yarn build
to build the application.
This creates a /dist
folder, which contains the output files.
Host this on a web server and you'll have yourself a nice little hacked website!
If you want to view the website, the easiest way to do so is to install the dependencies and run yarn serve
.
This builds the website and starts a http server at localhost:8000.
To start the development server, you can just run yarn start
.
This creates a http server at localhost:8000, containing the development version of the site.
It also attaches a HMR server, for automatic updating when files change.
The architecture of this website is designed so the data can be updated by changing some JSON files. This means that frontend development experience is not required.
This data can be found in /data
.
The logo's can be found in /static
.
To use the logo's on the website, add the image to /data/sponsors.ts
.
Follow the excisting format, afterwards the image key can be used in the /data/sponsors.json
file by the 'logoKey' property.
This is because of a limitation of the bundler, and cannot be fixed right now.