peakup.icu

This commit is contained in:
2026-05-01 21:14:36 +02:00
parent b1441d493f
commit 93873b721d
9 changed files with 21 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
package com.peakup.common;
import io.quarkus.qute.TemplateGlobal;
import org.eclipse.microprofile.config.ConfigProvider;
public class AppTemplateGlobals {
@TemplateGlobal(name = "appBaseUrl")
static String appBaseUrl() {
return ConfigProvider.getConfig()
.getOptionalValue("peakup.app.base-url", String.class)
.orElse("https://peakup.icu");
}
}

View File

@@ -25,6 +25,7 @@ peakup.notifications.tss-high-threshold=70.0
peakup.notifications.tss-very-high-threshold=150.0
peakup.notifications.goal-progress-threshold=0.7
peakup.notifications.activities-milestone-count=6
peakup.app.base-url=https://peakup.icu
# mailer
quarkus.mailer.from=peakup@peakup.app
quarkus.mailer.host=${SMTP_HOST:smtp.gmail.com}

View File

@@ -31,7 +31,7 @@
Quality recovery is what turns hard sessions into real gains.
</p>
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px;">
Back to Dashboard →
</a>

View File

@@ -31,7 +31,7 @@
You've done the hard work, now let your body adapt.
</p>
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px;">
Back to Dashboard →
</a>

View File

@@ -36,7 +36,7 @@
Set your next target and keep raising the bar. 🚀
</p>
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px;">
Back to Dashboard →
</a>

View File

@@ -36,7 +36,7 @@
Every session counts now. 💪
</p>
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px;">
Back to Dashboard →
</a>

View File

@@ -36,7 +36,7 @@
Keep it up – every session makes you stronger and brings you closer to your goals.
</p>
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px;">
Back to Dashboard →
</a>

View File

@@ -30,7 +30,7 @@
</div>
{/for}
<a href="http://peakup/dashboard"
<a href="{appBaseUrl}/dashboard"
style="display:inline-block; background:linear-gradient(to right, #EF4444, #F97316); color:white; font-weight:600; padding:16px 32px; border-radius:9999px; text-decoration:none; font-size:17px; margin-top:16px;">
Go to Dashboard →
</a>

BIN
resources/Badges.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 KiB