Compare commits

..

3 Commits

Author SHA1 Message Date
Gavin McDonald
8412ec49a2 update social share images 2025-05-09 15:00:43 -04:00
Gavin McDonald
d4100cc44f drop shadow on start button 2025-05-09 14:47:29 -04:00
Gavin McDonald
4448bc9c57 new deck style 2025-05-09 14:32:38 -04:00
9 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 KiB

After

Width:  |  Height:  |  Size: 747 KiB

View File

@@ -19,7 +19,7 @@ export default function Home() {
<main className="min-h-screen flex items-center justify-center bg-[url('/img/table3.png')] bg-cover bg-center">
<button
onClick={handleCreateGame}
className="bg-slate-800 hover:bg-slate-700 text-yellow-400 hover:text-yellow-300 text-lg px-6 py-3 rounded-lg shadow transition-all duration-250 cursor-pointer"
className="bg-slate-800 hover:bg-slate-700 text-yellow-400 border border-yellow-500/25 hover:drop-shadow-[0_0_3px_rgba(255,215,0,0.5)] hover:text-yellow-300 text-lg px-6 py-3 rounded-lg shadow transition-all duration-250 cursor-pointer"
>
Create New Game
</button>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 427 KiB

After

Width:  |  Height:  |  Size: 544 KiB

View File

@@ -54,14 +54,14 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP
<img
src={getURL(cardBack as TarokkaGameCard, settings)}
alt="Card Back"
className="rounded-lg border border-yellow-500 hover:drop-shadow-[0_0_2px_#ffd700]"
className={`rounded-lg ${settings.cardStyle === 'grayscale' ? 'border border-yellow-500/25 hover:drop-shadow-[0_0_3px_#ffd700/50]' : ''}`}
/>
</div>
<div className="absolute group inset-0 backface-hidden rotate-y-180">
<img
src={getURL(card, settings)}
alt={aria}
className="rounded-lg border border-yellow-500 hover:drop-shadow-[0_0_2px_#ffd700]"
className="rounded-lg border border-yellow-500/25 hover:drop-shadow-[0_0_3px_#ffd700/50]"
/>
</div>
</div>

View File

@@ -9,6 +9,7 @@ const tarokkaCards: TarokkaCard[] = [
aria: 'Back of card',
description: 'Back of card',
back: true,
extension: '.png',
},
{
id: 'swashbuckler',

BIN
public/img/color/back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 KiB

View File

@@ -4,5 +4,5 @@ import { Settings, TarokkaGameCard } from '@/types';
export default function getURL(card: TarokkaGameCard, settings: Settings) {
const styleConfig = cardStyles[settings.cardStyle];
const fileBase = settings.cardStyle === 'standard' ? standardMap[card.id] : card.id;
return `${styleConfig.baseURL}${fileBase}${styleConfig.extension}`;
return `${styleConfig.baseURL}${fileBase}${card.extension || styleConfig.extension}`;
}

View File

@@ -29,6 +29,7 @@ export interface TarokkaBase {
aria: string;
back: boolean;
suit: 'Coins' | 'Glyphs' | 'High Deck' | 'Stars' | 'Swords' | null;
extension?: string;
}
export interface TarokkaGameBase extends TarokkaBase {