Commit 4907301 1 parent 9a9bb97 commit 4907301 Copy full SHA for 4907301
File tree 2 files changed +42
-5
lines changed
2 files changed +42
-5
lines changed Original file line number Diff line number Diff line change
1
+ import Link from "next/link" ;
1
2
import { DocsList } from "@/components/docs/docs-list" ;
3
+ import { Button } from "@/lib/components/core/default/button" ;
2
4
import { IconsList } from "./icons-list" ;
3
5
4
6
export const Explore = ( { className } : { className : string } ) => {
5
7
const categories = [
6
8
{ title : "components" , slug : "components" } ,
7
9
{ title : "hooks" , slug : "hooks" } ,
8
10
{ title : "blocks" , slug : "blocks" } ,
9
- { title : "Animations" , slug : "components/animations" } ,
10
11
] ;
11
12
return (
12
13
< div className = { className } >
@@ -18,17 +19,30 @@ export const Explore = ({ className }: { className: string }) => {
18
19
{ category . title }
19
20
</ h3 >
20
21
< 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
+ />
22
27
</ div >
23
28
</ div >
24
29
) ) }
25
30
< div >
26
31
< h3 className = "category-xl pl-6 font-mono text-xl tracking-widest text-muted-foreground" >
27
32
Icons
28
33
</ 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
+ >
30
39
< IconsList limit = { 32 } />
31
40
</ 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 >
32
46
</ div >
33
47
</ div >
34
48
</ div >
Original file line number Diff line number Diff line change @@ -6,16 +6,27 @@ import {
6
6
BellIcon ,
7
7
BluetoothIcon ,
8
8
BoldIcon ,
9
+ BoxIcon ,
10
+ BriefcaseIcon ,
11
+ CheckIcon ,
9
12
CodeIcon ,
13
+ HandIcon ,
10
14
InboxIcon ,
15
+ Layers3Icon ,
11
16
LinkIcon ,
17
+ ListIcon ,
18
+ LockIcon ,
12
19
MailIcon ,
20
+ MessageCircleIcon ,
13
21
MoonIcon ,
14
22
PhoneIcon ,
15
23
ScreenShareIcon ,
24
+ SearchIcon ,
16
25
SmileIcon ,
17
26
SparkleIcon ,
27
+ StretchVerticalIcon ,
18
28
SunIcon ,
29
+ ThumbsUpIcon ,
19
30
UserRoundIcon ,
20
31
Volume2Icon ,
21
32
ZapIcon ,
@@ -25,7 +36,6 @@ const icons = [
25
36
CodeIcon ,
26
37
BellIcon ,
27
38
InboxIcon ,
28
- MoonIcon ,
29
39
MailIcon ,
30
40
AtSignIcon ,
31
41
LinkIcon ,
@@ -42,6 +52,19 @@ const icons = [
42
52
SmileIcon ,
43
53
ScreenShareIcon ,
44
54
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 ,
45
68
] ;
46
69
47
70
export const IconsList = ( { limit } : { limit ?: number } ) => {
@@ -52,7 +75,7 @@ export const IconsList = ({ limit }: { limit?: number }) => {
52
75
key = { i }
53
76
className = "flex h-16 items-center justify-center rounded-md bg-card shadow"
54
77
>
55
- < Icon size = { 18 } />
78
+ < Icon size = { 20 } />
56
79
</ div >
57
80
) ) }
58
81
</ >
You can’t perform that action at this time.
0 commit comments