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
6 changes: 6 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Node.js & TypeScript",
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
"postCreateCommand": "sudo apt update && curl -1sLf 'https://dl.cloudsmith.io/public/evilmartians/lefthook/setup.deb.sh' | sudo -E bash && sudo apt install lefthook && npm install -g pnpm && lefthook install",
"postStartCommand": "pnpm install"
}
27 changes: 2 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
Programming/

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.pnpm-store

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env

.envrc
.direnv
flake.nix
flake.lock
.devcontainer
.pnpm-store
yarn-error.log*
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,16 @@
# AgroBot Website

This is the Agrobot team website. The website was developed with **React**, **Tailwind CSS**, **ThreeJS**, and **GSAP**.

Website will be deployed [here](https://ubcagrobot.github.io/AgroBotWebsite/)

# Prerequisites

- `NodeJS` 20+
- `pnpm`

# Installation

To setup the project make sure that you have `npm` installed. To get started, you can do the following commands to run the website after cloning it

1. `pnpm install` to install dependencies
2. `pnpm run start` to deploy website on local machine
- `pnpm install` to install dependencies
- `pnpm run start` to deploy website on local machine

After this the website should be deployed on `http://localhost:3000` where you can view the website

# Project Commands

Once the environment is setup you can use some of the following tools to make working on the project easier

1. `pnpm run build` to compile to website
2. `pnpm run lint` to lint the project
3. `pnpm run pretty` to use prettier to format the website

# Contributing

To contribute to the project, you can follow this guideline

1. Create a branch for your feature
2. Add your changes to this new branch
3. Create a Pull Request on this branch
4. If the PR passes the Github Actions and is approved you can merge it to main

## Layout guide:

These rules should be defied or else the site will look like a word doc. Use these as a general guide.

Values in red, tailwind styles in white
![image](public/LayoutGuide.png)

![image](public/MobileLayoutGuide.png)
- `pnpm run build` to compile to website
8 changes: 8 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pre-commit:
commands:
prettier:
run: npx prettier . --write
stage_fixed: true
lint:
run: npx eslint . --fix
stage_fixed: true
Binary file removed public/LayoutGuide.png
Binary file not shown.
Binary file removed public/MobileLayoutGuide.png
Binary file not shown.
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

11 changes: 3 additions & 8 deletions src/components/recruitment/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,9 @@ function Timeline() {
if (today > end_day || today < start_day) {
return (
<p className="text-[32px] font-medium pt-8">
Applications for the team are now officially open! Apply using the
following{' '}
<a
href="https://docs.google.com/forms/d/e/1FAIpQLSfTsSp2DBLQ9jJ0jRU6AFzYBqIYsVRzayUlXa3zDIgrEtlQJQ/viewform?usp=header"
className="underline"
>
Google Forms Link.
</a>{' '}
Applications for the team are now closed, stay tuned for updates in
early January!
<br />
Questions? Send us an email at{' '}
<a href="mailto:ubcagrobot@gmail.com" className="underline">
ubcagrobot@gmail.com
Expand Down