diff --git a/apps/site/src/app/(home)/sections/Landing/Landing.module.css b/apps/site/src/app/(home)/sections/Landing/Landing.module.css index b60a650c..0bcbbd5a 100644 --- a/apps/site/src/app/(home)/sections/Landing/Landing.module.css +++ b/apps/site/src/app/(home)/sections/Landing/Landing.module.css @@ -6,6 +6,7 @@ position: relative; min-height: 100vh; min-width: 100vw; + overflow-x: hidden; } .landingGroup { @@ -15,3 +16,39 @@ transform: translate(-50%, -50%); text-align: center; } + +.fogLeft, +.fogRight { + animation-delay: 0.5s; + animation-duration: 4s; + animation-fill-mode: forwards; + animation-timing-function: ease; + z-index: 1000; +} + +.fogLeft { + animation-name: slideOutLeft; +} + +.fogRight { + animation-name: slideOutRight; +} + +@keyframes slideOutLeft { + from { + transform: none; + } + + to { + transform: translate(-100%, 0); + } +} + +@keyframes slideOutRight { + from { + transform: none; + } + to { + transform: translate(100%, 0); + } +} diff --git a/apps/site/src/app/(home)/sections/Landing/Landing.tsx b/apps/site/src/app/(home)/sections/Landing/Landing.tsx index 926ed952..08324887 100644 --- a/apps/site/src/app/(home)/sections/Landing/Landing.tsx +++ b/apps/site/src/app/(home)/sections/Landing/Landing.tsx @@ -1,13 +1,18 @@ "use client"; -import Button from "@/lib/components/Button/Button"; -import styles from "./Landing.module.css"; - import { Suspense } from "react"; +import Image from "next/image"; import { PerspectiveCamera } from "@react-three/drei"; + import { View } from "@/components/canvas/View"; +import Button from "@/lib/components/Button/Button"; import Fireflies from "../../components/Fireflies"; +import fogLeft from "@/assets/images/fog-left.png"; +import fogRight from "@/assets/images/fog-right.png"; + +import styles from "./Landing.module.css"; + const Landing = () => { return (
@@ -17,6 +22,8 @@ const Landing = () => { + Fog + Fog

IrvineHacks 2024

January 26–28

diff --git a/apps/site/src/assets/images/fog-left.png b/apps/site/src/assets/images/fog-left.png new file mode 100644 index 00000000..f490c03f Binary files /dev/null and b/apps/site/src/assets/images/fog-left.png differ diff --git a/apps/site/src/assets/images/fog-right.png b/apps/site/src/assets/images/fog-right.png new file mode 100644 index 00000000..1958d472 Binary files /dev/null and b/apps/site/src/assets/images/fog-right.png differ