-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
84 lines (82 loc) · 1.94 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Stupid Hackathon Thailand Portal</title>
<style>
body {
background: black;
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial,
sans-serif;
}
#events {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: 0;
padding: 0;
display: grid;
grid: auto-flow / repeat(var(--column-count), 1fr);
list-style: none;
--column-count: 1;
}
@media (min-aspect-ratio: 1/2) {
#events {
--column-count: 2;
}
}
@media (min-aspect-ratio: 3/2) {
#events {
--column-count: 3;
}
}
.event {
position: relative;
background-size: cover;
background-repeat: none;
background-position: center;
transition: filter 200ms ease;
}
.event:hover {
filter: brightness(0.75);
}
.event > a {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
text-decoration: none;
}
.event-info {
padding: 8px;
position: absolute;
top: 0;
left: 0;
background: #0009;
color: white;
}
</style>
</head>
<body>
<nav>
<ul id="events">
{% for event in site.data.events %}
<li class="event" style="background-image: url({{ event.image }})">
<a href="{{ event.url }}">
<div class="event-info">{{ event.title }}</div>
</a>
</li>
{% endfor %}
</ul>
</nav>
</body>
</html>