Clean up shapes on some mobile pages

pull/307/head
Amy 1 year ago
parent f8cde46d6a
commit 6748c24ee8
  1. 1
      pages/about/team.module.css
  2. 11
      pages/events/[year]/[term]/[event].tsx
  3. 3
      pages/resources/tech-talks/index.module.css

@ -64,6 +64,7 @@
.headerContainer {
flex-direction: column-reverse;
padding-bottom: 1rem;
margin-top: calc(30rem / 16);
}
.nav {

@ -5,6 +5,11 @@ import { MDXRemote } from "next-mdx-remote";
import React from "react";
import { EventCard } from "@/components/EventCard";
import {
ShapesConfig,
defaultGetShapesConfig,
GetShapesConfig,
} from "@/components/ShapesBackground";
import { Title } from "@/components/Title";
import {
Event,
@ -30,6 +35,12 @@ export default function EventInfoPage({ year, term, event }: Props) {
);
}
EventInfoPage.getShapesConfig = ((width, height) => {
return window.innerWidth <= 768
? ({} as ShapesConfig)
: defaultGetShapesConfig(width, height);
}) as GetShapesConfig;
interface Props {
year: string;
term: string;

@ -36,8 +36,7 @@
@media only screen and (max-width: calc(768rem / 16)) {
.page {
margin-top: 0;
margin-bottom: calc(20rem / 16);
margin: calc(30rem / 16) 0;
}
.headerContainer {

Loading…
Cancel
Save