This is the source code that powers the unihack.net website. This website is running on the Next.js framework, using both TypeScript and SASS.
You will need:
- Node 22.x or above
Because we use Yarn PnP, you may need to follow the following instructions to develop on this website.
You should be able to install all the dependencies by running the following command:
yarn install
You can run this locally in development mode by running the following command:
yarn dev
To use the environment variables you will need the vercel CLI:
yarn install vercel
You can pull the environment variables by running the following command and following the prompt:
vercel env pull
Development mode includes hot-code reloading, error reporting and other functionality from Next.js. You can read more here
To view the website, visit http://localhost:3000
.
You can also run it locally in "production mode" - which allows you to see what the site looks like when deployed before you merge. You can do this by:
yarn build
yarn start
You can read more about production mode here
components
: Primitive React components used on our websitecontent
: Content and JSON blobs (e.g. judge biographies, event information)layouts
: Core layoutspages
: Next.js pagespublic
: Next.js location to serve static files (e.g. images, robots.txt)sections
: Page sections - takes in content and componentsstyles
: Global styles and SASS stylesheet variables
This website uses next.js image component to render images. Please use instead of
when declaring images. More information here: https://nextjs.org/docs/api-reference/next/image
Thanks goes to these wonderful people (emoji key):
Anthony Roberts 💻 🎨 🔣 |
Terence Huynh 💻 🎨 🔣 |
Josh Parnham 💻 |
sameersyedhd 💻 |
Erfan 💻 |
GhinaY 💻 |
Daniel Sykes-Turner 💻 |
Hugo 💻 |
sph-huynh 💻 |
Nick Ang 💻 |
Austin (Thang Pham) 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Our emojis come from Twitter's Twemoji library. \n Copyright 2020 Twitter, Inc and other contributors. \n Code licensed under the MIT License: http://opensource.org/licenses/MIT \n Graphics licensed under CC-BY 4.0: https://creativecommons.org/licenses/by/4.0/