Change to PW

This commit is contained in:
2023-12-19 19:22:19 +01:00
parent aa83cddcec
commit 5a5cce199b
25 changed files with 156 additions and 244 deletions

View File

@@ -5,4 +5,4 @@ import Basic from "../../layouts/Basic.astro";
<Basic>
<App client:only="svelte" />
</Basic>
</Basic>

View File

@@ -136,4 +136,4 @@ const { Content } = await post.render();
@apply w-fit p-4 rounded-md border-2 border-gray-600 my-4;
}
}
</style>
</style>

View File

@@ -60,4 +60,4 @@ const { posts, tag } = Astro.props;
{index !== posts.length - 1 && <hr/>}
</div>
))}
</PageLayout>
</PageLayout>

View File

@@ -25,48 +25,16 @@ const { Content } = await page.render();
<style is:global>
article {
width: clamp(75%, 25rem, 100vw);
@apply mx-auto bg-gray-100 px-4 py-8 rounded-b-md shadow-md pt-40 sm:pt-28 md:pt-14
dark:text-white dark:bg-neutral-900;
p {
@apply my-4 leading-7;
>* {
all: revert;
}
h1 {
@apply text-4xl font-bold mt-4 text-center;
}
h2 {
@apply text-3xl font-bold mt-4;
}
h3 {
@apply text-2xl font-bold mt-4;
}
h4 {
@apply text-xl font-bold mt-4;
}
a {
@apply text-blue-500 hover:text-blue-700;
}
ol>li, ul>li {
@apply ml-4;
}
ol {
@apply list-decimal;
}
ul {
@apply list-disc;
code {
@apply dark:text-neutral-400 text-neutral-800;
}
pre.astro-code {
@apply w-fit p-4 rounded-md border-2 border-gray-600 my-4;
}
}
</style>
</style>

View File

@@ -7,6 +7,7 @@ import {CaretRight, Archive, Rocket, Bell} from "@astropub/icons"
import {t} from "astro-i18n";
import {l} from "../util/util"
import PlayerCount from "../components/PlayerCount.svelte";
import "../../public/fonts/barlow-condensed/barlow-condensed.css"
const teamMember = await fetch("http://localhost:1337/data/team").then(value => value.json())
@@ -37,7 +38,6 @@ function mapMap<T, K, J>(i: Map<T, K>, fn: (key: T, value: K) => J): J[] {
---
<NavbarLayout title={t("home.page")} description="SteamWar.de Homepage">
<link rel="stylesheet" href="/fonts/barlow-condensed/barlow-condensed.css" slot="head" />
<div class="w-full h-screen relative mb-4">
<Image src={localBau} alt="Bau" width="1920" height="1080" densities={[1.5, 2, 3, 4]} class="w-full object-cover rounded-b-2xl shadow-2xl dark:brightness-75" style="height: calc(100vh + 1rem)" draggable="false" />
<drop-in class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 flex flex-col items-center">
@@ -146,10 +146,6 @@ function mapMap<T, K, J>(i: Map<T, K>, fn: (key: T, value: K) => J): J[] {
</NavbarLayout>
<style>
@tailwind base;
@tailwind components;
@tailwind utilities;
text-carousel{
>* {
@apply absolute top-0 left-0 w-full text-xl sm:text-4xl italic text-white text-center opacity-0;
@@ -159,7 +155,7 @@ function mapMap<T, K, J>(i: Map<T, K>, fn: (key: T, value: K) => J): J[] {
}
.barlow {
font-family: Barlow Condensed;
font-family: Barlow Condensed, serif;
}
.card {