Skip to content

Commit 9f7cf8a

Browse files
TekhnaeRaavzicklag
authored andcommitted
feat: add beta badges to striker ball
1 parent f0b39ab commit 9f7cf8a

2 files changed

Lines changed: 44 additions & 11 deletions

File tree

src/pages/games.astro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ const games = studio_games.studio_games;
4343
</div>
4444
</Fragment>
4545
<Fragment slot="image">
46-
<img style="border-radius: 30px;" src={`https://directus.katharostech.com/assets/${x.image.id}`} />
46+
<img
47+
class="relative"
48+
style="border-radius: 30px;"
49+
src={`https://directus.katharostech.com/assets/${x.image.id}`}
50+
/>
51+
<div
52+
class="bg-orange-600 absolute rotate-45 top-2 right-1 font-bold"
53+
style="border-radius: 30px; padding: 10px;"
54+
>
55+
Beta
56+
</div>
4757
</Fragment>
4858
</Content>
4959
))

src/pages/striker-ball.astro

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import Content from '~/components/widgets/Content.astro';
1414
import BlogHighlightedPosts from '~/components/widgets/BlogHighlightedPosts.astro';
1515
import RelatedPosts from '~/components/blog/RelatedPosts.astro';
1616
import { findPostsBySlugs } from '~/utils/blog';
17+
import { Icon } from 'astro-icon/components';
1718
1819
const metadata = {
1920
title: 'Striker Ball',
@@ -23,15 +24,17 @@ const game = game_query.studio_games.find((x) => x.tag.slug == 'striker-ball');
2324
---
2425

2526
<Layout metadata={metadata}>
26-
<Hero
27-
tagline="Video Game"
28-
title={game?.title}
29-
subtitle={game?.description_short}
30-
image={{
31-
alt: 'striker-ball-image',
32-
src: `https://directus.katharostech.com/assets/${game?.image.id}`,
33-
}}
34-
>
27+
<Hero tagline="Video Game" title={game?.title} subtitle={game?.description_short}>
28+
<Fragment slot="image">
29+
<img
30+
class="relative"
31+
style="border-radius: 30px;"
32+
src={`https://directus.katharostech.com/assets/${game?.image.id}`}
33+
/>
34+
<div class="bg-orange-600 absolute rotate-45 top-2 right-1 font-bold" style="border-radius: 30px; padding: 10px">
35+
Beta
36+
</div>
37+
</Fragment>
3538
<Fragment slot="content">
3639
<Stats
3740
stats={[
@@ -57,6 +60,21 @@ const game = game_query.studio_games.find((x) => x.tag.slug == 'striker-ball');
5760
set:html={game?.description}
5861
/>
5962
</div>
63+
<section class="bg-orange-600 dark:bg-orange-600 not-prose">
64+
<div class="max-w-6xl mx-auto px-4 sm:px-6 py-4 text-md text-center font-medium">
65+
<span class="font-bold">
66+
<Icon name="tabler:info-square" class="w-5 h-5 inline-block align-text-bottom" /> Beta:<br /></span
67+
> We're still working out the the kinks, please test and contact us below about any issues you have playing.
68+
</div>
69+
</section>
70+
<br />
71+
<section class="bg-orange-600 dark:bg-orange-600 not-prose">
72+
<div class="max-w-6xl mx-auto px-4 sm:px-6 py-4 text-md text-center font-medium">
73+
<span class="font-bold">
74+
<Icon name="tabler:info-square" class="w-5 h-5 inline-block align-text-bottom" /> Platforms:<br /></span
75+
> Not all platforms are tested yet, please test and contact us below about any issues you have playing.
76+
</div>
77+
</section>
6078
<CallToAction
6179
title="Support the Project"
6280
subtitle="Donate to support game engine development and future games!"
@@ -108,14 +126,19 @@ const game = game_query.studio_games.find((x) => x.tag.slug == 'striker-ball');
108126
/>
109127
<CallToAction
110128
title="Read More"
111-
subtitle="Read about the Skeleton Crew's experience developing the game."
129+
subtitle="Read about the Skeleton Crew's experience making the game.<br/>Or, Check out the release notes to see what's changed!"
112130
actions={[
113131
{
114132
text: 'Striker Ball Tag Page',
115133
icon: 'tabler:tag',
116134
variant: 'primary',
117135
href: getPermalink(`/tag/${game?.tag.slug}`),
118136
},
137+
{
138+
text: 'Release Notes',
139+
icon: 'tabler:rocket',
140+
variant: 'primary',
141+
},
119142
]}
120143
/>
121144
<CallToAction

0 commit comments

Comments
 (0)