Compare commits

..
6 Commits
Author SHA1 Message Date
tresabhi 0922614dbc finalize 2026-10-22 16:37:16 -05:00
tresabhi ae4b2e1bb3 Merge branch 'main' into beg 2026-10-22 16:25:11 -05:00
tresabhi b4a689dfbb start adding tiers 2026-10-22 15:42:07 -05:00
tresabhi 19e535969e colors 2026-10-22 11:51:08 -05:00
tresabhi eebc373b46 better 2026-10-22 11:45:18 -05:00
tresabhi ecb1a7c21e base 2026-10-22 11:30:03 -05:00
7 changed files with 114 additions and 10 deletions

No files matched your search

-3
View File
@@ -2,9 +2,6 @@ name: Website
on:
push:
branches:
- main
- production
pull_request:
+2 -2
View File
@@ -44,7 +44,7 @@
"branches": {
"beta": "Beta",
"development": "Development",
"development": "Post Malone Edition",
"opentest": "OpenTest",
"preview": "Preview",
"production": "Production"
@@ -992,7 +992,7 @@
"footer": {
"motto": "Everything World of Tanks Blitz",
"copyright": "Unaffiliated with Wargaming or any service",
"association": "An Open Collective Project",
"about": {
"title": "About",
@@ -0,0 +1,36 @@
.outer {
padding: 0 var(--space-4);
margin-top: var(--space-3);
img {
width: 1.25em;
height: 1.25em;
border-radius: 50%;
}
.center {
position: relative;
background: linear-gradient(var(--pink-3), var(--purple-2));
box-shadow: var(--shadow-3);
max-width: 40rem;
padding: var(--space-5);
border-radius: var(--radius-4);
.important {
position: absolute;
top: 0;
left: 50%;
transform: translate(-50%, -50%);
background-color: inherit;
padding: var(--space-3);
}
}
}
@@ -0,0 +1,48 @@
import { HeartFilledIcon } from "@radix-ui/react-icons";
import { Button, Em, Flex, Strong, Text } from "@radix-ui/themes";
import { donationTiers } from "../../config/donations";
import styles from "./index.module.css";
export function Beg() {
return (
<Flex align="center" gap="4" direction="column" className={styles.outer}>
<Text size="3" className={styles.important}>
<Flex gap="2" align="center">
<img src="https://github.com/tresabhi.png" />
<Em>We need your attention</Em>
</Flex>
</Text>
<Flex direction="column" className={styles.center} gap="4">
<Flex direction="column" gap="3">
<Text color="tomato">
We can no longer keep BlitzKit sustainable for <Strong>free</Strong>
.
</Text>
<Text>
We want to add tank modules, player statistics, rebalancing patch
notes, bring back the Discord bot, and more.
</Text>
<Text>
But paying out of pocket makes that impossible. We are an earnest
non-profit, so consider donating to make the above possible. 100% of
your money goes back into BlitzKit.
</Text>
</Flex>
<Flex gap="3">
{donationTiers.map(({ name, value, link }) => (
<a target="_blank" key={name} href={link}>
<Button size="3" color="crimson">
{value === null && <HeartFilledIcon />}
{value === null ? "Custom" : `$${value}`}
</Button>
</a>
))}
</Flex>
</Flex>
</Flex>
);
}
+3 -3
View File
@@ -43,9 +43,9 @@ const strings = getStrings(locale);
}}
>
<Heading>BlitzKit</Heading>
<Text color="gray">{strings.website.footer.motto}</Text>
<Text size="1" color="gray">
{strings.website.footer.copyright}
<Text size="2" color="gray">{strings.website.footer.motto}</Text>
<Text size="2" color="gray">
{strings.website.footer.association}
</Text>
<Box mt="2">
+23
View File
@@ -0,0 +1,23 @@
// TODO: source this from the open collective api, if even possible
export const donationTiers = [
{
name: "The Backer",
value: 5,
link: "https://opencollective.com/blitzkit/contribute/backers-106312/checkout",
},
{
name: "The Engineer",
value: 10,
link: "https://opencollective.com/blitzkit/contribute/the-engineer-107057/checkout",
},
{
name: "The Patron",
value: 25,
link: "https://opencollective.com/blitzkit/contribute/the-patron-107056/checkout",
},
{
name: "The Sponsor",
value: null,
link: "https://opencollective.com/blitzkit/donate",
},
];
@@ -5,7 +5,7 @@ import locales from "@blitzkit/i18n/locales.json";
import { literals } from "@blitzkit/i18n/src/literals";
import { Box, Flex, Link } from "@radix-ui/themes";
import { AesonPlug } from "../../../components/AesonPlug";
import { Countdown } from "../../../components/Countdown";
import { Beg } from "../../../components/Beg";
import HomeHero from "../../../components/HomeHero.astro";
import { Plugs } from "../../../components/Plugs";
import ToolCard from "../../../components/ToolCard.astro";
@@ -66,7 +66,7 @@ export const getStaticPaths = mixStaticPaths(_getStaticPaths, () => {
<BaseLayout {locale}>
<HomeHero />
<Countdown client:load />
<Beg />
{
locale !== locales.default && (