From 021a5de4f7d42101b05aed39944b9a0c39b98ecc Mon Sep 17 00:00:00 2001 From: Marques Scripps <40672230+MarquesCoding@users.noreply.github.com> Date: Tue, 20 Jun 2023 16:06:56 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20Updated=20the=20background=20on=20the?= =?UTF-8?q?=20landing=20page=20to=20use=20react-three-f=E2=80=A6=20(#966)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Updated the background on the landing page to use react-three-fiber to generate the backgrounds * fix types & lint & pnpm-lock file * fix popover import * reverted the blue glow * added back the blue glow * feat: Fixed the issue where it was not displaying the image. + some optional UI changes * feat: Updated based on feedback --------- Co-authored-by: Marques Scripps Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com> --- apps/landing/package.json | 4 + apps/landing/src/components/Footer.tsx | 8 +- apps/landing/src/components/HomeCTA.tsx | 2 +- apps/landing/src/components/NavBar.tsx | 14 +- apps/landing/src/components/NewBanner.tsx | 2 +- apps/landing/src/components/PageWrapper.tsx | 4 +- apps/landing/src/components/Space.tsx | 64 +++ apps/landing/src/pages/index.tsx | 8 +- apps/landing/src/styles/style.scss | 7 + packages/ui/src/Popover.tsx | 2 +- packages/ui/style/style.scss | 7 + pnpm-lock.yaml | 437 +++++++++++++++++++- 12 files changed, 540 insertions(+), 19 deletions(-) create mode 100644 apps/landing/src/components/Space.tsx diff --git a/apps/landing/package.json b/apps/landing/package.json index b095db4d2..ccfc6fdef 100644 --- a/apps/landing/package.json +++ b/apps/landing/package.json @@ -13,6 +13,8 @@ "@auth/core": "^0.7.1", "@aws-sdk/client-ses": "^3.337.0", "@planetscale/database": "^1.7.0", + "@react-three/drei": "^9.76.0", + "@react-three/fiber": "^8.13.3", "@sd/assets": "workspace:*", "@sd/ui": "workspace:*", "@t3-oss/env-nextjs": "^0.3.1", @@ -40,6 +42,7 @@ "remark-gfm": "^3.0.1", "remark-math": "^5.1.1", "sharp": "^0.32.1", + "three": "^0.153.0", "tsparticles": "^2.9.3", "uuid": "^9.0.0", "zod": "^3.21.4" @@ -52,6 +55,7 @@ "@types/react-burger-menu": "^2.8.3", "@types/react-dom": "18.2.4", "@types/react-helmet": "^6.1.6", + "@types/three": "^0.152.1", "drizzle-kit": "db-push", "postcss": "^8.4.23", "tailwindcss": "^3.3.2", diff --git a/apps/landing/src/components/Footer.tsx b/apps/landing/src/components/Footer.tsx index f2c7a77df..450ca9993 100644 --- a/apps/landing/src/components/Footer.tsx +++ b/apps/landing/src/components/Footer.tsx @@ -16,7 +16,7 @@ function FooterLink(props: PropsWithChildren<{ link: string; blank?: boolean }>) {props.children} @@ -26,16 +26,16 @@ function FooterLink(props: PropsWithChildren<{ link: string; blank?: boolean }>) export function Footer() { return ( -