Compare commits
3 Commits
a15b80c23e
...
8412ec49a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8412ec49a2 | ||
|
|
d4100cc44f | ||
|
|
4448bc9c57 |
Binary file not shown.
|
Before Width: | Height: | Size: 606 KiB After Width: | Height: | Size: 747 KiB |
@@ -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">
|
<main className="min-h-screen flex items-center justify-center bg-[url('/img/table3.png')] bg-cover bg-center">
|
||||||
<button
|
<button
|
||||||
onClick={handleCreateGame}
|
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
|
Create New Game
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 427 KiB After Width: | Height: | Size: 544 KiB |
@@ -54,14 +54,14 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP
|
|||||||
<img
|
<img
|
||||||
src={getURL(cardBack as TarokkaGameCard, settings)}
|
src={getURL(cardBack as TarokkaGameCard, settings)}
|
||||||
alt="Card Back"
|
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>
|
||||||
<div className="absolute group inset-0 backface-hidden rotate-y-180">
|
<div className="absolute group inset-0 backface-hidden rotate-y-180">
|
||||||
<img
|
<img
|
||||||
src={getURL(card, settings)}
|
src={getURL(card, settings)}
|
||||||
alt={aria}
|
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>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ const tarokkaCards: TarokkaCard[] = [
|
|||||||
aria: 'Back of card',
|
aria: 'Back of card',
|
||||||
description: 'Back of card',
|
description: 'Back of card',
|
||||||
back: true,
|
back: true,
|
||||||
|
extension: '.png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'swashbuckler',
|
id: 'swashbuckler',
|
||||||
|
|||||||
BIN
public/img/color/back.png
Normal file
BIN
public/img/color/back.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 969 KiB |
BIN
public/img/grayscale/back.png
Normal file
BIN
public/img/grayscale/back.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 597 KiB |
@@ -4,5 +4,5 @@ import { Settings, TarokkaGameCard } from '@/types';
|
|||||||
export default function getURL(card: TarokkaGameCard, settings: Settings) {
|
export default function getURL(card: TarokkaGameCard, settings: Settings) {
|
||||||
const styleConfig = cardStyles[settings.cardStyle];
|
const styleConfig = cardStyles[settings.cardStyle];
|
||||||
const fileBase = settings.cardStyle === 'standard' ? standardMap[card.id] : card.id;
|
const fileBase = settings.cardStyle === 'standard' ? standardMap[card.id] : card.id;
|
||||||
return `${styleConfig.baseURL}${fileBase}${styleConfig.extension}`;
|
return `${styleConfig.baseURL}${fileBase}${card.extension || styleConfig.extension}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export interface TarokkaBase {
|
|||||||
aria: string;
|
aria: string;
|
||||||
back: boolean;
|
back: boolean;
|
||||||
suit: 'Coins' | 'Glyphs' | 'High Deck' | 'Stars' | 'Swords' | null;
|
suit: 'Coins' | 'Glyphs' | 'High Deck' | 'Stars' | 'Swords' | null;
|
||||||
|
extension?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TarokkaGameBase extends TarokkaBase {
|
export interface TarokkaGameBase extends TarokkaBase {
|
||||||
|
|||||||
Reference in New Issue
Block a user