diff --git a/data/miscellaneous.ts b/data/miscellaneous.ts new file mode 100644 index 0000000..c02a0e8 --- /dev/null +++ b/data/miscellaneous.ts @@ -0,0 +1,380 @@ +export const M1 = [ + { + category: "Almost every day", + value: 8, + }, + { + category: "A few times weekly", + value: 8, + }, + { + category: "A few times monthly", + value: 25, + }, + { + category: "Rarely", + value: 69, + }, +]; + +export const M2 = [ + { + category: "0", + value: 12, + }, + { + category: "1", + value: 32, + }, + { + category: "2", + value: 23, + }, + { + category: "3", + value: 13, + }, + { + category: "4", + value: 4, + }, + { + category: "5", + value: 2, + }, + { + category: "6", + value: 3, + }, + { + category: "7", + value: 3, + }, + { + category: "8", + value: 3, + }, + { + category: "9", + value: 1, + }, + { + category: "10", + value: 4, + }, +]; + +export const M3 = [ + { + category: "Computer Science!", + value: 84, + }, + { + category: "Software Engineering", + value: 6, + }, + { + category: "Psychology", + value: 2, + }, + { + category: "FARM", + value: 1, + }, + { + category: "BBA", + value: 1, + }, +]; + +export const M4 = [ + { + category: "Yes", + value: 27, + }, + { + category: "No", + value: 73, + }, +]; + +export const M5 = [ + { + category: "Yes", + value: 16, + }, + { + category: "No", + value: 84, + }, +]; + +export const M6 = [ + { + text: "Go to UofT", + value: 33, + }, + { + text: "UBC", + value: 9, + }, + { + text: "A different university...", + value: 15, + }, + { + text: "UOttawa", + value: 1, + }, + { + text: "Start a business", + value: 5, + }, + { + text: "Take a gap year and try again", + value: 8, + }, + { + text: "Learn a trade", + value: 3, + }, + { + text: "UofWindsor", + value: 3, + }, + { + text: "Start working", + value: 1, + }, + { + text: "Travel", + value: 2, + }, + { + text: "UAlberta", + value: 1, + }, + { + text: "McGill", + value: 1, + }, + { + text: "Stanford", + value: 1, + }, + { + text: "UIUC", + value: 1, + }, + { + text: "No idea", + value: 3, + }, + { + text: "Die...", + value: 3, + }, + { + text: "Teacher's College", + value: 2, + }, + { + text: "Resting and Learing", + value: 1, + }, + { + text: "Be a doctor", + value: 2, + }, + { + text: "Study biology", + value: 2, + }, +]; + +export const M7 = [ + { + text: "Communication", + value: 4, + }, + { + text: "Become more social", + value: 7, + }, + { + text: "Cooking", + value: 12, + }, + { + text: "Handling stress", + value: 3, + }, + { + text: "Dance", + value: 4, + }, + { + text: "Sing", + value: 3, + }, + { + text: "Weight Lifting", + value: 2, + }, + { + text: "Snowboard", + value: 2, + }, + { + text: "Improved Relationship", + value: 5, + }, + { + text: "Public Speaking", + value: 2, + }, + { + text: "Self-confidence", + value: 6, + }, + { + text: "Video games", + value: 5, + }, + { + text: "Grown as a Person", + value: 2, + }, + { + text: "Rock climbing", + value: 3, + }, + { + text: "Guitar", + value: 2, + }, + { + text: "Piano", + value: 2, + }, + { + text: "Tennis", + value: 2, + }, + { + text: "Fitness", + value: 2, + }, + { + text: "Psychology", + value: 1, + }, + { + text: "Responsibility", + value: 1, + }, + { + text: "Swimming", + value: 1, + }, + { + text: "Philosophy", + value: 2, + }, + { + text: "Creative writing", + value: 2, + }, + { + text: "Entrepreneurship & leadership", + value: 2, + }, + { + text: "Biking", + value: 2, + }, + { + text: "Debate", + value: 1, + }, + { + text: "Life skills", + value: 2, + }, + { + text: "Badminton", + value: 1, + }, + { + text: "Ultimate frisbe", + value: 1, + }, + { + text: "Volleyball", + value: 1, + }, + { + text: "Body building", + value: 3, + }, + { + text: "Mindfullness & Mature", + value: 4, + }, + { + text: "Self regulation", + value: 1, + }, + { + text: "Religion & Culture", + value: 2, + }, + { + text: "Languages", + value: 3, + }, + { + text: "Become a Youtuber", + value: 1, + }, + { + text: "Draw gooderer", + value: 1, + }, + { + text: "Photography", + value: 1, + }, + { + text: "Teaching", + value: 1, + }, + { + text: "Dating", + value: 2, + }, + { + text: "Have Sex", + value: 1, + }, + { + text: "Board games", + value: 2, + }, + { + text: "Music", + value: 2, + }, + { + text: "Improved fashion", + value: 1, + }, + { + text: "Cheerleading", + value: 1, + }, + { + text: "Figure skating", + value: 1, + }, +]; diff --git a/pages/miscellaneous.tsx b/pages/miscellaneous.tsx new file mode 100644 index 0000000..9d6174e --- /dev/null +++ b/pages/miscellaneous.tsx @@ -0,0 +1,127 @@ +import { M1, M2, M3, M4, M5, M6, M7 } from "data/miscellaneous"; +import { pageRoutes } from "data/routes"; +import React from "react"; +import { + barGraphProps, + DefaultProp, + pieChartProps, + barGraphMargin, + barGraphWidth, + wordCloudWidth, +} from "utils/defaultProps"; +import { useWindowDimensions } from "utils/getWindowDimensions"; +import { useIsMobile } from "utils/isMobile"; + +import { BarGraphVertical, BarGraphHorizontal } from "@/components/BarGraph"; +import { BottomNav } from "@/components/BottomNav"; +import { ComponentWrapper } from "@/components/ComponentWrapper"; +import { Header } from "@/components/Header"; +import { PieChart } from "@/components/PieChart"; +import { SectionHeader } from "@/components/SectionHeader"; +import { WordCloud } from "@/components/WordCloud"; + +import styles from "./samplePage.module.css"; + +export default function Demographics() { + const pageWidth = useWindowDimensions().width; + const isMobile = useIsMobile(); + + return ( +
+
+ + + + + + + + + + + + + + + +
+ +
+
+ + +
+ +
+
+ + + + + + + + + + +
+ ); +}