Skip to content

Commit fd35d51

Browse files
committed
adding logos
1 parent 689c9f3 commit fd35d51

File tree

4 files changed

+87
-1
lines changed

4 files changed

+87
-1
lines changed

public/waveful_logo.png

180 KB
Loading

src/components/layout/DocsLayout.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ export function DocsLayout({ children, className }: DocsLayoutProps) {
7676
{/* Overview */}
7777
<p className="mb-2 font-semibold text-gray-700 dark:text-gray-200">Overview</p>
7878
<ul className="mb-4 space-y-1">
79+
<li>
80+
<Link className="hover:underline" href="/logos">Logos</Link>
81+
</li>
7982
<li>
8083
<Link className="hover:underline" href="/colors">Colors</Link>
8184
</li>

src/pages/logos.tsx

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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+
}

src/theme/typography.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const typography = {
33
sans: "var(--font-sans, ui-sans-serif, system-ui, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial)",
44
mono: "var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New')",
55
},
6-
sizes: { xs: '0.75rem', sm: '0.875rem', md: '1rem', lg: '1.125rem', xl: '1.25rem', '2xl': '1.5rem', '3xl': '1.875rem' },
6+
sizes: { xs: '0.75rem', sm: '0.875rem', md: '1rem', lg: '1.125rem', xl: '1.25rem', '2xl': '1.5rem', '3xl': '1.875rem', '4xl': '2.25rem', '5xl': '3rem', '6xl': '3.75rem', '7xl': '4.5rem', '8xl': '6rem', '9xl': '8rem' },
77
weights: { regular: 400, medium: 500, semibold: 600, bold: 700 },
88
leading: { tight: 1.2, snug: 1.35, normal: 1.5, relaxed: 1.625 },
99
tracking: { tight: '-0.01em', normal: '0', wide: '0.02em' },

0 commit comments

Comments
 (0)