-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
33 lines (33 loc) · 939 Bytes
/
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
<!doctype html>
<html>
<head>
<title>drand dice roller | Chosen by fair dice roll. Guaranteed to be random.</title>
</head>
<body>
<div id="dice">20</div>
<button id="roll">Roll</button>
<style>
body {
margin: 0;
}
#dice {
background: url(dice.png) no-repeat scroll center/295px,
radial-gradient(ellipse at center, #ffffff 0%,#ce0000 100%);
height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 3.5rem;
font-weight: 900;
color: white;
line-height: 100vh;
text-align: center;
}
#roll {
position: absolute;
top: calc(50vh + 200px);
left: calc(50% - 50px);
width: 100px;
}
</style>
<script type="module" src="main.drand.js"></script>
</body>
</html>