The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
at master 1.3 kB view raw
1import Link from "next/link"; 2import { HiArrowRight } from "react-icons/hi"; 3 4interface Props { 5 title: string; 6 message: string; 7 url: string; 8 className?: string; 9 icon: React.ReactNode; 10} 11 12export function OverviewLink({ 13 title, 14 message, 15 url, 16 className, 17 icon 18}: Props) { 19 return ( 20 <div className={className}> 21 <Link href={url}> 22 <div className="w-full dark:text-neutral-100 text-neutral-900 dark:bg-wamellow bg-wamellow-100 py-4 px-5 mb-6 rounded-xl outline-violet-500 hover:outline-solid flex gap-2 group/item duration-100"> 23 24 <div> 25 26 <div className="flex gap-2 items-center"> 27 <div className="text-xl font-semibold">{title}</div> 28 <HiArrowRight className="group-hover/item:ml-[6px] duration-300" style={{ height: 20, width: 20 }} /> 29 </div> 30 31 <div className="text-sm">{message}</div> 32 </div> 33 34 <div className="svg-max h-12 w-12 ml-auto text-violet-400 group-hover/item:text-violet-500 duration-300"> 35 {icon} 36 </div> 37 38 </div> 39 </Link> 40 </div> 41 ); 42}