diff --git a/apps/landing/package.json b/apps/landing/package.json index b50fe9fb6..c66fc2088 100644 --- a/apps/landing/package.json +++ b/apps/landing/package.json @@ -36,6 +36,7 @@ "react-dom": "^18.3.1", "react-error-boundary": "^4.0.13", "react-github-btn": "^1.4.0", + "react-parallax-tilt": "^1.7.237", "reading-time": "^1.5.0", "rehype-autolink-headings": "^6.1.1", "rehype-external-links": "^2.1.0", diff --git a/apps/landing/src/components/hero-image.tsx b/apps/landing/src/components/hero-image.tsx new file mode 100644 index 000000000..9d840786c --- /dev/null +++ b/apps/landing/src/components/hero-image.tsx @@ -0,0 +1,45 @@ +'use client'; + +// Ensure this component runs on the client-side +import Image from 'next/image'; +import React from 'react'; +import Tilt from 'react-parallax-tilt'; + +interface HeroImageProps { + src: string; + alt: string; + width: number; + height: number; +} + +export const HeroImage: React.FC = ({ src, alt, width, height }) => { + return ( + +
+
+
+
+
+
+ + {alt} +
+
+
+
+ + ); +}; diff --git a/apps/landing/src/components/landing-sections/header.tsx b/apps/landing/src/components/landing-sections/header.tsx index d9ffd6e97..326f72301 100644 --- a/apps/landing/src/components/landing-sections/header.tsx +++ b/apps/landing/src/components/landing-sections/header.tsx @@ -1,10 +1,10 @@ -import Image from 'next/image'; import React from 'react'; import { getLatestRelease, getReleaseFrontmatter, githubFetch } from '~/app/api/github'; import Particles from '~/particles'; import { toTitleCase } from '~/utils/misc'; import { GoldenBadge } from '../golden-badge'; +import { HeroImage } from '../hero-image'; // Import the client-side component import { HomeCtaButtons } from '../home-cta-buttons'; export const metadata = { @@ -58,14 +58,6 @@ export async function Header() {
- l
-
-
-
-
-
-
- Spacedrive App Image -
-
-
-
+
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c37cc0c1c..5304c53c1 100644 Binary files a/pnpm-lock.yaml and b/pnpm-lock.yaml differ