|
|
|
@ -6,7 +6,11 @@ import { EmailSignup } from "@/components/EmailSignup"; |
|
|
|
|
import { EventDescriptionCard } from "@/components/EventDescriptionCard"; |
|
|
|
|
import { Image } from "@/components/Image"; |
|
|
|
|
import { NewsCard } from "@/components/NewsCard"; |
|
|
|
|
import { GetShapesConfig } from "@/components/ShapesBackground"; |
|
|
|
|
import { |
|
|
|
|
GetShapesConfig, |
|
|
|
|
ShapesConfig, |
|
|
|
|
shapeTypes, |
|
|
|
|
} from "@/components/ShapesBackground"; |
|
|
|
|
import { SocialLinks } from "@/components/SocialLinks"; |
|
|
|
|
|
|
|
|
|
import AltTab, { |
|
|
|
@ -95,8 +99,16 @@ Home.Layout = function HomeLayout(props: { children: React.ReactNode }) { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
Home.getShapesConfig = (() => { |
|
|
|
|
return { |
|
|
|
|
triangle: [{ left: "2rem" }, { bottom: "2rem" }], |
|
|
|
|
dots: [{ top: "100px", right: "50vw" }], |
|
|
|
|
}; |
|
|
|
|
const config: ShapesConfig = {}; |
|
|
|
|
|
|
|
|
|
shapeTypes.forEach((shape) => { |
|
|
|
|
const [top, left] = [ |
|
|
|
|
Math.trunc(Math.random() * (window.innerWidth <= 500 ? 50 : 90)), |
|
|
|
|
Math.trunc(Math.random() * 100), |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
config[shape] = [{ top: `${top}vh`, left: `${left}vw` }]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return config; |
|
|
|
|
}) as GetShapesConfig; |
|
|
|
|