From 4bcb93d357fc653ef5eafeb580b99bb445602d53 Mon Sep 17 00:00:00 2001 From: mategery Date: Tue, 18 Nov 2025 15:37:29 +0100 Subject: [PATCH] telefonos nezet --- .../src/components/DeckCreator/CardEditor.jsx | 49 +++--- .../src/components/DeckCreator/DeckHeader.jsx | 89 ++++++----- .../components/DeckCreator/DeckManager.jsx | 46 +++--- .../src/components/Navbar/Navbar.jsx | 144 ++++++++++-------- SerpentRace_Frontend/src/index.css | 30 ++++ .../src/pages/About/About.jsx | 100 ++++++------ .../src/pages/Auth/AuthCard.jsx | 8 +- .../src/pages/Auth/LoginForm.jsx | 18 +-- .../src/pages/Auth/RegisterForm.jsx | 6 +- .../src/pages/Contacts/Contacts.jsx | 72 ++++----- .../src/pages/DeckCreator/DeckCreator.jsx | 6 +- .../src/pages/Decks/Card_display.jsx | 56 +++---- .../src/pages/Game/ChooseDeck.jsx | 50 +++--- SerpentRace_Frontend/src/pages/Game/Lobby.jsx | 60 ++++---- 14 files changed, 388 insertions(+), 346 deletions(-) diff --git a/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx b/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx index 9ca7797e..da8dfdec 100644 --- a/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx +++ b/SerpentRace_Frontend/src/components/DeckCreator/CardEditor.jsx @@ -189,20 +189,7 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance // Ha nincs kiválasztott kártya vagy új kártya létrehozás if (!cardData) { - return ( -
-
-
🃏
-
- Válassz ki egy kártyát -
-
- Klikkelj egy kártyára a bal oldalon a szerkesztéshez,
- vagy hozz létre egy újat. -
-
-
- ) + return null } return ( @@ -231,22 +218,22 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance )} {/* Header */} -
-
+
+
-
+
{cardData.type === 'QUESTION' && '📋'} {cardData.type === 'JOKER' && '🃏'} {cardData.type === 'LUCK' && '🎲'}
-

+

{isCreating ? 'Új' : 'Szerkesztés'} {' '} {(isCreating ? cardType : cardData.type) === 'QUESTION' && 'Feladat kártya'} {(isCreating ? cardType : cardData.type) === 'JOKER' && 'Joker kártya'} {(isCreating ? cardType : cardData.type) === 'LUCK' && 'Szerencse kártya'}

-
+
{cardData.type === 'QUESTION' && cardData.subType && ( <> {cardData.subType === 'quiz' && 'Quiz (A/B/C/D)'} @@ -259,19 +246,19 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance
-
+
@@ -297,13 +284,13 @@ export default function CardEditor({ card, isCreating, cardType, onSave, onCance
{/* Content */} -
+
{showPreview ? ( -
+
) : ( -
+
{cardData.type === 'QUESTION' && ( +
{/* Top Row - Title and Actions */} -
-
+
+
-

+

📝 Pakli Szerkesztés

-
+
{deck.id && ( )}
- {/* Main Content Row */} -
- {/* Two Column Layout */} -
- {/* Deck Name - Takes up 2 columns */} -
- - handleInputChange('name', e.target.value)} - className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200" - placeholder="Add meg a pakli nevét..." - /> -
- - {/* Empty space for visual balance */} -
-
+ {/* Collapsible Details Section */} +
+ + + {isDetailsExpanded && ( +
+ {/* Two Column Layout */} +
+ {/* Deck Name - Takes up 2 columns */} +
+ + handleInputChange('name', e.target.value)} + className="w-full px-4 py-2 rounded-xl bg-[color:var(--color-background)] border border-[color:var(--color-surface-selected)] text-[color:var(--color-text)] focus:ring-2 focus:ring-[color:var(--color-success)] focus:border-transparent outline-none transition-all duration-200" + placeholder="Add meg a pakli nevét..." + /> +
+ + {/* Empty space for visual balance */} +
+
- {/* Type, Privacy and Description Row */} -
+ {/* Type, Privacy and Description Row */} +
{/* Deck Type */}
-
+
+
+ )}
) diff --git a/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx b/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx index d1085097..4f1efb16 100644 --- a/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx +++ b/SerpentRace_Frontend/src/components/DeckCreator/DeckManager.jsx @@ -147,10 +147,10 @@ const DeckManager = () => { return (
-
+
{/* Filters */} -
-
+
+
setSearch(e.target.value)} @@ -158,10 +158,10 @@ const DeckManager = () => { placeholder="Keresés..." className="mr-4" /> - - Típus: + + Típus: ))} - Eredet: + Eredet: - + Rendezés: