-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
Copy pathindex.html
executable file
·53 lines (49 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Console demo</title>
<style>
body {
margin: 0;
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
}
h1 {
font-size: 4.6rem;
}
code {
font-size: 120%;
}
.boxes {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
max-width: 60rem;
}
.title {
grid-column: span 2;
text-align: center;
}
.boxes div {
box-sizing: border-box;
width: 100%;
padding: 4rem;
font-size: 3rem;
color: white;
background-color: green;
}
</style>
<script src="script.js" defer></script>
</head>
<body>
<main class="boxes">
<h1 class="title">When <code>var</code> and scope collide!</h1>
<div class="left">color: <code class="color-value">green</code></div>
<div class="right">color: <code class="color-value">green</code></div>
</main>
</body>
</html>