From dbf9b90d03e33f05187a9c06155da16b90fbe100 Mon Sep 17 00:00:00 2001 From: noeljtoms Date: Sun, 1 Oct 2023 18:19:45 -0400 Subject: [PATCH 1/4] Updated Mobile Look and changed components to MUI --- components/Home/AboutUsSection.tsx | 108 ++++++++++++++++++----------- 1 file changed, 69 insertions(+), 39 deletions(-) diff --git a/components/Home/AboutUsSection.tsx b/components/Home/AboutUsSection.tsx index 82adc66..af98ab8 100644 --- a/components/Home/AboutUsSection.tsx +++ b/components/Home/AboutUsSection.tsx @@ -1,52 +1,82 @@ import { FC } from 'react'; +import Container from '@mui/material/Container'; +import Grid from '@mui/material/Grid'; +import { createTheme, ThemeProvider } from '@mui/material/styles'; +import Typography from '@mui/material/Typography'; + import Image from 'next/image'; import Deerfield from 'public/deerfield.png'; // image from https://www.soundsolutions.ca/projects/featured-exterior-cladding-projects/deerfield-hall-univeristy-of-toronto-mississauga-campus import Experience from 'public/experience.png'; +const theme = createTheme({ + typography: { + fontFamily: ['Segoe UI'].join(','), + }, +}); + const AboutUsSection: FC = () => ( -
-
- Deerfield Hall -
-
- -

ABOUT US

-
-
-
-
-

FOR THE STUDENTS

-

Academic Society

+ + +
+ Deerfield Hall +
+ +
+
+ + ABOUT US + +
-
- Experience + +
+
+

+ FOR THE STUDENTS +

+

+ Academic Society +

+
+
+ Experience +
-
-

- Academic Society -

-
-

- Hello students and welcome! UTM Mathematical and Computational Sciences Society (MCSS) is - the official academic society for the Mathematics and Computational Sciences Department. - The purpose of the club is to officially represent the students, promote and achieve the - common interests of the students, encourage academic, social, and career related support - for the students, maintain open lines of communication between the students and the - department's faculty and staff, as well as maintain communication between the students - themselves, and encourage faculty and student interaction outside of the formal lecture, - tutorial, and lab settings. +

+ Academic Society

+
+ + Hello students and welcome! UTM Mathematical and Computational Sciences Society (MCSS) + is the official academic society for the Mathematics and Computational Sciences + Department. The purpose of the club is to officially represent the students, promote and + achieve the common interests of the students, encourage academic, social, and career + related support for the students, maintain open lines of communication between the + students and the department's faculty and staff, as well as maintain communication + between the students themselves, and encourage faculty and student interaction outside + of the formal lecture, tutorial, and lab settings. + +
-
-
+ + ); export default AboutUsSection; From 0865359a8eff0e78ff2ad69190d163b4cd30536c Mon Sep 17 00:00:00 2001 From: noeljtoms Date: Sun, 1 Oct 2023 18:42:16 -0400 Subject: [PATCH 2/4] Updated Linting --- .vscode/settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index f2fc7ea..1756547 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,6 +36,7 @@ "**/.git": true, "**/.DS_Store": true }, + "files.eol": "\n", "search.exclude": { "node_modules": true, "build/**": true From 795aa9c17e61da0915f6709574f413427b6ebad4 Mon Sep 17 00:00:00 2001 From: noeljtoms Date: Sun, 1 Oct 2023 18:56:07 -0400 Subject: [PATCH 3/4] Updated Mobile Look and changed components to MUI --- components/Home/AboutUsSection.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/Home/AboutUsSection.tsx b/components/Home/AboutUsSection.tsx index af98ab8..247952e 100644 --- a/components/Home/AboutUsSection.tsx +++ b/components/Home/AboutUsSection.tsx @@ -1,7 +1,6 @@ import { FC } from 'react'; import Container from '@mui/material/Container'; -import Grid from '@mui/material/Grid'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Typography from '@mui/material/Typography'; From 5fad7d17f64fa77e64a13fc8350ee80e3ee69981 Mon Sep 17 00:00:00 2001 From: noeljtoms Date: Sun, 17 Dec 2023 20:09:07 -0500 Subject: [PATCH 4/4] fixed eslint issue --- components/Home/AboutUsSection.tsx | 124 +++++++++++++++++++++-------- pages/_app.tsx | 2 +- style/theme.ts | 8 +- 3 files changed, 98 insertions(+), 36 deletions(-) diff --git a/components/Home/AboutUsSection.tsx b/components/Home/AboutUsSection.tsx index 247952e..9ae10b2 100644 --- a/components/Home/AboutUsSection.tsx +++ b/components/Home/AboutUsSection.tsx @@ -1,68 +1,124 @@ import { FC } from 'react'; +import Box from '@mui/material/Box'; import Container from '@mui/material/Container'; -import { createTheme, ThemeProvider } from '@mui/material/styles'; +import Divider from '@mui/material/Divider'; +import { ThemeProvider } from '@mui/material/styles'; import Typography from '@mui/material/Typography'; import Image from 'next/image'; import Deerfield from 'public/deerfield.png'; // image from https://www.soundsolutions.ca/projects/featured-exterior-cladding-projects/deerfield-hall-univeristy-of-toronto-mississauga-campus import Experience from 'public/experience.png'; -const theme = createTheme({ - typography: { - fontFamily: ['Segoe UI'].join(','), - }, -}); +import { aboutSectionTheme } from '../../style/theme'; const AboutUsSection: FC = () => ( - + -
+ Deerfield Hall -
+ -
-
+ + ABOUT US -
-
+ + -
-
-

+ + + FOR THE STUDENTS -

-

- Academic Society -

-
-
+ + + Experience -
-
-

+ + + Academic Society -

-
+ + Hello students and welcome! UTM Mathematical and Computational Sciences Society (MCSS) is the official academic society for the Mathematics and Computational Sciences @@ -73,8 +129,8 @@ const AboutUsSection: FC = () => ( between the students themselves, and encourage faculty and student interaction outside of the formal lecture, tutorial, and lab settings. -
-
+ +
); diff --git a/pages/_app.tsx b/pages/_app.tsx index 7944513..edbd15a 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -9,7 +9,7 @@ import { store } from '@store/store'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; import type { AppProps } from 'next/app'; import Script from 'next/script'; -import theme from 'style/theme'; +import { theme } from 'style/theme'; import { APIProvider } from '../contexts/useAPI'; diff --git a/style/theme.ts b/style/theme.ts index d627c40..18a4a45 100644 --- a/style/theme.ts +++ b/style/theme.ts @@ -2,6 +2,12 @@ import { createTheme } from '@mui/material/styles'; import COLORS from 'style/colors'; +const aboutSectionTheme = createTheme({ + typography: { + fontFamily: ['Segoe UI'].join(','), + }, +}); + const base = createTheme({ palette: { primary: { @@ -164,4 +170,4 @@ const theme = createTheme(base, { }, }); -export default theme; +export { theme, aboutSectionTheme };