Compare commits
10 Commits
01da718802
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
470d715a7a
|
|||
|
3948009c35
|
|||
|
a410830a93
|
|||
|
f1d7b60fae
|
|||
|
01077da029
|
|||
|
a195b074a7
|
|||
|
a8817115a3
|
|||
|
5639655f99
|
|||
|
ba4aa67ff1
|
|||
| 6fde748088 |
@@ -23,6 +23,7 @@
|
||||
import { t, l } from "astro-i18n";
|
||||
import { onMount } from "svelte";
|
||||
import { loggedIn } from "@repo/authv2.ts";
|
||||
import { astroI18n } from "astro-i18n";
|
||||
interface Props {
|
||||
logo?: import("svelte").Snippet;
|
||||
}
|
||||
@@ -34,6 +35,8 @@
|
||||
|
||||
let accountBtn = $state<HTMLAnchorElement>();
|
||||
|
||||
let currentPage = $state(astroI18n.route);
|
||||
|
||||
$effect(() => {
|
||||
if ($loggedIn) {
|
||||
accountBtn!.href = l("/dashboard");
|
||||
@@ -44,6 +47,11 @@
|
||||
|
||||
onMount(() => {
|
||||
handleScroll();
|
||||
|
||||
document.addEventListener("astro:page-load", () => {
|
||||
astroI18n.route = location.pathname;
|
||||
currentPage = astroI18n.route;
|
||||
});
|
||||
});
|
||||
|
||||
function handleScroll() {
|
||||
@@ -123,9 +131,14 @@
|
||||
<GlobeOutline />
|
||||
</button>
|
||||
<div>
|
||||
<a href={l("/")} onclick={() => cookieStore.delete("MANUAL_LANGUAGE")} class="btn btn-gray">Auto</a>
|
||||
<a href={l("/", {}, { targetLocale: "de" })} onclick={() => cookieStore.set("MANUAL_LANGUAGE", "TRUE")} class="btn btn-gray">Deutsch</a>
|
||||
<a href={l("/", {}, { targetLocale: "en" })} onclick={() => cookieStore.set("MANUAL_LANGUAGE", "TRUE")} class="btn btn-gray">English</a>
|
||||
<a
|
||||
data-astro-reload
|
||||
href={l(currentPage, {}, { targetLocale: typeof navigator !== "undefined" ? navigator.language.split("-")[0] : "de" })}
|
||||
onclick={() => cookieStore.delete("MANUAL_LANGUAGE")}
|
||||
class="btn btn-gray">Auto</a
|
||||
>
|
||||
<a data-astro-reload href={l(currentPage, {}, { targetLocale: "de" })} onclick={() => cookieStore.set("MANUAL_LANGUAGE", "TRUE")} class="btn btn-gray">Deutsch</a>
|
||||
<a data-astro-reload href={l(currentPage, {}, { targetLocale: "en" })} onclick={() => cookieStore.set("MANUAL_LANGUAGE", "TRUE")} class="btn btn-gray">English</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "SteamWarTeamserver",
|
||||
"description": "Dieses Plugin ermöglicht die einfache Einbindung deines Servers in SteamWar. Wie du deinen (Team-)Server über SteamWar erreichbar machen kannst findest du hier.",
|
||||
"url": {
|
||||
"Info": "/teamserverintegration",
|
||||
"Download": "https://git.steamwar.de/SteamWar/SteamWarTeamserverIntegration/releases/download/latest/SteamWarTeamserverIntegration.jar"
|
||||
},
|
||||
"sourceUrl": "https://git.steamwar.de/SteamWar/SteamWarTeamserverIntegration"
|
||||
}
|
||||
@@ -2,6 +2,17 @@
|
||||
eventId: 78
|
||||
mode: "warship"
|
||||
verwantwortlicher: "ItonaCA"
|
||||
viewConfig:
|
||||
groups:
|
||||
name: Gruppenphase
|
||||
view:
|
||||
type: "GROUP"
|
||||
groups: [14]
|
||||
elim:
|
||||
name: Finale
|
||||
view:
|
||||
type: "ELEMINATION"
|
||||
finalFight: 1661
|
||||
---
|
||||
|
||||
Ahoi Matrosen,
|
||||
|
||||
@@ -49,10 +49,10 @@ const featP = "text-neutral-400/85 text-[0.85rem] leading-[1.65] mt-1";
|
||||
<div class="absolute inset-0 h-[calc(100vh+1rem)]">
|
||||
<BackgroundImage />
|
||||
</div>
|
||||
<div class="absolute inset-0 z-[2] [background:linear-gradient(to_bottom,rgba(0,0,0,0.6)_0%,rgba(0,0,0,0.2)_35%,rgba(0,0,0,0.45)_65%,#080808_100%)]"></div>
|
||||
<div class="absolute inset-0 z-[3] pointer-events-none [background:repeating-linear-gradient(0deg,transparent_0px,transparent_3px,rgba(0,0,0,0.06)_3px,rgba(0,0,0,0.06)_4px)]"></div>
|
||||
<div class="absolute inset-0 [background:linear-gradient(to_bottom,rgba(0,0,0,0.6)_0%,rgba(0,0,0,0.2)_35%,rgba(0,0,0,0.45)_65%,#080808_100%)]"></div>
|
||||
<div class="absolute inset-0 pointer-events-none [background:repeating-linear-gradient(0deg,transparent_0px,transparent_3px,rgba(0,0,0,0.06)_3px,rgba(0,0,0,0.06)_4px)]"></div>
|
||||
|
||||
<div class="relative z-10 h-full flex flex-col items-center justify-center px-4">
|
||||
<div class="relative h-full flex flex-col items-center justify-center px-4">
|
||||
<h1 class="font-display text-[clamp(4.5rem,14vw,14rem)] font-black leading-[0.85] tracking-[-0.03em] select-none animate-[scaleIn_0.9s_0.25s_ease-out_both]">
|
||||
<span class="hero-text text-transparent">{t("home.title.first")}</span><span class="text-white [text-shadow:0_0_80px_rgba(255,255,255,0.06)]">{t("home.title.second")}</span>
|
||||
</h1>
|
||||
@@ -77,7 +77,7 @@ const featP = "text-neutral-400/85 text-[0.85rem] leading-[1.65] mt-1";
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="absolute bottom-6 left-1/2 -translate-x-1/2 z-20 w-full max-w-[40rem] px-4">
|
||||
<div class="absolute bottom-6 left-1/2 -translate-x-1/2 w-full max-w-[40rem] px-4">
|
||||
<PostComponent post={latestPost} slim={true} />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
padding: 0.5rem 0;
|
||||
flex-direction: column;
|
||||
font-size: 0.8rem;
|
||||
z-index: 20;
|
||||
z-index: 200;
|
||||
min-width: 10rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user