Skip to content

Commit 74477b8

Browse files
author
My Trang Hong
committed
move back display grid, reduce intervall time for drawing
1 parent 3936b91 commit 74477b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ drawBtn.map((btn) => {
5858
intervall = setInterval(() => {
5959
e.preventDefault();
6060
draw({ key: e.target.id });
61-
}, 20);
61+
}, 50);
6262
});
6363
btn.addEventListener("mouseup", function (e) {
6464
clearInterval(intervall);

main.css

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
body {
22
min-height: 100vh;
3-
background: white;
4-
background: url(https://source.unsplash.com/user/erondu/1600x900);
3+
display: grid;
4+
align-items: center;
5+
justify-items: center;
6+
background: url(https://source.unsplash.com/user/erondu/1600x900) white;
57
background-size: cover;
68
}
79

@@ -61,6 +63,7 @@ canvas.shake {
6163
canvas {
6264
width: 100%;
6365
max-width: 85vw;
66+
align-items: flex-start;
6467
height: auto;
6568
}
6669
.action--buttons {

0 commit comments

Comments
 (0)