diff --git a/proxy.conf.json b/proxy.conf.json index dfc5e8a..b4bfb50 100644 --- a/proxy.conf.json +++ b/proxy.conf.json @@ -8,11 +8,5 @@ "target": "http://localhost:8083", "secure": false, "changeOrigin": true - }, - "/api": { - "target": "http://localhost:8080", - "secure": false, - "changeOrigin": true, - "ws": true } -} \ No newline at end of file +} diff --git a/src/app/components/input-card/input-card.component.html b/src/app/components/input-card/input-card.component.html index 0239946..bdc6202 100644 --- a/src/app/components/input-card/input-card.component.html +++ b/src/app/components/input-card/input-card.component.html @@ -2,23 +2,11 @@ @if (inputType === 'textarea') { - + } @else { - + } @if (hintText) { -

{{ hintText }}

+

{{ hintText }}

} - + \ No newline at end of file diff --git a/src/app/components/promotion-dialog/promotion-dialog.component.html b/src/app/components/promotion-dialog/promotion-dialog.component.html index f93ad2b..420e0bc 100644 --- a/src/app/components/promotion-dialog/promotion-dialog.component.html +++ b/src/app/components/promotion-dialog/promotion-dialog.component.html @@ -2,26 +2,22 @@

Pawn Promotion

- +
- +

Choose a piece to promote your pawn to:

