"use client"; import Image from "next/image"; import Link from "next/link"; import { useState, useEffect } from "react"; const slideshowImages = [ {id: "slide-1", src: "/images/home/slideshow/pet1.jpg", alt: "Happy pets"}, {id: "slide-2", src: "/images/home/slideshow/pet2.jpg", alt: "Pet supplies"}, {id: "slide-3", src: "/images/home/slideshow/pet3.jpg", alt: "Pet grooming"}, {id: "slide-4", src: "/images/home/slideshow/pet4.jpg", alt: "Pet food"}, ]; const navImages = [ {id: "nav-adopt", src: "/images/home/navimages/adopt.jpg", alt: "Adopt a Pet", link: "/adopt", title: "Adopt a Pet"}, {id: "nav-products", src: "/images/home/navimages/store.jpg", alt: "Online Store", link: "/products", title: "Online Store"}, {id: "nav-appointments", src: "/images/home/navimages/appointments.jpg", alt: "Appointments", link: "/appointments", title: "Appointments"}, ]; export default function Home() { const [currentSlide, setCurrentSlide] = useState(0); //Auto-advance slideshow useEffect(() => { //Change slide every 7.5 seconds const timer = setInterval(() => {setCurrentSlide((prev) => (prev + 1) % slideshowImages.length);}, 7500); return () => clearInterval(timer); }, []); return (
{/* Slideshow */}
{slideshowImages.map((image, index) => (
{image.alt}
))}
{/* Title Section */}

Welcome to Leon's Pet Store

Your One-Stop Shop for All Things Pets

{/* Image Hyperlinks */}
{navImages.map((item, index) => (
{item.alt}

{item.title}

))}
{/* About Us Section */}

About Leon's Pet Store

Pet care, adoption support, grooming, and everyday essentials in one place.

What We Do

Leon's Pet Store connects families with adoptable pets, helpful services, and quality products for day-to-day pet care.

Our Focus

  • Support responsible pet adoption
  • Provide grooming and care services
  • Offer reliable pet supplies and essentials
  • Create a friendly experience for customers and staff

Visit the Store

Browse adoptable pets, schedule appointments, shop products, or contact the team for help finding the right fit for a pet and household.

); }