about summary refs log tree commit diff stats
path: root/html/cards/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/cards/script.js')
-rw-r--r--html/cards/script.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/html/cards/script.js b/html/cards/script.js
index b851a6d..3c6869c 100644
--- a/html/cards/script.js
+++ b/html/cards/script.js
@@ -8,7 +8,7 @@ const CARD_BACK_COLOR = '#0066cc';
 const PATTERN_SIZE = 10;
 const INITIAL_CARD_X = 20;
 const INITIAL_CARD_Y = 20;
-const FONT_SIZE = '30px Arial';
+const FONT_SIZE = '20px Arial';
 
 // Canvas setup
 const canvas = document.getElementById('cards');
@@ -70,9 +70,9 @@ const drawCardFront = card => {
     ctx.strokeRect(card.x, card.y, CARD_WIDTH, CARD_HEIGHT);
     
     // Draw value and suit
-    drawCardValue(card.card.value, card.x + 10, card.y + 40, 'left');
+    drawCardValue(card.card.value, card.x + 10, card.y + 25, 'left');
     drawCardSuit(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 10);
-    drawCardValue(card.card.value, card.x + CARD_WIDTH - 20, card.y + CARD_HEIGHT - 10, 'right');
+    drawCardValue(card.card.value, card.x + CARD_WIDTH - 10, card.y + CARD_HEIGHT - 10, 'right');
 };
 
 const drawCardValue = (value, x, y, alignment) => {