Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separated landing background pictures #40

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/site/src/app/(home)/sections/Landing/Landing.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.landingBackground {
background-image: url("~@/assets/backgrounds/landing-background.jpg");
background-image: url("~@/assets/backgrounds/fog.png"),
url("~@/assets/backgrounds/lantern-glow.png"),
url("~@/assets/backgrounds/landing-lanterns-bottom.png"),
url("~@/assets/backgrounds/boat.png"),
url("~@/assets/backgrounds/stall-left.png"),
url("~@/assets/backgrounds/stall-right.png"),
url("~@/assets/backgrounds/landing-lanterns.png"),
url("~@/assets/backgrounds/sky.png");
background-position: center bottom;
background-repeat: no-repeat;
background-size: cover;
samderanova marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
8 changes: 7 additions & 1 deletion apps/site/src/app/(home)/sections/Landing/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { Suspense } from "react";
import Image from "next/image";
import clsx from "clsx";
import { PerspectiveCamera } from "@react-three/drei";

import { View } from "@/components/canvas/View";
Expand All @@ -15,7 +16,12 @@ import styles from "./Landing.module.css";

const Landing = () => {
return (
<section className={styles.landingBackground}>
<section
className={clsx(
"bg-center bg-cover bg-no-repeat",
styles.landingBackground,
)}
>
<View className="absolute w-full h-full">
<Suspense fallback={null}>
<Fireflies />
Expand Down
Binary file added apps/site/src/assets/backgrounds/boat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/assets/backgrounds/fog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/assets/backgrounds/lantern-glow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/assets/backgrounds/sky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/assets/backgrounds/stall-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/site/src/assets/backgrounds/stall-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading