From db4504c51d2df1cf4fdfca9f1d515048c4190fe2 Mon Sep 17 00:00:00 2001 From: Amy Date: Tue, 27 Jul 2021 01:39:38 -0400 Subject: [PATCH] Fix more spacing shenanigans --- components/DefaultLayout.module.css | 1 - pages/index.module.css | 30 +++++++++--------- pages/index.tsx | 47 +++++++++++++++-------------- 3 files changed, 40 insertions(+), 38 deletions(-) diff --git a/components/DefaultLayout.module.css b/components/DefaultLayout.module.css index 31cadd0b..5b18ff5f 100644 --- a/components/DefaultLayout.module.css +++ b/components/DefaultLayout.module.css @@ -2,5 +2,4 @@ margin: 0 auto; max-width: calc(800rem / 16); padding: 0 calc(20rem / 16); - padding-bottom: calc(20rem / 16); } diff --git a/pages/index.module.css b/pages/index.module.css index fc032a2b..38bfe3da 100644 --- a/pages/index.module.css +++ b/pages/index.module.css @@ -1,3 +1,7 @@ +.page { + padding-bottom: calc(60rem / 16); +} + .intro { display: flex; flex-direction: column; @@ -5,11 +9,9 @@ align-items: center; position: relative; - margin: 0 auto; height: 65vh; min-height: calc(420rem / 16); max-height: calc(580rem / 16); - max-width: calc(800rem / 16); } .introTop { @@ -108,12 +110,6 @@ gap: 1rem; } -.contact { - margin: 0 auto; - max-width: calc(800rem / 16); - padding: calc(30rem / 16) calc(40rem / 16) calc(80rem / 16); -} - /* On a smaller desktop screen, make the events/new flow vertically */ @media only screen and (max-width: calc(1100rem / 16)) { .cards { @@ -128,16 +124,25 @@ } @media only screen and (max-width: calc(768rem / 16)) { + .page { + padding-bottom: calc(30rem / 16); + } + .intro { height: calc(330rem / 16); + min-height: unset; + max-height: unset; } .introContent { - margin-bottom: calc(100rem / 16); padding: 1rem; max-width: calc(260rem / 16); } + .introBottom { + min-height: calc(100rem / 16); + } + .clubTitleWrapper img { display: none; } @@ -169,7 +174,7 @@ align-items: center; gap: calc(8rem / 16); - padding: calc(36rem / 16) calc(30rem / 16) calc(20rem / 16); + padding: calc(36rem / 16) calc(20rem / 16) calc(20rem / 16); } .cardsHeading { @@ -189,9 +194,4 @@ border: none; background-color: var(--purple-2); } - - .contact { - padding: calc(30rem / 16); - padding-bottom: calc(80rem / 16); - } } diff --git a/pages/index.tsx b/pages/index.tsx index aec6b403..a64dd9ab 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -5,6 +5,7 @@ import { EventDescriptionCard } from "../components/EventDescriptionCard"; import { NewsCard } from "../components/NewsCard"; import { ConnectWithUs } from "../components/ConnectWithUs"; import { EmailSignup } from "../components/EmailSignup"; +import { DefaultLayout } from "../components/DefaultLayout"; import styles from "./index.module.css"; // temporary event and news imports @@ -26,26 +27,28 @@ export default function Home() { return ( <> -
-
-
-
- CSC Logo -

Computer Science Club

+ +
+
+
+
+ CSC Logo +

Computer Science Club

+
+

+ University of Waterloo's
+ student computing community +

+
-

- University of Waterloo's
- student computing community -

- -
-
- CSC mascot Codey, a blue shiba with circular glasses -
+
+ CSC mascot Codey, a blue shiba with circular glasses +
+
{/* TODO: add links to past events and past news */} @@ -75,14 +78,14 @@ export default function Home() {
-
+ -
+ ); } Home.Layout = function HomeLayout(props: { children: React.ReactNode }) { - return
{props.children}
; + return
{props.children}
; };