-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (91 loc) · 1.96 KB
/
index.html
File metadata and controls
96 lines (91 loc) · 1.96 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<head>
<meta
name="viewport"
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
</head>
<body class="body">
<style>
* {
margin: 0;
}
.body {
background-color: wheat;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
height: 100vh;
height: 100dvh;
overflow-y: hidden;
padding: 16px;
}
.header {
margin: 0;
width: 100%;
text-align: center;
flex: auto 0 0;
color: #6d4735;
}
.main {
width: 100%;
flex: auto 0 0;
}
.table {
background: url('https://storage.yandexcloud.net/breadflip/table.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
margin: 0 auto;
padding: 20px;
height: 680px;
width: 100%;
max-width: 400px;
overflow-y: hidden;
text-align: center;
display: flex;
flex-direction: column;
gap: 4px;
}
.row {
width: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
background-color: #6d4735;
color: #eec6a2;
border-radius: 10px;
}
.row > div {
align-self: center;
}
.thead {
flex: auto 0 0;
}
.tbody {
flex: auto 0 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 6px;
}
</style>
<h1 class="header">Bread Flip Leaderboard</h1>
<main class="main">
<div class="table">
<!-- <div class="row thead">
<h2>Place</h2>
<h2>Player</h2>
<h2>Record</h2>
</div> -->
<div class="tbody">
{{range $id, $row := . }}
<div class="row">
<div>{{ len (printf "a%*s" $id "") }}</div>
<div>{{ $row.Player }}</div>
<div>{{ $row.Val }}</div>
</div>
{{ end }}
</div>
</div>
</main>
</body>