Skip to content

Commit de473de

Browse files
author
Mykolas
committed
Update board look and feel. Improve packaging time.
1 parent 4e37b4a commit de473de

File tree

10 files changed

+151
-48
lines changed

10 files changed

+151
-48
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM node:16-alpine as build
22

33
WORKDIR /opt/planning-chess
44
ADD . .
5-
RUN npm -v
65
RUN npm i
76
RUN npm run bootstrap
8-
RUN npm run ci
7+
RUN npm run build
8+
RUN npm i --production
99

1010
WORKDIR /opt/planning-chess/api
1111
RUN npm i --production

package-lock.json

Lines changed: 125 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"author": "Planning Chess",
2020
"license": "MIT",
2121
"dependencies": {
22+
"@ant-design/icons": "^5.5.1",
2223
"@planning-chess/shared": "file:../shared",
2324
"antd": "^5.1.4",
2425
"bootstrap": "^5.1.3",

services/app/src/components/chessBoard/Attribute.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33

44
const Attribute = ({
5-
tile: { attribute, points }
5+
tile: { /* attribute, */ points }
66
}) => (
77
<div className="attribute f-column-center justify-center padding-s">
8-
<span className="index weight-700 font-size-l">{attribute}</span>
9-
<span className="points weight-500 rubik-font font-size-xxs">{`${points} SP`}</span>
8+
<span className="index weight-500 font-size-m">{`${points}`}</span>
9+
{/* <span className="points weight-500 rubik-font font-size-xxs">{attribute}</span> */}
1010
</div>
1111
);
1212

services/app/src/components/chessBoard/SquarePopUp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const SquarePopUp = ({ items, showPopover, row, column }) => {
4040
{`${item.player} - `}
4141
</span>
4242
<div className="score margin-l-s padding-y-0 padding-x-s">
43-
<span className='rubik-font' data-testid={`pop-up-${item.playerId}-score`}>{`${item.score} SP`}</span>
43+
<span className='rubik-font' data-testid={`pop-up-${item.playerId}-score`}>{`${item.score}`}</span>
4444
</div>
4545
</div>
4646
))}

services/app/src/components/gameFooter/ChessBoardPiece.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ const ChessBoardPiece = ({ selectFigure, figureName, figureImg, figureStrength,
3737
alt={figureName}
3838
className='figure-img'
3939
/>
40-
<p className="figure-title font-size-s weight-500">
41-
{figureName}
40+
<p className="figure-title font-size-s weight-400">
41+
{figureStrength}
4242
</p>
43-
<div className="figure-strength-container border-r-20 padding-y-0 padding-x-xxs f-center">
44-
<p className="figure-strength font-size-xxs weight-500">{figureStrength}</p>
45-
</div>
43+
{/* <div className="figure-strength-container border-r-20 padding-y-0 padding-x-xxs f-center">
44+
<p className="figure-strength font-size-xxs weight-500">{figureName}</p>
45+
</div> */}
4646
</button>
4747
</PlanningChessTooltip>
4848
);

services/app/src/components/gameFooter/GameFooterActive.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import ChessBoardPieces from './ChessBoardPieces';
4-
4+
import { Popover } from 'antd';
5+
import { InfoCircleOutlined } from '@ant-design/icons';
56
const GameFooterActive = ({ skipCurrentPlayerMove }) => (
67
<>
7-
<p className='margin-y-sm'>Complexity | Select and place the figure on the board</p>
88
<ChessBoardPieces skipCurrentPlayerMove={skipCurrentPlayerMove} />
9+
<Popover placement="top" content={"Select and place the figure on the board"}>
10+
<p className='margin-y-sm'>Complexity <InfoCircleOutlined /></p>
11+
</Popover>
912
</>
1013
);
1114

services/app/src/components/gameFooter/chess-board-pieces.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@
4343

4444
.figure-strength-container {
4545
width: 2.5em;
46-
height: 24px;
47-
background-color: var(--primary);
46+
height: 12px;
4847
}
4948

5049
.figure-strength-container p {
51-
color: var(--white);
50+
color: var(--secondary-text);
5251
letter-spacing: -0.1px;
5352
}

0 commit comments

Comments
 (0)