Skip to content

Commit e0287e4

Browse files
committed
AAAAAAAAAAAAAAAAAAAAAAAA
1 parent 18a5342 commit e0287e4

File tree

4 files changed

+56
-21
lines changed

4 files changed

+56
-21
lines changed

src/components/Create/AddIconForm.tsx

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,11 @@ import "react-lazy-load-image-component/src/effects/blur.css";
55

66
function AddIconForm(props: any) {
77
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}>
1010
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>
2613
);
2714
}
2815

src/components/Create/Create.styled.js renamed to src/components/Create/Create.styled.tsx

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import styled from "styled-components";
22

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`
410
color: var(--text-dark);
511
max-width: 1100px;
612
padding: 1rem;
@@ -10,7 +16,31 @@ export const Container = styled.div`
1016
}
1117
`;
1218

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`
1444
max-width: 1100px;
1545
padding: 1rem;
1646
@@ -69,6 +99,21 @@ export const HomeCategory = styled.section`
6999
}
70100
`;
71101

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+
72117
export const Flex = styled.div`
73118
max-width: 1000px;
74119
margin-left: auto;

src/components/Create/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ function Create() {
325325
</HomeCategory>
326326

327327
{isModalOpen && (
328-
<div className="hover:border-2 p-3">
328+
<div className="my-3">
329329
<AddIconForm addFile={addFile} addIcon={AddIconToCanvas} />
330330
</div>
331331
)}

tailwind.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ module.exports = {
1212
},
1313
},
1414
},
15-
plugins: [require("flowbite/plugin"), require("tailwind-scrollbar")],
15+
plugins: [
16+
require("flowbite/plugin"),
17+
require("tailwind-scrollbar")
18+
],
1619
};

0 commit comments

Comments
 (0)