File tree Expand file tree Collapse file tree 6 files changed +20
-4
lines changed Expand file tree Collapse file tree 6 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable react/prop-types */
2
2
function ClearBtn ( props ) {
3
3
return (
4
- < div className = "border block flex items-center justify-center mt-5" >
4
+ < div className = "block flex items-center justify-center mt-5" >
5
5
< button
6
6
type = "button"
7
7
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"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function ColorPicker(props){
8
8
< input
9
9
type = "color"
10
10
value = { props . defaultColor }
11
- className = "p-1 h-10 w-14 block bg-white border border-gray-800 cursor-pointer rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700"
11
+ className = "p-1 h-10 w-10 block bg-white border border-gray-800 cursor-pointer rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700"
12
12
> </ input >
13
13
</ div >
14
14
) ;
Original file line number Diff line number Diff line change
1
+ import eraserImg from "../assets/eraser.png" ;
2
+
3
+ function Eraser ( ) {
4
+ return (
5
+ < div className = "flex p-1 items-center justify-around mt-3" >
6
+ < h1 className = "font-sans text-lg antialiased font-semibold text-white" >
7
+ Eraser :
8
+ </ h1 >
9
+ < img src = { eraserImg } className = "h-8 w-8 rounded cursor-pointer" > </ img >
10
+ </ div >
11
+ ) ;
12
+ }
13
+
14
+ export default Eraser ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ function StrokeWidthPicker(){
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-md"
11
+ className = "w-12 p-1 h-8 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 2
2
import ColorPicker from "./ColorPicker" ;
3
3
import StrokeWidthPicker from "./StrokeWidthPicker" ;
4
4
import ClearBtn from "./ClearBtn" ;
5
+ import Eraser from "./Eraser" ;
5
6
6
7
function Toolbar ( props ) {
7
8
return (
8
- < div className = "block w-full mt-20 border align-center" >
9
+ < div className = "block w-full mt-20 align-center" >
9
10
< ColorPicker name = "Colors :" defaultColor = "#000000" > </ ColorPicker >
10
11
< ColorPicker name = "Canvas :" defaultColor = "#FFFFFF" > </ ColorPicker >
12
+ < Eraser > </ Eraser >
11
13
< StrokeWidthPicker > </ StrokeWidthPicker >
12
14
< ClearBtn clearOnClick = { props . clearOnClick } id = { props . id } > </ ClearBtn >
13
15
</ div >
You can’t perform that action at this time.
0 commit comments