diff --git a/components/home/Hero.tsx b/components/home/Hero.tsx index e7f564d7..4191ce4e 100644 --- a/components/home/Hero.tsx +++ b/components/home/Hero.tsx @@ -1,13 +1,16 @@ import React from 'react' import Link from 'next/link' +import Image from 'next/image' import { ContainerScroll } from '@/components/ui/container-scroll-animation' import { CardBody, CardContainer, CardItem } from '../ui/3d-card' import { HoverBorderGradient } from '../ui/hover-border-gradient' +import DemoImageMobileLight from './img/demo_mobile_light.png' +import DemoImageMobileDark from './img/demo_mobile_dark.png' import RepoOfTheDay from '@/components/svg/RepoOfTheDay' import { HomeSection } from './components/HomeSection' import RossIndex from '@/components/svg/RossIndex' -import DemoImage from './img/demo.png' -import Image from 'next/image' +import DemoImageLight from './img/demo_light.png' +import DemoImageDark from './img/demo_dark.png' const HERO_TITLE = { firstPart: 'Unify', @@ -42,18 +45,18 @@ const HeroTitle = React.memo(() => ( )) const HeroDescription = React.memo(() => ( - + LibreChat {HERO_DESCRIPTION}
-
+
{/* Gradients */} -
-
-
-
+
+
+
+
@@ -83,18 +86,6 @@ const HeroLinks = React.memo(() => ( Try demo
- {/* - - - - LibreChat Github stars - - - - */} @@ -113,20 +104,48 @@ const HeroLinks = React.memo(() => ( export function Hero() { return ( -
+
- + {/* Desktop */} + + LibreChat UI Dark LibreChat UI + {/* Mobile */} +
+ LibreChat UI Dark Mobile + LibreChat UI Light Mobile +
) diff --git a/components/home/img/demo.png b/components/home/img/demo.png deleted file mode 100644 index 3e4c3c9b..00000000 Binary files a/components/home/img/demo.png and /dev/null differ diff --git a/components/home/img/demo_dark.png b/components/home/img/demo_dark.png new file mode 100644 index 00000000..0e9fd93d Binary files /dev/null and b/components/home/img/demo_dark.png differ diff --git a/components/home/img/demo_light.png b/components/home/img/demo_light.png new file mode 100644 index 00000000..31e0e796 Binary files /dev/null and b/components/home/img/demo_light.png differ diff --git a/components/home/img/demo_mobile_dark.png b/components/home/img/demo_mobile_dark.png new file mode 100644 index 00000000..02d293ea Binary files /dev/null and b/components/home/img/demo_mobile_dark.png differ diff --git a/components/home/img/demo_mobile_light.png b/components/home/img/demo_mobile_light.png new file mode 100644 index 00000000..c0ce4da9 Binary files /dev/null and b/components/home/img/demo_mobile_light.png differ diff --git a/components/ui/container-scroll-animation.tsx b/components/ui/container-scroll-animation.tsx index 370c505f..73e53e12 100644 --- a/components/ui/container-scroll-animation.tsx +++ b/components/ui/container-scroll-animation.tsx @@ -1,13 +1,20 @@ import React, { useRef } from 'react' import { useScroll, useTransform, motion, MotionValue, useSpring } from 'framer-motion' -export const ContainerScroll = ({ children }: { children: React.ReactNode }) => { +interface ContainerScrollProps { + children: React.ReactNode + className?: string +} + +export const ContainerScroll: React.FC = ({ children, className = '' }) => { const containerRef = useRef(null) const { scrollYProgress } = useScroll({ target: containerRef, offset: ['start end', 'center start'], }) + console.log(scrollYProgress) + const translateY = useTransform(scrollYProgress, [0.3, 0.75], [-100, 200]) const translateYSpring = useSpring(translateY, { stiffness: 600, damping: 80 }) @@ -16,11 +23,11 @@ export const ContainerScroll = ({ children }: { children: React.ReactNode }) => return (