This site is built with Next.js and Tailwind CSS. It is deployed to Vercel. Only Sendgrid API is used for sending emails. No CMS is used.
Have Node.js v20 set up. Enable corepack.
yarn install
Run the development server:
yarn dev
Copy the .env.example
file to .env.local
and fill in the required environment variables.
- There's an env var
NEXT_PUBLIC_APPLICATION_STATUS
(with an URL env var) that can be set to a status- right
open
will make the application form button available - any other value will make the application form unavailable
- right
- Similarly there's an env var
NEXT_PUBLIC_WORKSHOP_STATUS
(with an URL env var) that can be set to a status- right
open
will make the application form button available - any other value will make the application form unavailable
- right
- There's an env var
NEXT_PUBLIC_SHOW_PROGRAMS_TABLE
that can be set totrue
to show the programs table on the homepage- you can reach the programs table at
src/components/program-table/ProgramsTable.tsx
and change the content as needed
- you can reach the programs table at
- Some other content changes:
src/components/carousel/image-carousel-section.tsx
to change the images in the carousel, and also upload the to thepublic/carousel-images
folder
Caution
Anytime you change an env var on Vercel, please rebuild the latest deployment as the whole SPA needs to be rebuilt (static site).
- The Sendgrid API key is stored in the Vercel environment variables. It is mine (triszt4n) and I somehow set it up in the past to be able to send emails from the
[email protected]
email address. If you want to use your own, you can replace it in the Vercel environment variables.