|
| 1 | +import Head from 'next/head'; |
| 2 | +import Image from 'next/image'; |
| 3 | +import Link from 'next/link'; |
| 4 | + |
| 5 | +const logos = [ |
| 6 | + { |
| 7 | + src: '/lucky_ui_colored.png', |
| 8 | + alt: 'LuckyUI Colored Logo', |
| 9 | + name: 'Colored Logo', |
| 10 | + description: 'Full color version of the LuckyUI logo', |
| 11 | + }, |
| 12 | + { |
| 13 | + src: '/lucky_ui_logo.png', |
| 14 | + alt: 'LuckyUI Logo', |
| 15 | + name: 'Standard Logo', |
| 16 | + description: 'Standard version of the LuckyUI logo', |
| 17 | + }, |
| 18 | + { |
| 19 | + src: '/waveful_logo.png', |
| 20 | + alt: 'Waveful Logo', |
| 21 | + name: 'Waveful Logo', |
| 22 | + description: 'Waveful App logo', |
| 23 | + }, |
| 24 | +]; |
| 25 | + |
| 26 | +export default function LogosPage() { |
| 27 | + const handleDownload = (src: string, name: string) => { |
| 28 | + const link = document.createElement('a'); |
| 29 | + link.href = src; |
| 30 | + link.download = name.toLowerCase().replace(/\s+/g, '-') + '.png'; |
| 31 | + document.body.appendChild(link); |
| 32 | + link.click(); |
| 33 | + document.body.removeChild(link); |
| 34 | + }; |
| 35 | + |
| 36 | + return ( |
| 37 | + <div className="max-w-7xl mx-auto px-4 py-8 sm:px-6 lg:px-8"> |
| 38 | + <Head> |
| 39 | + <title>Logos | LuckyUI</title> |
| 40 | + <meta name="description" content="Download LuckyUI and Waveful logos" /> |
| 41 | + </Head> |
| 42 | + |
| 43 | + <div className="mb-12"> |
| 44 | + <h1 className="text-3xl font-bold mb-2">Logos</h1> |
| 45 | + <p className="text-gray-600">Download LuckyUI and Waveful logos in various formats.</p> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"> |
| 49 | + {logos.map((logo) => ( |
| 50 | + <div key={logo.src} className="border rounded-lg overflow-hidden flex flex-col h-full"> |
| 51 | + <div className="p-4 flex-grow flex items-center justify-center min-h-[200px] bg-gray-50"> |
| 52 | + <Image |
| 53 | + src={logo.src} |
| 54 | + alt={logo.alt} |
| 55 | + width={200} |
| 56 | + height={200} |
| 57 | + className="object-contain max-w-full h-auto" |
| 58 | + /> |
| 59 | + </div> |
| 60 | + <div className="p-4 border-t"> |
| 61 | + <h2 className="text-lg font-semibold mb-2">{logo.name}</h2> |
| 62 | + <p className="text-gray-600 text-sm mb-4">{logo.description}</p> |
| 63 | + <button |
| 64 | + onClick={() => handleDownload(logo.src, logo.name)} |
| 65 | + className="w-full py-2 px-4 border rounded-md text-sm font-medium hover:bg-gray-50 transition-colors cursor-pointer" |
| 66 | + > |
| 67 | + Download |
| 68 | + </button> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + ))} |
| 72 | + </div> |
| 73 | + |
| 74 | + <div className="mt-8 text-center text-sm text-gray-500"> |
| 75 | + By downloading these logos, you agree to our{' '} |
| 76 | + <Link href="/brand" className="text-blue-600 hover:underline"> |
| 77 | + Brand Guidelines |
| 78 | + </Link> |
| 79 | + . |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + ); |
| 83 | +} |
0 commit comments