-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.html
158 lines (153 loc) · 6.58 KB
/
template.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!DOCTYPE html>
<html>
<!-- prettier-ignore -->
<script>
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('phc_kIXwBmYioc5HeQy0WzvwoFndR6wDnx681dhq756xlxs',{api_host:'https://eu.posthog.com'})
</script>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="logo32.png" type="image/png" />
<link rel="icon" href="logo.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="logo180.png" />
<meta
name="description"
content="Finde alle Tanzevents und Perfektionen in Wien."
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,600;0,700;1,500&display=swap"
rel="stylesheet"
/>
<link href="index.css" rel="stylesheet" />
<title>DanceTime</title>
</head>
<body class="max-w-full min-h-max">
<div class="text-center font-bold pt-16 pb-16">
<h1 class="text-6xl pb-4 px-4">DanceTime</h1>
<div class="px-4">Finde alle Tanzevents und Perfektionen in Wien.</div>
</div>
<div class="relative w-full">
<div
class="absolute top-4 h-full w-full bg-[var(--background-accent-color)] border-x-2 border-t-2 rounded-t-3xl border-[var(--text-color)]"
></div>
<div class="relative w-full px-5 mb-2">
<div
class="rounded-full mr-auto ml-auto px-2 w-fit mb-5 h-8 bg-[var(--accent1-color)] text-center text-sm flex items-center card-border card-shadow"
>
Aktualisiert am: {{metadata.crawled_at.strftime('%d.%m.%Y um %H:%M')}}
</div>
{% for event in events %}
<a
href="{{event.website}}"
class="block w-full bg-[var(--background-color)] rounded-2xl card-border card-shadow pt-2 pb-2.5 px-4 mb-5 last:mb-4 max-w-xl mx-auto"
>
<div class="text-lg mb-0.5">{{event.name}}</div>
<div
class="flex justify-between text-sm text-[var(--text-secondary-color)]"
>
<div>
<span class="pr-1.5">{{format_date(event.starts_at)}}</span>
<span
>{{event.starts_at.strftime('%H:%M')}} -
{{event.ends_at.strftime('%H:%M') if event.ends_at else
"unbekannt"}}</span
>
{% if event.price_euro_cent is not none %}
<span> ⋅ {{format_price(event.price_euro_cent)}}</span>
{% endif %}
</div>
<span>{{event.dancing_school}}</span>
</div>
</a>
{% endfor %}
</div>
</div>
<div
class="h-5 w-full bg-[var(--background-accent-color)] border-x-2 border-[var(--text-color)]"
>
<!-- This is just an extra padding -->
</div>
<div
class="bg-[var(--accent1-color)] card-border border-b-0 py-4 border-[var(--text-color)]"
>
<div class="content">
<h2 class="text-2xl font-bold">Kalender Integration</h2>
<img src="/calendar.png" />
<div
class="w-full max-w-xl text-center mx-auto mb-3 py-2 px-3 card-border card-shadow rounded-xl bg-[var(--background-color)]"
>
https://dancetime.flofriday.dev/events.ics
</div>
<p>
Über diesen Link können die Events auch als Kalender abonniert werden.
<br />
Hier sind Anleitungen für ein paar Apps um ics Kalender einzubinden:
</p>
<ul class="list-disc p-3 pl-8">
<li>
<a
class="link"
href="https://support.apple.com/de-de/guide/iphone/iph3d1110d4/ios"
>iPhone Kalender</a
>
</li>
<li>
<a
class="link"
href="https://support.apple.com/de-de/guide/calendar/icl1022/mac"
>macOS Kalender</a
>
</li>
<li>
<a
class="link"
href="https://support.google.com/calendar/answer/37100?hl=de&co=GENIE.Platform%3DDesktop&oco=1"
>Google Kalender</a
>
</li>
<li>
<a
class="link"
href="https://support.microsoft.com/de-de/office/importieren-oder-abonnieren-eines-kalenders-in-outlook-com-cff1429c-5af6-41ec-a5b4-74f2c278e98c"
>Outlook Kalender</a
>
</li>
</ul>
</div>
</div>
<div
class="bg-[var(--download-color)] card-border border-b-0 py-4 border-[var(--text-color)]"
>
<div class="content">
<h2 class="text-2xl font-bold">Herunterladen</h2>
<p>
Diese Webseite sammelt jede Stunde Events automatisch. Diese werden
nicht nur hier angzeigt sondern können auch in den folgenden Formaten
heruntergeladen werden:
</p>
<ul class="list-disc p-3 pl-8">
<li><a class="link" href="/events.csv">CSV (Excel)</a></li>
<li>
<a class="link" href="/events.json">JSON API (für Entwickler)</a>
</li>
</ul>
</div>
</div>
<div
class="bg-[var(--footer-color)] card-border py-4 border-[var(--text-color)]"
>
<div class="content flex justify-between">
<span>Erstellt mit ❤️ von Tänzern</span>
<span class="text-right"
>Open Source auf
<a class="link" href="https://github.com/flofriday/dancetime"
>GitHub</a
></span
>
</div>
</div>
</body>
</html>