10 Commits

Author SHA1 Message Date
470d715a7a Add view configuration for Gruppenphase and Finale in OsterEvent
All checks were successful
SteamWarCI Build successful
2026-04-25 01:21:58 +02:00
3948009c35 Remove teamserver.json configuration file
All checks were successful
SteamWarCI Build successful
2026-04-23 23:51:03 +02:00
a410830a93 Refactor z-index and background styles for improved layout consistency
All checks were successful
SteamWarCI Build successful
2026-04-23 23:48:59 +02:00
f1d7b60fae Fix z-Index
All checks were successful
SteamWarCI Build successful
2026-04-23 23:43:54 +02:00
01077da029 Increase z-index for dropdown button to improve visibility
All checks were successful
SteamWarCI Build successful
2026-04-23 23:42:08 +02:00
a195b074a7 Preserve Pathname on Lang Change
All checks were successful
SteamWarCI Build successful
Co-authored-by: Copilot <copilot@github.com>
2026-04-23 15:07:04 +02:00
a8817115a3 Fix Safari
All checks were successful
SteamWarCI Build successful
2026-04-23 14:59:56 +02:00
5639655f99 Fix Lang Switcher
All checks were successful
SteamWarCI Build successful
2026-04-23 14:10:54 +02:00
ba4aa67ff1 Update language selection links in Navbar to use data-astro-reload attribute
Some checks failed
SteamWarCI Build failed
2026-04-23 14:08:54 +02:00
6fde748088 Merge pull request 'page-redesign' (#22) from page-redesign into master
All checks were successful
SteamWarCI Build successful
Reviewed-on: #22
Reviewed-by: YoyoNow <yoyonow@noreply.localhost>
2026-04-23 12:23:26 +02:00
5 changed files with 32 additions and 17 deletions

View File

@@ -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>

View File

@@ -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"
}

View File

@@ -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,

View File

@@ -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>

View File

@@ -75,7 +75,7 @@
padding: 0.5rem 0;
flex-direction: column;
font-size: 0.8rem;
z-index: 20;
z-index: 200;
min-width: 10rem;
}