Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.

Commit 9e1a83b

Browse files
Add deprecation banner to all pages (#39)
1 parent 7f79787 commit 9e1a83b

12 files changed

Lines changed: 33 additions & 0 deletions

views/banner.tpl.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<div class="w-full bg-yellow-50 dark:bg-yellow-900/20 border-b-2 border-yellow-400 dark:border-yellow-600 px-4 py-3">
2+
<div class="max-w-screen-xl mx-auto flex flex-col sm:flex-row items-start sm:items-center gap-3 sm:gap-4">
3+
<div class="flex items-start gap-3 flex-1">
4+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6 text-yellow-600 dark:text-yellow-500 shrink-0 mt-0.5 sm:mt-0">
5+
<path fill-rule="evenodd" d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd" />
6+
</svg>
7+
<p class="text-sm text-yellow-900 dark:text-yellow-200 font-medium">
8+
<strong>waka.hackclub.com</strong> is no longer supported; please migrate to <strong>hackatime.hackclub.com</strong>
9+
</p>
10+
</div>
11+
<a
12+
href="https://forms.hackclub.com/hackatime"
13+
target="_blank"
14+
rel="noopener noreferrer"
15+
class="text-sm font-semibold text-yellow-900 dark:text-yellow-200 bg-yellow-200 dark:bg-yellow-800/50 hover:bg-yellow-300 dark:hover:bg-yellow-700/50 px-4 py-2 rounded border border-yellow-400 dark:border-yellow-600 transition-colors whitespace-nowrap shrink-0"
16+
>
17+
Missing something in Hackatime v2?
18+
</a>
19+
</div>
20+
</div>

views/imprint.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "header.tpl.html" . }}
910

1011
<style>

views/index.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="relative bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen max-w-screen- mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "header.tpl.html" . }}
910

1011
<style>

views/leaderboard.tpl.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
<body class="relative bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center">
1111

12+
{{ template "banner.tpl.html" . }}
13+
1214
{{ template "alerts.tpl.html" . }}
1315

1416
{{ if .User }}

views/login.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen max-w-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "header.tpl.html" . }} {{ template "alerts.tpl.html" . }}
910

1011
<style>

views/projects.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="relative bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "alerts.tpl.html" . }} {{ template "menu-main.tpl.html" . }}
910

1011
<main

views/reset-password.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "header.tpl.html" . }} {{ template "alerts.tpl.html" . }}
910

1011
<style>

views/set-password.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "header.tpl.html" . }} {{ template "alerts.tpl.html" . }}
910

1011
<style>

views/settings.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<body
1616
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen mx-auto justify-center"
1717
>
18+
{{ template "banner.tpl.html" . }}
1819
<style>
1920
.inline-bullet-list li a {
2021
text-decoration: underline;

views/shop.tpl.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<body
66
class="bg-background dark:bg-background-dark text-text-primary dark:text-text-dark-primary p-4 pt-10 flex flex-col min-h-screen max-w-screen mx-auto justify-center"
77
>
8+
{{ template "banner.tpl.html" . }}
89
{{ template "menu-main.tpl.html" . }} {{ template "alerts.tpl.html" . }}
910

1011
<style>

0 commit comments

Comments
 (0)