- +
@for (piece of promotionPieces; track piece.type) { - + }
- + \ No newline at end of file diff --git a/src/app/pages/game/game.component.css b/src/app/pages/game/game.component.css index 5e32f0c..130e475 100644 --- a/src/app/pages/game/game.component.css +++ b/src/app/pages/game/game.component.css @@ -30,6 +30,7 @@ header { margin-bottom: var(--size-xl); + margin-bottom: var(--size-xl); } h1, @@ -37,9 +38,13 @@ h2 { color: var(--color-text-primary); margin: 0 0 var(--size-md); font-size: var(--heading-h1); + color: var(--color-text-primary); + margin: 0 0 var(--size-md); + font-size: var(--heading-h1); } .meta { + color: var(--color-text-primary); color: var(--color-text-primary); font-size: 0.95rem; } @@ -48,6 +53,8 @@ h2 { display: inline-block; margin-bottom: var(--size-sm); color: var(--color-text-primary); + margin-bottom: var(--size-sm); + color: var(--color-text-primary); text-decoration: none; font-weight: 600; } @@ -110,6 +117,10 @@ h2 { } .board-section { + background: var(--color-bg-board); + border: var(--border-width) solid var(--color-border); + border-radius: var(--border-radius-md); + padding: clamp(var(--size-sm), 1vw, var(--size-lg)); background: var(--color-bg-board); border: var(--border-width) solid var(--color-border); border-radius: var(--border-radius-md); @@ -316,6 +327,7 @@ h2 { @media (max-width: 991px) { .game-card { padding: clamp(var(--size-md), 1.5vw, var(--size-lg)); + padding: clamp(var(--size-md), 1.5vw, var(--size-lg)); } .board-section { @@ -325,25 +337,30 @@ h2 { h1, h2 { font-size: var(--heading-h1-tablet); + font-size: var(--heading-h1-tablet); } } @media (max-width: 768px) { .game-shell { padding: clamp(var(--size-sm), 1.5vw, var(--size-lg)); + padding: clamp(var(--size-sm), 1.5vw, var(--size-lg)); } .game-card { padding: clamp(var(--size-sm), 1vw, var(--size-md)); + padding: clamp(var(--size-sm), 1vw, var(--size-md)); } header { margin-bottom: var(--size-lg); + margin-bottom: var(--size-lg); } h1, h2 { font-size: var(--heading-h1-mobile); + font-size: var(--heading-h1-mobile); } .meta { @@ -353,6 +370,8 @@ h2 { .top-section { gap: var(--size-xs); margin-bottom: var(--size-xs); + gap: var(--size-xs); + margin-bottom: var(--size-xs); } .board-section { @@ -363,19 +382,24 @@ h2 { @media (max-width: 480px) { .game-shell { padding: var(--size-sm); + padding: var(--size-sm); } .game-card { padding: var(--size-sm); border-radius: var(--border-radius-md); + padding: var(--size-sm); + border-radius: var(--border-radius-md); } header { margin-bottom: var(--size-md); + margin-bottom: var(--size-md); } h1 { font-size: var(--heading-h1-small); + font-size: var(--heading-h1-small); } .meta { @@ -385,6 +409,8 @@ h2 { .top-section { gap: var(--size-xs-gap); margin-bottom: var(--size-xs); + gap: var(--size-xs-gap); + margin-bottom: var(--size-xs); } .board-section { diff --git a/src/app/pages/game/game.component.html b/src/app/pages/game/game.component.html index baad535..dac651b 100644 --- a/src/app/pages/game/game.component.html +++ b/src/app/pages/game/game.component.html @@ -1,9 +1,6 @@
- +
@@ -13,150 +10,126 @@
@if (facade.loading) { -

Loading game state...

+

Loading game state...

} @else if (facade.state) { - @if (facade.isGameFinished && facade.gameCompletionMessage) { -
-

{{ facade.gameCompletionMessage }}

-

- Start a new game -

+ @if (facade.isGameFinished && facade.gameCompletionMessage) { +
+

{{ facade.gameCompletionMessage }}

+

+ Start a new game +

+
+ } + @if (facade.isGameFinished && facade.gameCompletionMessage) { +
+

{{ facade.gameCompletionMessage }}

+

+ Start a new game +

+
+ } +
+
+ +
+
+

Timers

+
+

White

+

{{ formatTimer(whiteTimerSeconds) }}

+
+
+

Black

+

{{ formatTimer(blackTimerSeconds) }}

+
+
- } -
-
- -
-
-

Timers

-
-

White

-

{{ formatTimer(whiteTimerSeconds) }}

-
-
-

Black

-

{{ formatTimer(blackTimerSeconds) }}

-
-
-
- -
-
-
- -
+ +
+
+
+ +
-
-
-

Board Design

-
- +
+
+

Board Design

+
+ - -
-
- - + +
+ +
-
+
+
- -
-
-

Move History

+ +
+
+

Move History

- @if (facade.state.moves.length === 0) { -

No moves yet.

- } @else { -
    - @for (move of facade.state.moves; track $index) { -
  1. - {{ $index + 1 }}. - {{ move }} -
  2. - } -
+ @if (facade.state.moves.length === 0) { +

No moves yet.

+ } @else { +
    + @for (move of facade.state.moves; track $index) { +
  1. + {{ $index + 1 }}. + {{ move }} +
  2. } -
+ + } +
-
-

Export

-
- - -
+
+

Export

+
+ + +
- + - + - @if (exportNotice) { -

{{ exportNotice }}

- } -
-
+ @if (exportNotice) { +

{{ exportNotice }}

+ } +
+ } @if (facade.errorMessage) { -

{{ facade.errorMessage }}

+

{{ facade.errorMessage }}

} -
+ \ No newline at end of file diff --git a/src/app/pages/welcome/welcome.component.html b/src/app/pages/welcome/welcome.component.html index 9cfe144..ec83f91 100644 --- a/src/app/pages/welcome/welcome.component.html +++ b/src/app/pages/welcome/welcome.component.html @@ -33,7 +33,7 @@
-
+
JOIN
JOIN
GAME
@@ -94,8 +94,7 @@
WELCOME
WELCOME TO
NOWCHESS
Play your next move from the skyline.
-
@@ -248,8 +247,7 @@ [placeholder]="importMode === 'fen' ? 'Paste FEN here' : 'Paste PGN here'" [disabled]="importing" rows="5">
- diff --git a/src/styles-variables.css b/src/styles-variables.css index 4b83bf2..8ff4919 100644 --- a/src/styles-variables.css +++ b/src/styles-variables.css @@ -1,6 +1,3 @@ -/* ======================================== - COLOR VARIABLES - Semantic Naming - ======================================== */ /* Light Mode Colors (Default) */ :root:not([data-theme='dark']) {