File tree Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Expand file tree Collapse file tree 5 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ function ClearBtn ( ) {
2
+ return (
3
+ < div className = "border block flex items-center justify-center mt-5" >
4
+ < button
5
+ type = "button"
6
+ className = "text-white bg-gradient-to-r from-red-400 via-red-500 to-red-600 hover:bg-gradient-to-br font-medium rounded-lg text-sm px-5 py-2.5 text-center"
7
+ >
8
+ Clear
9
+ </ button >
10
+ </ div >
11
+ ) ;
12
+ }
13
+
14
+ export default ClearBtn ;
Original file line number Diff line number Diff line change 1
1
/* eslint-disable react/prop-types */
2
2
function ColorPicker ( props ) {
3
3
return (
4
- < div className = "flex p-1 items-center justify-around" >
4
+ < div className = "flex p-1 items-center justify-around mt-3 " >
5
5
< h1 className = "font-sans text-lg antialiased font-semibold text-white" >
6
6
{ props . name }
7
7
</ h1 >
Original file line number Diff line number Diff line change 1
1
function StrokeWidthPicker ( ) {
2
2
return (
3
- < div className = "flex p-1 items-center justify-around" >
3
+ < div className = "flex p-1 items-center justify-around mt-4 " >
4
4
< h1 className = "font-sans text-lg antialiased font-semibold text-white" >
5
5
Stroke :
6
6
</ h1 >
7
7
< input
8
8
type = "number"
9
9
placeholder = "2"
10
10
defaultValue = { 2 }
11
- className = "w-12 p-1 h-7 block border border-gray-800 cursor-pointer rounded-lg "
11
+ className = "w-12 p-1 h-7 block border border-gray-800 cursor-pointer rounded-md "
12
12
> </ input >
13
13
</ div >
14
14
) ;
Original file line number Diff line number Diff line change 1
1
import ColorPicker from "./ColorPicker" ;
2
2
import StrokeWidthPicker from "./StrokeWidthPicker" ;
3
+ import ClearBtn from "./ClearBtn" ;
3
4
4
5
function Toolbar ( ) {
5
6
return (
6
- < div className = "block w-full mt-20" >
7
+ < div className = "block w-full mt-20 border align-center " >
7
8
< ColorPicker name = "Colors :" defaultColor = "#000000" > </ ColorPicker >
8
9
< ColorPicker name = "Canvas :" defaultColor = "#FFFFFF" > </ ColorPicker >
9
10
< StrokeWidthPicker > </ StrokeWidthPicker >
11
+ < ClearBtn > </ ClearBtn >
10
12
</ div >
11
13
) ;
12
14
}
You can’t perform that action at this time.
0 commit comments