"use client"; import Image from "next/image"; import { Button } from "../ui/button"; import { Input } from "../ui/input"; import { Textarea } from "../ui/textarea"; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger, } from "../ui/dialog"; import { motion } from "framer-motion"; import { useState } from "react"; import { Download } from "lucide-react"; export default function HeaderProductJ7Awd() { const [open, setOpen] = useState(false); const [selectedColorIndex, setSelectedColorIndex] = useState(0); const [openBrosur, setOpenBrosur] = useState(false); const fileId = "1Nici3bdjUG524sUYQgHfbeO63xW6f1_o"; const fileLink = `https://drive.google.com/file/d/${fileId}/view`; const embedLink = `https://drive.google.com/file/d/${fileId}/preview`; const downloadLink = `https://drive.google.com/uc?export=download&id=${fileId}`; const images = [ "/j5-putih.png", "/j5-hitam.png", "/j5-silver.png", "/j5-biru.png", "/j5-hijau.png", ]; const gradients = [ "linear-gradient(to bottom, #FFFFFF, #FFFFFF)", "linear-gradient(to bottom, #1A1A1A, #3A3A3A)", "linear-gradient(to bottom, #B0B5C2, #B0B5C2)", "linear-gradient(to bottom, #233a77, #233a77)", "linear-gradient(to bottom, #5D6B4F, #5D6B4F)", ]; return ( <> BROSUR TEST DRIVE FORM TEST DRIVE setOpen(false)} className="bg-[#1F6779] text-white rounded-full" > SEND INQUIRY {gradients.map((bg, index) => ( setSelectedColorIndex(index)} whileHover={{ scale: 1.1 }} whileTap={{ scale: 0.95 }} className={`w-4 h-4 md:w-6 md:h-6 rounded-full border-2 ${ selectedColorIndex === index ? "border-black" : "border-white" } shadow-md hover:cursor-pointer`} style={{ background: bg }} aria-label={`Pilih warna ${index + 1}`} /> ))} > ); }