From ad054dd24a14fa383af3e99584f55a43bd1bb146 Mon Sep 17 00:00:00 2001 From: Ethan Davidson <31261035+EthanThatOneKid@users.noreply.github.com> Date: Thu, 19 Jan 2023 21:17:08 -0800 Subject: [PATCH] Create new page for board applications (#754) Create new page for board applications (#754) --- .../recursive-ul/recursive-ul.svelte | 16 ++ src/lib/components/recursive-ul/types.ts | 4 + src/lib/components/recursive-ul/utils.ts | 5 + src/lib/public/board/data/index.ts | 2 + src/lib/public/board/data/tiers.json | 3 + src/lib/public/links/links.json | 3 +- src/lib/server/links/data.ts | 2 + src/routes/(site)/s23positions/+page.svelte | 133 +++++++++++++++ src/routes/(site)/s23positions/data.ts | 151 ++++++++++++++++++ src/routes/(site)/s23positions/page.test.ts | 8 + .../(site)/s23positions/position-list.svelte | 13 ++ .../(site)/s23positions/position.svelte | 112 +++++++++++++ src/routes/(site)/s23positions/position.ts | 10 ++ static/global.css | 6 + 14 files changed, 467 insertions(+), 1 deletion(-) create mode 100644 src/lib/components/recursive-ul/recursive-ul.svelte create mode 100644 src/lib/components/recursive-ul/types.ts create mode 100644 src/lib/components/recursive-ul/utils.ts create mode 100644 src/routes/(site)/s23positions/+page.svelte create mode 100644 src/routes/(site)/s23positions/data.ts create mode 100644 src/routes/(site)/s23positions/page.test.ts create mode 100644 src/routes/(site)/s23positions/position-list.svelte create mode 100644 src/routes/(site)/s23positions/position.svelte create mode 100644 src/routes/(site)/s23positions/position.ts diff --git a/src/lib/components/recursive-ul/recursive-ul.svelte b/src/lib/components/recursive-ul/recursive-ul.svelte new file mode 100644 index 000000000..5eb6c71a5 --- /dev/null +++ b/src/lib/components/recursive-ul/recursive-ul.svelte @@ -0,0 +1,16 @@ + + + diff --git a/src/lib/components/recursive-ul/types.ts b/src/lib/components/recursive-ul/types.ts new file mode 100644 index 000000000..ce858b540 --- /dev/null +++ b/src/lib/components/recursive-ul/types.ts @@ -0,0 +1,4 @@ +export interface ListItem { + html: string; + children?: ListItem[]; +} diff --git a/src/lib/components/recursive-ul/utils.ts b/src/lib/components/recursive-ul/utils.ts new file mode 100644 index 000000000..5d81ddd1a --- /dev/null +++ b/src/lib/components/recursive-ul/utils.ts @@ -0,0 +1,5 @@ +import type { ListItem } from './types'; + +export function li(html: string, children?: ListItem[]): ListItem { + return { html, children }; +} diff --git a/src/lib/public/board/data/index.ts b/src/lib/public/board/data/index.ts index 27db9b7b3..26dcd8ab0 100644 --- a/src/lib/public/board/data/index.ts +++ b/src/lib/public/board/data/index.ts @@ -3,6 +3,8 @@ import OFFICERS_JSON from './officers.json'; import TIERS_JSON from './tiers.json'; import TEAMS_JSON from './teams.json'; +export { OFFICERS_JSON, TIERS_JSON, TEAMS_JSON }; + export const VISIBLE_TERMS = [Term.Fall22, Term.Spring22, Term.Fall21, Term.Spring21]; export const TIERS = { ...TIERS_JSON }; diff --git a/src/lib/public/board/data/tiers.json b/src/lib/public/board/data/tiers.json index 2c7bc44af..c50ce869b 100644 --- a/src/lib/public/board/data/tiers.json +++ b/src/lib/public/board/data/tiers.json @@ -9,6 +9,7 @@ "Special Events Officer": { "id": 7, "index": 450 }, "Event Coordinator": { "id": 8, "index": 500 }, "Marketing Leader": { "id": 9, "index": 550 }, + "Marketing Officer": { "id": 24, "index": 560 }, "Historian": { "id": 10, "index": 600 }, "Algo Leader": { "id": 11, "index": 650 }, "Algo Officer": { "id": 12, "index": 700 }, @@ -21,6 +22,8 @@ "Dev Officer": { "id": 19, "index": 1050 }, "AI Leader": { "id": 20, "index": 1100 }, "AI Officer": { "id": 21, "index": 1150 }, + "Game Dev Leader": { "id": 25, "index": 1170 }, + "Game Dev Officer": { "id": 26, "index": 1180 }, "Nodebuds Officer": { "id": 22, "index": 1200 }, "ICC Representative": { "id": 23, "index": 1250 } } diff --git a/src/lib/public/links/links.json b/src/lib/public/links/links.json index 509433024..355a4f506 100644 --- a/src/lib/public/links/links.json +++ b/src/lib/public/links/links.json @@ -34,5 +34,6 @@ "ai/projects/1": "https://docs.google.com/presentation/d/1BCYU3cTfNTffdUmiMHz8c2-A5qwna8yVPt7Fx3nzqGQ/edit?usp=sharing", "ai/projects/2": "https://colab.research.google.com/drive/1KaLN47LSfK4rAOzEOQleCX-Dy-qACZYC?usp=sharing", "roadmap": "https://github.com/users/EthanThatOneKid/projects/6", - "joblist": "/roadmap/views/10" + "joblist": "/roadmap/views/10", + "s23apply": "https://docs.google.com/forms/d/e/1FAIpQLScHHxO_LYHSyZvHozxuaSlhjY4WKU-lVsInm_cl_U88-6tbMQ/viewform" } diff --git a/src/lib/server/links/data.ts b/src/lib/server/links/data.ts index 59feed217..d29dca817 100644 --- a/src/lib/server/links/data.ts +++ b/src/lib/server/links/data.ts @@ -18,4 +18,6 @@ export const LINKS = { 'design-template': 'https://www.figma.com/file/MED3kRKmIxcoKblNTveEZZ/acmDesign-Challenge-Sheet?node-id=0%3A1', 'live-walk': 'https://www.figma.com/file/PtYSxzB8BbKh3L46dQSjf1/Live-Interaction?node-id=0%3A1', + s23apply: + 'https://docs.google.com/forms/d/e/1FAIpQLScHHxO_LYHSyZvHozxuaSlhjY4WKU-lVsInm_cl_U88-6tbMQ/viewform', } as const; diff --git a/src/routes/(site)/s23positions/+page.svelte b/src/routes/(site)/s23positions/+page.svelte new file mode 100644 index 000000000..0c22cb316 --- /dev/null +++ b/src/routes/(site)/s23positions/+page.svelte @@ -0,0 +1,133 @@ + + + + Spring 2023 board applications | ACM at CSUF + + + + + + + +

Spring 2023 board applications

+

+ Listed below are the positions that are open for the Spring 2023 semester. Please read the + descriptions carefully and apply for the position(s) that you are interested in. You may apply + for multiple positions, but you may only be selected for one. If you are selected for a + position, you will be contacted by the current board member in charge of that position. +
+
+ Last updated January 19th, 2023 +
+
+ +