-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (65 loc) · 1.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Etch-a-Sketch</title>
<style>
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
}
body {
display: flex;
flex-direction: column;
}
#controls {
display: flex;
justify-content: center;
align-items: center;
}
a {
font-size: 48px;
margin: 10px 60px;
padding: 20px;
text-decoration: none;
border: 2px solid lightseagreen;
border-radius: 5px;
background-color: #252525;
color: #ccc;
transition: .3s all;
}
a:hover {
background-color: lightseagreen;
color: #252525;
border-color: #252525;
}
#container {
display: grid;
--cell: 14;
grid-template: repeat(var(--cell), 1fr) / repeat(var(--cell), 1fr);
height: 100%;
width: 100vmin;
margin: 0 auto 20px auto;
gap: 1px;
}
#container div {
border: 1px solid black;
}
</style>
</head>
<body>
<div id="controls">
<a href="#" class="btn" id="setgrid">Set grid</a>
<a href="#" class="btn" id="resetgrid">Reset </a>
</div>
<div id="container">
</div>
<script src="./index.js"></script>
</body>
</html>