Skip to content

Commit 2676f5d

Browse files
committed
refactored retroBorder into global.css
1 parent 7f2c47b commit 2676f5d

5 files changed

Lines changed: 44 additions & 4 deletions

File tree

client/src/components/ui/GameEmbed.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function GameEmbed({
2626

2727
return (
2828
<div
29-
className={`flex items-center justify-center border-[26px] border-accent bg-background [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]`}
29+
className={`retroBorder flex items-center justify-center bg-background`}
3030
style={{ width: gameWidth + 26 * 2, height: gameHeight + 26 * 2 }}
3131
>
3232
{!isPlaying ? (
@@ -36,8 +36,8 @@ export function GameEmbed({
3636
alt="Game Cover"
3737
width={gameWidth}
3838
height={gameHeight}
39-
className="absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[calc(-50%-52px)] blur-sm"
40-
style={{ width: "auto", height: gameHeight }}
39+
className="absolute left-[50%] top-[50%] translate-x-[-50%] translate-y-[calc(-50%-26px)] blur-sm"
40+
style={{ width: "auto", height: gameHeight - 26 }}
4141
/>
4242
<Button
4343
onClick={() => setIsPlaying(!isPlaying)}

client/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export default function Landing() {
8989
width={600}
9090
height={430}
9191
alt="placeholder"
92-
className="min-w-80 border-[26px] border-accent [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]"
92+
className="retroBorder min-w-80"
9393
/>
9494
<Image
9595
src="/bomb.png"

client/src/styles/globals.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,8 @@
5757
body {
5858
@apply bg-background text-foreground;
5959
}
60+
61+
.retroBorder {
62+
@apply border-[26px] border-accent [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]
63+
}
6064
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Generated by Django 5.1.15 on 2026-02-14 03:12
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("game_dev", "0011_alter_gameshowcase_game"),
10+
("game_dev", "0011_merge_20260205_1434"),
11+
]
12+
13+
operations = []
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 5.1.15 on 2026-02-14 03:31
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("game_dev", "0012_merge_20260214_1112"),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name="game",
15+
name="itchGameEmbedID",
16+
field=models.PositiveBigIntegerField(
17+
blank=True,
18+
default=None,
19+
help_text="If a game has a web demo stored on itch.io, please enter the embed ID",
20+
null=True,
21+
),
22+
),
23+
]

0 commit comments

Comments
 (0)