mirror of https://github.com/VERT-sh/VERT.git
Merge branch 'VERT-sh:main' into main
This commit is contained in:
commit
f2af2d4f30
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
export const load = () => {
|
|
||||||
const isAprilFools =
|
|
||||||
new Date().getDate() === 1 && new Date().getMonth() === 3;
|
|
||||||
return { isAprilFools };
|
|
||||||
};
|
|
||||||
|
|
@ -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 |
|
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue