Skip to content

Commit 65f74b7

Browse files
committed
implemented toolbar
1 parent 3b32300 commit 65f74b7

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

client/src/components/ClearBtn.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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;

client/src/components/ColorPicker.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable react/prop-types */
22
function ColorPicker(props){
33
return (
4-
<div className="flex p-1 items-center justify-around">
4+
<div className="flex p-1 items-center justify-around mt-3">
55
<h1 className="font-sans text-lg antialiased font-semibold text-white">
66
{props.name}
77
</h1>

client/src/components/Socials.jsx

Whitespace-only changes.

client/src/components/StrokeWidthPicker.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
function StrokeWidthPicker(){
22
return (
3-
<div className="flex p-1 items-center justify-around">
3+
<div className="flex p-1 items-center justify-around mt-4">
44
<h1 className="font-sans text-lg antialiased font-semibold text-white">
55
Stroke :
66
</h1>
77
<input
88
type="number"
99
placeholder="2"
1010
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"
1212
></input>
1313
</div>
1414
);

client/src/components/Toolbar.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import ColorPicker from "./ColorPicker";
22
import StrokeWidthPicker from "./StrokeWidthPicker";
3+
import ClearBtn from "./ClearBtn";
34

45
function Toolbar(){
56
return (
6-
<div className="block w-full mt-20">
7+
<div className="block w-full mt-20 border align-center">
78
<ColorPicker name="Colors :" defaultColor="#000000"></ColorPicker>
89
<ColorPicker name="Canvas :" defaultColor="#FFFFFF"></ColorPicker>
910
<StrokeWidthPicker></StrokeWidthPicker>
11+
<ClearBtn></ClearBtn>
1012
</div>
1113
);
1214
}

0 commit comments

Comments
 (0)