Skip to content

Commit

Permalink
fix: replace hero image with video
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottewiltshire0 committed Jan 2, 2025
1 parent 0928b65 commit c6bcbda
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions components/sections/landing/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import AnimatedShinyText from "@/components/ui/animated-shiny-text";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
import Link from "next/link";
import Image from "next/image";
import { motion } from "motion/react";
import Head from "next/head";
import { links } from "@/constants/links";
Expand Down Expand Up @@ -105,15 +104,22 @@ export const Hero = () => {
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.7, delay: 0.2 }}
>
<Image
src="https://image.redotengine.org/cover.webp"
alt="Hero cover"
className="h-auto w-full rounded-lg object-cover md:h-full"
priority
<video
width="1200"
height="800"
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
/>
className="h-auto w-full rounded-lg object-cover md:h-full"
loop
autoPlay
muted
controls={false}
preload="none"
>
<source
src="https://image.redotengine.org/Games%20are%20made%20with%20Redot%20Engine%202024%20Without%20outro.mp4"
type="video/mp4"
/>
Your browser does not support the video tag.
</video>
</motion.div>
</div>
</div>
Expand Down

0 comments on commit c6bcbda

Please sign in to comment.