Skip to content

Commit 4907301

Browse files
committed
fix: responsive home page
1 parent 9a9bb97 commit 4907301

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

src/components/marketing/explore.tsx

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
import Link from "next/link";
12
import { DocsList } from "@/components/docs/docs-list";
3+
import { Button } from "@/lib/components/core/default/button";
24
import { IconsList } from "./icons-list";
35

46
export const Explore = ({ className }: { className: string }) => {
57
const categories = [
68
{ title: "components", slug: "components" },
79
{ title: "hooks", slug: "hooks" },
810
{ title: "blocks", slug: "blocks" },
9-
{ title: "Animations", slug: "components/animations" },
1011
];
1112
return (
1213
<div className={className}>
@@ -18,17 +19,30 @@ export const Explore = ({ className }: { className: string }) => {
1819
{category.title}
1920
</h3>
2021
<div className="border-l border-muted pb-8 pl-6 pt-4">
21-
<DocsList name={category.slug} limit={4} className="grid-cols-4" />
22+
<DocsList
23+
name={category.slug}
24+
limit={4}
25+
className="grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
26+
/>
2227
</div>
2328
</div>
2429
))}
2530
<div>
2631
<h3 className="category-xl pl-6 font-mono text-xl tracking-widest text-muted-foreground">
2732
Icons
2833
</h3>
29-
<div className={"grid grid-cols-16 gap-2 border-l border-muted pb-1 pl-6 pt-4"}>
34+
<div
35+
className={
36+
"grid grid-cols-4 gap-2 border-l border-muted pb-1 pl-6 pt-4 sm:grid-cols-8 lg:grid-cols-16"
37+
}
38+
>
3039
<IconsList limit={32} />
3140
</div>
41+
<div className="flex justify-end">
42+
<Button size="sm" variant="link" className="mt-4 block">
43+
<Link href="/icons">Explore more</Link>
44+
</Button>
45+
</div>
3246
</div>
3347
</div>
3448
</div>

src/components/marketing/icons-list.tsx

+25-2
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,27 @@ import {
66
BellIcon,
77
BluetoothIcon,
88
BoldIcon,
9+
BoxIcon,
10+
BriefcaseIcon,
11+
CheckIcon,
912
CodeIcon,
13+
HandIcon,
1014
InboxIcon,
15+
Layers3Icon,
1116
LinkIcon,
17+
ListIcon,
18+
LockIcon,
1219
MailIcon,
20+
MessageCircleIcon,
1321
MoonIcon,
1422
PhoneIcon,
1523
ScreenShareIcon,
24+
SearchIcon,
1625
SmileIcon,
1726
SparkleIcon,
27+
StretchVerticalIcon,
1828
SunIcon,
29+
ThumbsUpIcon,
1930
UserRoundIcon,
2031
Volume2Icon,
2132
ZapIcon,
@@ -25,7 +36,6 @@ const icons = [
2536
CodeIcon,
2637
BellIcon,
2738
InboxIcon,
28-
MoonIcon,
2939
MailIcon,
3040
AtSignIcon,
3141
LinkIcon,
@@ -42,6 +52,19 @@ const icons = [
4252
SmileIcon,
4353
ScreenShareIcon,
4454
PhoneIcon,
55+
HandIcon,
56+
Layers3Icon,
57+
InboxIcon,
58+
ListIcon,
59+
LockIcon,
60+
MessageCircleIcon,
61+
SearchIcon,
62+
StretchVerticalIcon,
63+
ThumbsUpIcon,
64+
AtSignIcon,
65+
BoxIcon,
66+
BriefcaseIcon,
67+
CheckIcon,
4568
];
4669

4770
export const IconsList = ({ limit }: { limit?: number }) => {
@@ -52,7 +75,7 @@ export const IconsList = ({ limit }: { limit?: number }) => {
5275
key={i}
5376
className="flex h-16 items-center justify-center rounded-md bg-card shadow"
5477
>
55-
<Icon size={18} />
78+
<Icon size={20} />
5679
</div>
5780
))}
5881
</>

0 commit comments

Comments
 (0)