Localize logo

This commit is contained in:
Ondřej 2024-02-26 05:10:03 +01:00
parent b50a88ee43
commit a4d3a9dcbd
2 changed files with 49 additions and 6 deletions

View file

@ -1,16 +1,23 @@
---
import { Image } from "astro:assets";
import imgSausages from "../../assets/images/spekacky.webp";
import imgDirtyMoneyLogo from "../../assets/images/logo-white.webp";
import { makeT } from "../../i18n";
import type { Lang } from "../../lang";
import LogoDirtyMoney from "../logos/LogoDirtyMoney.astro";
const { lang } = Astro.params;
const { t } = makeT(lang as Lang);
---
<div class="grid md:grid-cols-3 pb-6">
<Image src={imgSausages} alt="" class="hidden md:block md:col-span-2 invert" />
<div class="grid place-content-center">
<Image
src={imgDirtyMoneyLogo}
alt="Lets stop dirty money"
class="max-w-[240px] lg:max-w-[300px]"
/>
<div class="max-w-[400px]">
<LogoDirtyMoney class="max-w-[256px] mx-auto mb-4" />
<p class="text-4xl leading-[1.15] font-bold font-display text-center text-balance">
{t("website_name")}
</p>
</div>
</div>
</div>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB