File tree Expand file tree Collapse file tree 4 files changed +56
-21
lines changed Expand file tree Collapse file tree 4 files changed +56
-21
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,11 @@ import "react-lazy-load-image-component/src/effects/blur.css";
5
5
6
6
function AddIconForm ( props : any ) {
7
7
return (
8
- < IconForm >
9
- < AddImageBtn className = "btn btn-primary " onClick = { props . addFile } >
8
+ < div className = "text-center bg-gray-700/10 dark:bg-gray-700/40 py-3 rounded" >
9
+ < button className = "bg-blue-600 px-5 py-3 text-white rounded-md " onClick = { props . addFile } >
10
10
Upload Image
11
- </ AddImageBtn >
12
- < p className = "title" > You can also choose from our library of icons</ p >
13
- < div className = "gallery" >
14
- { /* <LazyLoadImage
15
- className="upload-image"
16
- src={meme1}
17
- alt="icon"
18
- onClick={props.addIcon}
19
- width="40px"
20
- height="40px"
21
- effect="blur"
22
- placeholderSrc={"/images/icon-canvas.png"}
23
- /> */ }
24
- </ div >
25
- </ IconForm >
11
+ </ button >
12
+ </ div >
26
13
) ;
27
14
}
28
15
Original file line number Diff line number Diff line change 1
1
import styled from "styled-components" ;
2
2
3
- export const Container = styled . div `
3
+ export function Container ( { children } : any ) {
4
+ return (
5
+ < div className = "text-black dark:text-white max-w-[1100px] p-4 [&>input]:text-[16px]" > { children } </ div >
6
+ )
7
+ }
8
+
9
+ export const _Container = styled . div `
4
10
color: var(--text-dark);
5
11
max-width: 1100px;
6
12
padding: 1rem;
@@ -10,7 +16,31 @@ export const Container = styled.div`
10
16
}
11
17
` ;
12
18
13
- export const HomeCategory = styled . section `
19
+ export function HomeCategory ( { children } : any ) {
20
+ return (
21
+ < section
22
+ className = "
23
+ max-w-[1100px]
24
+ p-4
25
+ [&>.categoryHeader]:flex
26
+ [&>.categoryHeader]:items-center
27
+ [&>.categoryHeader]:justify-between
28
+ [&>.categoryHeader]:mb-2
29
+ [&>.categoryHeader>.category]:border
30
+ [&>.categoryHeader>.category]:border-[#73707e4f]
31
+ [&>.categoryHeader>.category]:outline-none
32
+ [&>.categoryHeader>.category]:box-border
33
+ [&>.categoryHeader>.category]:py-2
34
+ [&>.categoryHeader>.category]:px-3
35
+
36
+ "
37
+ >
38
+ { children }
39
+ </ section >
40
+ )
41
+ }
42
+
43
+ export const _HomeCategory = styled . section `
14
44
max-width: 1100px;
15
45
padding: 1rem;
16
46
@@ -69,6 +99,21 @@ export const HomeCategory = styled.section`
69
99
}
70
100
` ;
71
101
102
+ export function _Flex ( { children } : any ) {
103
+ return (
104
+ < div
105
+ className = "
106
+ max-w-[1000px]
107
+ mx-auto
108
+ grid
109
+
110
+ "
111
+ >
112
+ { children }
113
+ </ div >
114
+ )
115
+ }
116
+
72
117
export const Flex = styled . div `
73
118
max-width: 1000px;
74
119
margin-left: auto;
Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ function Create() {
325
325
</ HomeCategory >
326
326
327
327
{ isModalOpen && (
328
- < div className = "hover:border-2 p -3" >
328
+ < div className = "my -3" >
329
329
< AddIconForm addFile = { addFile } addIcon = { AddIconToCanvas } />
330
330
</ div >
331
331
) }
Original file line number Diff line number Diff line change @@ -12,5 +12,8 @@ module.exports = {
12
12
} ,
13
13
} ,
14
14
} ,
15
- plugins : [ require ( "flowbite/plugin" ) , require ( "tailwind-scrollbar" ) ] ,
15
+ plugins : [
16
+ require ( "flowbite/plugin" ) ,
17
+ require ( "tailwind-scrollbar" )
18
+ ] ,
16
19
} ;
You can’t perform that action at this time.
0 commit comments