From dcfc91b82be72a94eb80334765bf84fb81a083f6 Mon Sep 17 00:00:00 2001 From: Joan Date: Fri, 6 Feb 2026 11:51:58 +0100 Subject: [PATCH] Refactor global UI to Tech-HUD style (clip-path) --- pwa/src/components/Game.css | 6 +++--- pwa/src/components/common/GameProgressBar.tsx | 3 ++- pwa/src/components/game/CombatInventoryModal.css | 2 +- pwa/src/components/game/InventoryModal.css | 8 ++++---- pwa/src/components/game/Workbench.css | 4 ++-- pwa/src/index.css | 15 ++++++++------- 6 files changed, 20 insertions(+), 18 deletions(-) diff --git a/pwa/src/components/Game.css b/pwa/src/components/Game.css index a103256..6f5cfe4 100644 --- a/pwa/src/components/Game.css +++ b/pwa/src/components/Game.css @@ -347,11 +347,11 @@ html { align-items: center; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--game-border-color); - border-radius: var(--game-radius-sm); padding: 0 0.8rem; transition: all 0.2s ease; height: 40px; position: relative; + clip-path: var(--game-clip-path-sm); } .game-search-container:focus-within { @@ -433,10 +433,10 @@ html { .location-info { background: var(--game-bg-panel); padding: 1.5rem; - border-radius: var(--game-radius-md); margin-bottom: 1.5rem; border: 1px solid var(--game-border-color); box-shadow: var(--game-shadow-card); + clip-path: var(--game-clip-path); } .location-info h2 { @@ -775,9 +775,9 @@ html { .movement-controls { background: var(--game-bg-panel); padding: 1.5rem; - border-radius: var(--game-radius-md); border: 1px solid var(--game-border-color); box-shadow: var(--game-shadow-card); + clip-path: var(--game-clip-path); } .movement-controls h3 { diff --git a/pwa/src/components/common/GameProgressBar.tsx b/pwa/src/components/common/GameProgressBar.tsx index 1283df6..1674e09 100644 --- a/pwa/src/components/common/GameProgressBar.tsx +++ b/pwa/src/components/common/GameProgressBar.tsx @@ -91,7 +91,8 @@ export const GameProgressBar: React.FC = ({