Commit Graph

91 Commits

Author SHA1 Message Date
Jared He 16616fe691 Merge branch 'feat/events-year' into feat/events-term 2021-08-18 10:42:40 -05:00
Jared He 50c2f08769 Simplify types
continuous-integration/drone/push Build is passing Details
2021-08-18 10:42:10 -05:00
Jared He 66ca814a9f Update names 2021-08-18 10:40:38 -05:00
Jared He e0c446b747 Merge branch 'feat/events-year' into feat/events-term 2021-08-18 10:37:51 -05:00
Jared He 29f2c3208c Fix build error
continuous-integration/drone/push Build is passing Details
2021-08-18 10:07:11 -05:00
Jared He 6f429d20bf Add events
continuous-integration/drone/push Build is passing Details
2021-08-18 09:57:00 -05:00
Jared He 10449e921e Remove events
continuous-integration/drone/push Build is failing Details
2021-08-18 09:54:11 -05:00
Jared He 408275e8cf Remove temp page
continuous-integration/drone/push Build is passing Details
2021-08-17 16:33:06 -05:00
Jared He 5dd258ec86 Merge branch 'main' into feat/events-year
continuous-integration/drone/push Build is passing Details
2021-08-17 16:26:36 -05:00
Jared He b342e979c0 Add event files 2021-08-17 16:13:31 -05:00
Aditya Thakral 8b9389885c Add helper functions for news archive (#145) + Add /news/archive and /news/[year]/[term] pages (#146)
continuous-integration/drone/push Build is passing Details
Closes #138

Reviewed-on: #145
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-17 15:22:19 -04:00
Jared He 405b7e5ca0 Add events 2021-08-17 14:03:34 -05:00
Jared He 64fbabf204 Add helper functions for fetching events (#115)
continuous-integration/drone/push Build is passing Details
helper functions for [year] and [year]/[term] only

closes #110

Co-authored-by: Jared He <66887902+jaredjhe@users.noreply.github.com>
Reviewed-on: #115
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: j285he <j285he@localhost>
Co-committed-by: j285he <j285he@localhost>
2021-08-17 14:58:06 -04:00
Jared He 2798efc221 Function renaming
continuous-integration/drone/push Build is failing Details
2021-08-17 13:53:45 -05:00
Jared He 7afb956009 Merge branch 'feat/events-lib' into feat/events-year 2021-08-17 13:53:09 -05:00
Jared He fecd3bf3e0 Rename functions
continuous-integration/drone/push Build is passing Details
2021-08-17 13:52:29 -05:00
Jared He 40d37c4aea Fix lint problems
continuous-integration/drone/push Build is failing Details
2021-08-17 13:50:32 -05:00
Jared He b32fd53d95 Remove unneeded dirent conversion
continuous-integration/drone/push Build is passing Details
2021-08-16 22:56:14 -05:00
Jared He 057c2c2a03 Merge branch 'feat/events-lib' of https://git.csclub.uwaterloo.ca/www/www-new into feat/events-lib
continuous-integration/drone/push Build is passing Details
2021-08-16 22:52:58 -05:00
Jared He 0792eb18b2 Add sorting 2021-08-16 22:52:14 -05:00
Jared He 3a697c09c0 Add sorting
continuous-integration/drone/push Build is passing Details
2021-08-16 22:44:28 -05:00
Jared He cbbd5d4ad5 add order 2021-08-16 22:43:02 -05:00
l42luo 2ced987f42 Mobile Mini Event Card (#97)
continuous-integration/drone/push Build is passing Details
Closes #38

Currently short description is still visible when card is closed

Co-authored-by: Linna Luo <linnaluo18@gmail.com>
Reviewed-on: #97
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: l42luo <l42luo@localhost>
Co-committed-by: l42luo <l42luo@localhost>
2021-08-16 20:23:41 -04:00
Jared He c4a8ccf68d Initial file structure 2021-08-16 18:51:00 -05:00
Jared He d237621d14 ESLint fixes
continuous-integration/drone/push Build is passing Details
2021-08-16 18:40:17 -05:00
Jared He 590b2554c0 Fixes for dirents
continuous-integration/drone/push Build is failing Details
2021-08-16 16:02:46 -05:00
Aditya Thakral 1f8fd0f408 Change mathsoc link to pdf (#148)
continuous-integration/drone/push Build is passing Details
Fixes #40

Reviewed-on: #148
Reviewed-by: n3parikh <n3parikh@localhost>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-16 14:33:22 -04:00
Aditya Thakral cca37b7e77 Add node ^16 to package.json (#150)
continuous-integration/drone/push Build is passing Details
So that renovate uses npm v7 and not npm v6. Node 14 comes with npm v6,
but node 16 comes with npm v7.

Reviewed-on: #150
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-13 19:20:08 -04:00
Aditya Thakral 34f851dea0 Add the 'Dependencies' label to all renovatebot PRs (#147)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #147
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-13 05:34:19 -04:00
Aditya Thakral 470a70d6b4 Use eslint-plugin-import to bring some order to the mess (#132)
continuous-integration/drone/push Build is passing Details
Fixes #130

Reviewed-on: #132
Reviewed-by: dora <d43su@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-13 04:16:37 -04:00
Aditya Thakral 2031935ce4 Enforce npm v7 and node 14+ (#127)
continuous-integration/drone/push Build is passing Details
## All renovate PRs will use npm v7

Up until now, renovate was using npm v6 to generate PRs for dependency updates. Because the lockfile format changed from v6 to v7, there was a very big diff in the what deps we're installing. Enforcing npm v7 in package.json makes renovate use npm v7 as well.

## Added npm v7 and node 14+ restrictions to package.json

This should print out a warning if the user is not using those versions of node and npm.

## CI is upgraded to node 16

The `node:14` image bundles npm v6, and is the current LTS, but `node:16` will be LTS soon (October 2021) and bundles in npm v7. So we might as well move our CI to node 16. Right now, CI is installing deps with npm v6, and things can potentially go wrong with that.

## Enabled the dependency dashboard for renovatebot

This should create an issue that acts as a dashboard for tracking all renovatebot PRs.

Reviewed-on: #127
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-08 18:14:09 -04:00
Aditya Thakral af8c750c0c Change CSS variable names + create a themer (#109)
continuous-integration/drone/push Build is passing Details
Try it out at https://csclub.uwaterloo.ca/~a3thakra/website-demo/themer/

- Themes persist across website reloads
- Individual color reset buttons
- Reset all colors button

Reviewed-on: #109
Reviewed-by: n3parikh <n3parikh@localhost>
Reviewed-by: b38peng <b38peng@uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-03 19:37:02 -04:00
Neil Parikh b281572116 Script to deploy site to your CSC website (#99)
continuous-integration/drone/push Build is passing Details
Co-authored-by: Neil Parikh <n3parikh@csclub.uwaterloo.ca>
Reviewed-on: #99
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: n3parikh <n3parikh@localhost>
Co-committed-by: n3parikh <n3parikh@localhost>
2021-08-03 19:17:08 -04:00
Jared He c39b0036ad Correct Dirents
continuous-integration/drone/push Build is passing Details
2021-08-02 21:36:06 -05:00
Jared He 4239131512 Change event file names 2021-08-02 21:17:36 -05:00
Jared He f7e878d3f8 change to .md 2021-08-02 20:01:36 -05:00
Jared He 9f7d40b426 Merge branch 'main' into feat/events-lib
continuous-integration/drone/push Build is passing Details
2021-08-02 20:33:40 -04:00
Renovate Bot c4c0be9861 Update dependency eslint to v7.32.0 (#121)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | devDependencies | minor | [`7.31.0` -> `7.32.0`](https://renovatebot.com/diffs/npm/eslint/7.31.0/7.32.0) |

⚠️ Release Notes retrieval for this PR were skipped because no github.com credentials were available.
If you are using the hosted GitLab app, please follow [this guide](https://docs.renovatebot.com/install-gitlab-app/#configuring-a-token-for-githubcom-hosted-release-notes). If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/self-hosting.md#githubcom-token-for-release-notes) instead.

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Reviewed-on: #121
Co-authored-by: Renovate Bot <no-reply@csclub.uwaterloo.ca>
Co-committed-by: Renovate Bot <no-reply@csclub.uwaterloo.ca>
2021-08-02 16:00:23 -04:00
Aditya Thakral 6d5de0ff7e Upgrade Next, React, TypeScript (#91)
continuous-integration/drone/push Build is passing Details
closes #41

# Steps for reviewing

1. `git checkout adi-upgrade-deps`
1. `git clean -xfd`
1. `npm i`
1. `npm run dev`
1. make sure everything looks normal

Reviewed-on: #91
Reviewed-by: n3parikh <n3parikh@localhost>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-08-01 17:54:25 -04:00
Aditya Thakral 1fb308327f TechTalk Card + mini tech card (#71)
continuous-integration/drone/push Build is passing Details
fixes #35 and #34
- extra padding below poster image

Co-authored-by: catherine-w <37776108+catherine-w@users.noreply.github.com>
Co-authored-by: c29wan <c29wan@localhost>
Reviewed-on: #71
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-29 16:56:47 -04:00
Jared He bfcbf5c687 Fix type error
continuous-integration/drone/push Build is passing Details
2021-07-27 19:33:53 -05:00
Jared He b733acd156 Add lib file
continuous-integration/drone/push Build is passing Details
2021-07-27 15:45:19 -05:00
Amy Wang 6a64013e5c Home Page UI (#88)
continuous-integration/drone/push Build is passing Details
Desktop and Mobile versions of the home page UI.

Closes #4 (we can create new issues for the remaining tasks)

Co-authored-by: Amy <minds10@hotmail.com>
Reviewed-on: #88
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: Amy <a258wang@csclub.uwaterloo.ca>
Co-committed-by: Amy <a258wang@csclub.uwaterloo.ca>
2021-07-27 02:13:34 -04:00
Renovate Bot 507f9806c3 Configure Renovate (#100)
continuous-integration/drone/push Build is passing Details
Welcome to [Renovate](https://github.com/renovatebot/renovate)! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.

Closes #92

---
### Detected Package Files

 * `.drone.yml` (droneci)
 * `package.json` (npm)

### What to Expect

With your current configuration, Renovate will create 7 Pull Requests:

<details>
<summary>Update dependency react to v17.0.2</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/react-17.x`
  - Merge into: `main`
  - Upgrade [react](https://github.com/facebook/react) to `17.0.2`

</details>

<details>
<summary>Update dependency react-dom to v17.0.2</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/react-dom-17.x`
  - Merge into: `main`
  - Upgrade [react-dom](https://github.com/facebook/react) to `17.0.2`

</details>

<details>
<summary>Update dependency @&#8203;next/mdx to v11</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/next-mdx-11.x`
  - Merge into: `main`
  - Upgrade [@next/mdx](https://github.com/vercel/next.js) to `^11.0.0`

</details>

<details>
<summary>Update dependency next to v11</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/next-11.x`
  - Merge into: `main`
  - Upgrade [next](https://github.com/vercel/next.js) to `^11.0.0`

</details>

<details>
<summary>Update dependency remark to v13</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/remark-13.x`
  - Merge into: `main`
  - Upgrade [remark](https://github.com/remarkjs/remark) to `^13.0.0`

</details>

<details>
<summary>Update dependency remark-html to v13</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/remark-html-13.x`
  - Merge into: `main`
  - Upgrade [remark-html](https://github.com/remarkjs/remark-html) to `^13.0.0`

</details>

<details>
<summary>Update node Docker tag to v16</summary>

  - Schedule: ["at any time"]
  - Branch name: `renovate/node-16.x`
  - Merge into: `main`
  - Upgrade [node](https://github.com/nodejs/node) to `16`
  - Upgrade [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped) to `^16.0.0`

</details>

---

 Got questions? Check out Renovate's [Docs](https://docs.renovatebot.com/), particularly the Getting Started section.
If you need any further assistance then you can also [request help here](https://github.com/renovatebot/renovate/discussions).

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: Renovate Bot <no-reply@csclub.uwaterloo.ca>
Reviewed-on: #100
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: Renovate Bot <syscom+renovate@csclub.uwaterloo.ca>
Co-committed-by: Renovate Bot <syscom+renovate@csclub.uwaterloo.ca>
2021-07-27 02:11:07 -04:00
Aditya Thakral 1ff1c7f78d Use ConnectWithUs and EmailSignup components on the /about page (#93)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #93
Reviewed-by: Amy <a258wang@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-27 02:06:37 -04:00
Aditya Thakral ed3c3939e5 Standardize h1, h2, h3, h4, p margins (#90)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #90
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-25 10:59:40 -04:00
Aditya Thakral 360d9e4b6f Get Involved Page! (#76)
continuous-integration/drone/push Build is passing Details
closes #13 and #24

- added the `<EmailSignup>` and `<ConnectWithUs>` components!
- adds the Get Involved Page

Co-authored-by: dora <d43su@uwaterloo.ca>
Co-authored-by: dora <d43su@csclub.uwaterloo.ca>
Reviewed-on: #76
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-22 14:42:38 -04:00
Aditya Thakral f670247ec5 About Us page (#70)
continuous-integration/drone/push Build is passing Details
Fixes #7

Co-authored-by: Linna Luo <linnaluo18@gmail.com>
Reviewed-on: #70
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-18 03:37:48 -04:00
Aditya Thakral 44621b2daf Add next-mdx-remote (#82)
continuous-integration/drone/push Build is passing Details
Closes #80

# Example

```ts
// lib/events.ts

import matter from "gray-matter";
import { serialize } from "next-mdx-remote/serialize";

export async function getEvent() {
  // you should use the "fs" nodejs api here
  const fileAfterReading = `
---
title: A title
online: false
location: MC
---

## Alt Tab

Wooohooo
  `.trim();

  const { content, data } = matter(fileAfterReading);
  const serialized = await serialize(content, { scope: data });

  return { serialized, data };
}
```

```tsx
// your-page.tsx

import { GetStaticProps } from "next";
import { MDXRemote } from "next-mdx-remote";
import React from "react";
import { getEvent } from "lib/events";

export default function MyPage(props) {
  return (
    <>
      <div>
        {...other stuff}
      </div>
      <MDXRemote {...props.serialized} />
    </>
  );
}

export const getStaticProps: GetStaticProps = async () => {
  const { serialized, data } = await getEvent();

  return {
    props: {
      serialized,
      data,
    },
  };
};

```

Reviewed-on: #82
Reviewed-by: n3parikh <n3parikh@localhost>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-11 16:07:55 -04:00
Aditya Thakral b8a7957beb Mobile Navbar (#75)
continuous-integration/drone/push Build is passing Details
The mobile navbar is done (finally!), except for a swipe gesture to close the navbar.

Closes #30 and #2

Co-authored-by: Amy
Reviewed-on: #75
Reviewed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-authored-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
Co-committed-by: Aditya Thakral <a3thakra@csclub.uwaterloo.ca>
2021-07-07 18:13:39 -04:00