From e2d19a281a7649597b6940cfd1f60c3d213ba3d0 Mon Sep 17 00:00:00 2001
From: j285he
Date: Fri, 9 Sep 2022 17:01:34 -0400
Subject: [PATCH 2/6] Add Textbox Component (#45)
Closes #39.
Padding will look correct when !46 is merged in.
https://j285he-textbox-component-csc-class-profile-staging-snedadah.k8s.csclub.cloud
Co-authored-by: Jared He <66887902+jaredjhe@users.noreply.github.com>
Reviewed-on: https://git.csclub.uwaterloo.ca/www/cs-2022-class-profile/pulls/45
Reviewed-by: Amy
Reviewed-by: Shahan Neda
---
components/CenterWrapper.module.css | 7 +++++++
components/CenterWrapper.tsx | 11 ++++++++++
pages/playground.tsx | 32 +++++++++++++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 components/CenterWrapper.module.css
create mode 100644 components/CenterWrapper.tsx
diff --git a/components/CenterWrapper.module.css b/components/CenterWrapper.module.css
new file mode 100644
index 0000000..6370ab3
--- /dev/null
+++ b/components/CenterWrapper.module.css
@@ -0,0 +1,7 @@
+.textbox {
+ width: 80%;
+ padding: calc(80rem / 16);
+ background-color: var(--secondary-background);
+ border-radius: calc(20rem / 16);
+ margin: 0 auto;
+}
diff --git a/components/CenterWrapper.tsx b/components/CenterWrapper.tsx
new file mode 100644
index 0000000..377bb14
--- /dev/null
+++ b/components/CenterWrapper.tsx
@@ -0,0 +1,11 @@
+import React, { ReactNode } from "react";
+
+import styles from "./CenterWrapper.module.css";
+
+export interface TextboxProps {
+ children: ReactNode;
+}
+
+export function CenterWrapper({ children }: TextboxProps) {
+ return {children};
+}
diff --git a/pages/playground.tsx b/pages/playground.tsx
index 426da06..d7320bb 100644
--- a/pages/playground.tsx
+++ b/pages/playground.tsx
@@ -13,6 +13,7 @@ import React from "react";
import { PieChart } from "@/components/PieChart";
import { QuotationCarousel } from "@/components/QuotationCarousel";
+import { CenterWrapper } from "../components/CenterWrapper";
import { ColorPalette } from "../components/ColorPalette";
import { WordCloud } from "../components/WordCloud";
@@ -73,6 +74,37 @@ export default function Home() {
value: word.value,
}))}
/>
+
+ {""}
+
+
+
Preface
+
+ The CS Class Profile consists of data relevant to CS, CFM, and CS/BBA
+ students. These were combined with the knowledge that students in
+ these programs tend to have similar experiences, as many of the same
+ CS required courses are shared. In the standard co-op offering, CS and
+ CFM take 4 years and 2 semesters to complete, while CS/BBA can take up
+ to a full 5 years.
+
+
+ Computer Science (and the others) is known to be a very prestigious
+ program, and is very well known in Canada as well as across the world.
+ For prospective students or anyone who is interested in learning more
+ about what the students are like, this CS Class Profile will attempt
+ to answer some of your questions, and you may even learn a thing or
+ two you didn’t expect!
+
+
+ The survey questions were approved by the Institutional Analysis &
+ Planning, where all University of Waterloo stakeholders that are
+ interested in conducting a non-academic research survey involving a
+ large portion of the UWaterloo population are reviewed and approved.
+ The entirety of the survey creation and data processing was done by
+ the UW Computer Science Club, so please check us out if you enjoy what
+ you see!
+
+
{""}
From 3cb5780964cc0f3821847ad34c8e7330684854cd Mon Sep 17 00:00:00 2001
From: j285he
Date: Mon, 12 Sep 2022 10:08:01 -0400
Subject: [PATCH 3/6] Standardize font sizes (#46)
Closes #33.
There were many more font sizes in the Figma, but as a best design practice, I chose the four most common.
Staging:
https://j285he-standardize-font-sizes-csc-class-prof-snedadah.k8s.csclub.cloud/
Co-authored-by: Jared He <66887902+jaredjhe@users.noreply.github.com>
Co-authored-by: shahanneda
Reviewed-on: https://git.csclub.uwaterloo.ca/www/cs-2022-class-profile/pulls/46
Reviewed-by: Amy
---
pages/_app.css | 44 +++++++++++++++++++++++++++++++++++---------
pages/playground.tsx | 10 ++++++++++
2 files changed, 45 insertions(+), 9 deletions(-)
diff --git a/pages/_app.css b/pages/_app.css
index 8c5d52f..70294e9 100644
--- a/pages/_app.css
+++ b/pages/_app.css
@@ -69,22 +69,52 @@ body {
color: var(--primary-text);
font-family: "Inconsolata", monospace;
margin: 0;
+
+ /* Font styling for body */
+ font-size: calc(18rem / 16);
+ font-weight: 500;
+}
+
+/* Page titles (e.g. Demographics) */
+h1 {
+ font-size: calc(48rem / 16);
+ font-weight: 700;
+ color: var(--primary-accent-light);
+ margin-top: calc(32rem / 16);
+ margin-bottom: calc(16rem / 16);
}
-h1,
+/* Major section headings (e.g. About the Programs) */
h2 {
+ font-size: calc(36rem / 16);
+ font-weight: 700;
color: var(--primary-heading);
+ margin-top: calc(32rem / 16);
+ margin-bottom: calc(16rem / 16);
}
+/* Minor section headings & questions (e.g. What Program Are You In?) */
h3 {
+ font-size: calc(32rem / 16);
+ font-weight: 700;
color: var(--secondary-heading);
- font-size: calc(45rem / 16);
+ margin-top: calc(24rem / 16);
+ margin-bottom: calc(16rem / 16);
}
-h4,
-h5,
-h6 {
+/* Titles within paragraphs (e.g. About the Programs -> Computer Science)*/
+h4 {
+ font-size: calc(24rem / 16);
+ font-weight: 700;
color: var(--secondary-heading);
+ margin-top: calc(24rem / 16);
+ margin-bottom: calc(8rem / 16);
+}
+
+p {
+ color: var(--primary-text);
+ margin-top: 1rem;
+ margin-bottom: 1rem;
}
a {
@@ -96,10 +126,6 @@ a:hover {
color: var(--link-hover);
}
-p {
- font-size: calc(28rem / 16);
-}
-
@media only screen and (prefers-color-scheme: dark) {
body {
--primary-background: var(--dark--primary-background);
diff --git a/pages/playground.tsx b/pages/playground.tsx
index d7320bb..459f5f8 100644
--- a/pages/playground.tsx
+++ b/pages/playground.tsx
@@ -31,6 +31,16 @@ export default function Home() {
+ Offered from the Faculty of Mathematics as most commonly a co-op
+ program, students usually attend 8 school and 6 co-op terms in their
+ degree. However, CS is very flexible, as many students historically
+ have dropped co-ops, taking terms off, and messing with their
+ schedule to fit their desires.
+
+
Computing and Financial Management
+
+ Computing and Financial Management (CFM) combines the core CS
+ courses with electives from areas such as accounting, economics, and
+ financial management. This is a joint offer from the Faculty of
+ Mathematics and the School of Accounting and Finance, and has the
+ same schedule (and flexibility) as CS.
+
+
CS/BBA
+
+ Joint with Wilfrid Laurier University, the Business Administration
+ and Computer Science Double Degree (CS/BBA) is an exclusive offering
+ that allows students to get experience in CS as well as many
+ subfields of business. There are 10 school terms and either 4 or 5
+ co-op terms in the usual schedule, so it’s a bit more work than CS
+ or CFM.
+
+ );
+}
diff --git a/data/mocks.ts b/data/mocks.ts
index 7d0252b..95c9d40 100644
--- a/data/mocks.ts
+++ b/data/mocks.ts
@@ -80,6 +80,33 @@ export const moreMockCategoricalData = [
{ key: "Dart", value: 2.21 },
];
+export const mockTimelineData = [
+ {
+ time: "Fall 2020",
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
+ },
+ {
+ time: "Winter 2021",
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad",
+ },
+ {
+ time: "Spring 2021",
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor i",
+ },
+ {
+ time: "Fall 2021",
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proid",
+ },
+ {
+ time: "Winter 2022",
+ text: "Lorem ipsum dolor sit amet, consectetur adipi",
+ },
+ {
+ time: "Spring 2022",
+ text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut en",
+ },
+];
+
export const mockBoxPlotData = [
{
category: "1A",
diff --git a/pages/playground.tsx b/pages/playground.tsx
index ae354f4..3ddf484 100644
--- a/pages/playground.tsx
+++ b/pages/playground.tsx
@@ -7,12 +7,14 @@ import {
mockQuoteData,
mockQuoteDataLong,
mockPieData,
+ mockTimelineData,
} from "data/mocks";
import React from "react";
import About from "@/components/About";
import { PieChart } from "@/components/PieChart";
import { QuotationCarousel } from "@/components/QuotationCarousel";
+import { Timeline } from "@/components/Timeline";
import { CenterWrapper } from "../components/CenterWrapper";
import { ColorPalette } from "../components/ColorPalette";
@@ -25,13 +27,15 @@ export default function Home() {