File tree 3 files changed +18
-9
lines changed 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ type PluginCardProps = {
5
5
plugin : Plugin ;
6
6
}
7
7
export function PluginCard ( { plugin } : PluginCardProps ) {
8
- return < section className = "border gap-4 flex flex-col max-w-[314px] hover:scale-[1.01] p-4 pt-6 m-auto w-full border-card-border rounded-md h-[300px]" >
8
+ return < section className = "border gap-4 flex
9
+ flex-col max-w-[314px] hover:scale-[1.01]
10
+ p-4 pt-6 m-auto w-full border-card-border rounded-md h-[300px]" >
9
11
< div className = "flex-1 flex flex-col gap-4" >
10
12
< div >
11
13
< div >
@@ -27,9 +29,11 @@ export function PluginCard({ plugin }: PluginCardProps) {
27
29
Read more
28
30
</ button >
29
31
30
- < button className = "bg-brand-purple text-[12px] flex justify-center items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white" > < span >
31
- View in NPM
32
- </ span >
32
+ < button className = "bg-brand-purple text-[12px] flex justify-center
33
+ items-center gap-1 px-4 pt-[6px] pb-[7px] rounded-md text-white" >
34
+ < span >
35
+ View in NPM
36
+ </ span >
33
37
< ExternalLink className = "w-4" /> </ button >
34
38
</ div >
35
39
Original file line number Diff line number Diff line change @@ -14,9 +14,13 @@ export default function PluginSearchBar() {
14
14
}
15
15
}
16
16
return < div >
17
- < div className = 'bg-slate-900 border focus-within:ring-2 focus-within:ring-slate-300 border-slate-300 flex rounded-md gap-2 px-3 py-2 max-w-[500px] w-full' >
17
+ < div className = 'bg-slate-900 border focus-within:ring-2 focus-within:ring-slate-300 border-slate-300
18
+ flex rounded-md gap-2 px-3 py-2 max-w-[500px] w-full' >
18
19
< Search className = 'text-slate-300 w-4' />
19
- < input value = { searchQuery } onChange = { ( e ) => setSearchQuery ( e . target . value ) } placeholder = 'Search plugins...' className = 'bg-transparent focus:border-0 focus:outline-none focus:ring-0 placeholder:text-sm text-slate-300 rounded-md w-full' />
20
+ < input value = { searchQuery } onChange = { ( e ) => setSearchQuery ( e . target . value ) }
21
+ placeholder = 'Search plugins...'
22
+ className = 'bg-transparent focus:border-0 focus:outline-none focus:ring-0
23
+ placeholder:text-sm text-slate-300 rounded-md w-full' />
20
24
</ div >
21
25
</ div >
22
26
}
Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ const Plugins: React.FC = () => {
22
22
< div className = 'p-8 flex flex-col gap-8 max-w-[1024px] m-auto' >
23
23
< PluginSearchBar />
24
24
< div className = 'grid xs:grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-x-16 gap-y-8' >
25
- { isLoading ? Array . from ( { length : 9 } ) . map ( ( _ , i ) => < Skeleton key = { i } width = "280px" containerClassName = 'm-auto' height = "300px" /> ) :
25
+ { isLoading ? Array . from ( { length : 9 } ) . map ( ( _ , i ) =>
26
+ < Skeleton key = { i } width = "280px" containerClassName = 'm-auto' height = "300px" /> ) :
26
27
plugins . length > 0 && plugins . map ( plugin => {
27
28
return < PluginCard key = { plugin . id } plugin = { plugin } />
28
29
} ) }
29
30
</ div >
30
- { ! isLoading && error && < h1 className = 'text-white text-lg flex items-center justify-center ' > { error } </ h1 >
31
- }
31
+ { ! isLoading && error &&
32
+ < h1 className = 'text-white text-lg flex items-center justify-center ' > { error } </ h1 > }
32
33
{
33
34
! error && ! isLoading && plugins . length == 0 &&
34
35
< h1 className = 'text-white text-lg flex items-center justify-center ' > No search results found...</ h1 >
You can’t perform that action at this time.
0 commit comments