From 6e8a23562939aaca40e647ad1d6f01452f0292a6 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 1 Mar 2025 00:51:34 +0100 Subject: [PATCH] Update layout --- client/src/pages/Game/Game.jsx | 19 +- client/src/pages/Game/styles.sass | 500 +++++++++++++++++++++++++++--- 2 files changed, 475 insertions(+), 44 deletions(-) diff --git a/client/src/pages/Game/Game.jsx b/client/src/pages/Game/Game.jsx index 86a08d2..3df6817 100644 --- a/client/src/pages/Game/Game.jsx +++ b/client/src/pages/Game/Game.jsx @@ -3,7 +3,7 @@ import {SocketContext} from "@/common/contexts/SocketContext"; import {useContext, useState, useEffect, useRef, useCallback} from "react"; import MusicSlider from "@/pages/Game/components/MusicSlider"; import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"; -import {faMessage, faMusic, faHeadphones, faClock, faCrown} from "@fortawesome/free-solid-svg-icons"; +import {faMessage, faMusic, faHeadphones, faClock, faCrown, faPaperPlane} from "@fortawesome/free-solid-svg-icons"; export const Game = () => { const {send, on, socket, connected, connect} = useContext(SocketContext); @@ -384,10 +384,12 @@ export const Game = () => {
Runde {round}
-
- {renderPhaseContent()} +
+
+ {renderPhaseContent()} +
-
+
Chat
@@ -411,14 +413,15 @@ export const Game = () => { setInputValue(e.target.value)} onKeyPress={(e) => e.key === 'Enter' && handleSendMessage()} - placeholder="Gib eine Nachricht ein..." + placeholder="Nachricht..." /> - +
- - {/* Only render MusicSlider during composing phase */} + {phase === "composing" && (