Merge branch 'VERT-sh:main' into main

This commit is contained in:
David 2026-04-13 10:13:26 +02:00 committed by GitHub
commit f2af2d4f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 10 deletions

View File

@ -20,8 +20,8 @@ jobs:
- name: build - name: build
env: env:
BASE_PATH: "/${{ github.event.repository.name }}" BASE_PATH: "/${{ github.event.repository.name }}"
PUB_HOSTNAME: "" PUB_HOSTNAME: "vert.sh"
PUB_PLAUSIBLE_URL: "" PUB_PLAUSIBLE_URL: "https://ats.vert.sh"
PUB_ENV: "production" PUB_ENV: "production"
PUB_VERTD_URL: "https://vertd.vert.sh" PUB_VERTD_URL: "https://vertd.vert.sh"
PUB_DISABLE_ALL_EXTERNAL_REQUESTS: "false" PUB_DISABLE_ALL_EXTERNAL_REQUESTS: "false"

View File

@ -1,5 +0,0 @@
export const load = () => {
const isAprilFools =
new Date().getDate() === 1 && new Date().getMonth() === 3;
return { isAprilFools };
};

View File

@ -26,8 +26,9 @@
import { m } from "$lib/paraglide/messages.js"; import { m } from "$lib/paraglide/messages.js";
import { log } from "$lib/util/logger.js"; import { log } from "$lib/util/logger.js";
let { children, data } = $props(); let { children } = $props();
let enablePlausible = $state(false); let enablePlausible = $state(false);
let isAprilFools = $state(false);
let scrollPositions = new Map<string, number>(); let scrollPositions = new Map<string, number>();
@ -67,6 +68,9 @@
}; };
onMount(() => { onMount(() => {
const now = new Date();
isAprilFools = now.getDate() === 1 && now.getMonth() === 3;
initAnimStores(); initAnimStores();
const handleResize = () => { const handleResize = () => {
@ -166,7 +170,7 @@
src="{PUB_PLAUSIBLE_URL}/js/script.js" src="{PUB_PLAUSIBLE_URL}/js/script.js"
></script> ></script>
{/if} {/if}
{#if data.isAprilFools} {#if isAprilFools}
<style> <style>
* { * {
font-family: "Comic Sans MS", "Comic Sans", cursive !important; font-family: "Comic Sans MS", "Comic Sans", cursive !important;

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -16,6 +16,18 @@
"src": "lettermark.jpg", "src": "lettermark.jpg",
"sizes": "512x512", "sizes": "512x512",
"type": "image/jpeg" "type": "image/jpeg"
},
{
"src": "lettermark_maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "lettermark_maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
} }
] ]
} }