|
|
|
@ -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; |
|
|
|
|