"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"; import Link from "next/link"; export default function HeaderProductJ7Shs() { 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 = [ "/jj7-blue.png", "/jj7-white.png", "/jj7-silver.png", "/jj7-black.png", ]; const gradients = [ "linear-gradient(to bottom, #527D97, #527D97)", "linear-gradient(to bottom, #FFFFFF, #FFFFFF)", "linear-gradient(to bottom, #E1ECF4, #FFFFFF)", "linear-gradient(to bottom, #1A1A1A, #3A3A3A)", ]; return ( <>
about-header
about-header
{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}`} /> ))}
); }