"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 HeaderProductJ8Awd() { 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 = [ "/green.png", // index 0 "/silver.png", // index 1 "/white.png", // index 3 "/black.png", // index 2 ]; const gradients = [ "linear-gradient(to bottom, #527D97, #1F6779)", // Hijau "linear-gradient(to bottom, #FFFFFF, #FFFFFF)", // Silver "linear-gradient(to bottom, #E1ECF4, #FFFFFF)", // Putih "linear-gradient(to bottom, #1A1A1A, #3A3A3A)", // Hitam ]; return ( <> {/* Tombol di dalam gambar, posisi bawah tengah */} BROSUR {/* Download Button */} {/* Iframe Preview */} {/* Trigger untuk modal */} TEST DRIVE FORM TEST DRIVE {/* Form */} setOpen(false)} className="bg-[#1F6779] text-white rounded-full" > SEND INQUIRY {/* Section warna */} {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}`} /> ))} > ); }