Skip to content

Commit

Permalink
update: Sat 03 Aug 2024 23:11:24 CEST
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Aug 3, 2024
1 parent 54acf51 commit b2fa45e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/api/BoardScoreTable/BoardScoreTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ type FirstRowCellProps = {
};

function FirstRowCell({ row, helpOn }: FirstRowCellProps) {
const [showHelp, setShowHelp] = useState(helpOn);
const [showTempHelp, setShowTempHelp] = useState(false);
const [inner, setInner] = useState(row.name);

const onIconClick = () => {
if (helpOn || showHelp) {
if (helpOn || showTempHelp) {
return;
}
setShowHelp(true);
setShowTempHelp(true);
setTimeout(() => {
setShowHelp(false);
setShowTempHelp(false);
}, 2000);
};

Expand All @@ -246,7 +246,7 @@ function FirstRowCell({ row, helpOn }: FirstRowCellProps) {
onClick={onIconClick}
/>
);
if (helpOn || showHelp) {
if (helpOn || showTempHelp) {
newInner = (
<>
{newInner}
Expand All @@ -255,7 +255,8 @@ function FirstRowCell({ row, helpOn }: FirstRowCellProps) {
);
}
setInner(newInner);
}, [row.icon, row.name, helpOn, showHelp]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [row.icon, row.name, helpOn, showTempHelp]);

return <td style={{ fontWeight: 'bold' }}>{inner}</td>;
}
Expand Down
4 changes: 3 additions & 1 deletion src/api/utils/FontUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export default class FontUtils {
static readonly HANDWRITING = 'Lucida Handwriting Std, cursive';
static readonly HANDWRITING = 'Pacifico, cursive';
static readonly HANDWRITING_SIMPLE = 'Edu AU VIC WA NT Hand, cursive';
static readonly ELEGANT = 'Great Vibes, cursive';
static readonly PLAYFUL = 'Cardenio Modern, sans-serif';
static readonly MODERN = 'AvantGarde Bk BT, sans-serif';
static readonly FUTURISTIC = 'Realpolitik, sans-serif';
Expand Down
4 changes: 3 additions & 1 deletion src/fonts.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@import url('https://fonts.cdnfonts.com/css/avantgarde-bk-bt-2');
@import url('https://fonts.cdnfonts.com/css/lucida-handwriting-std');
@import url('https://fonts.cdnfonts.com/css/realpolitik');
@import url('https://fonts.cdnfonts.com/css/noto-serif-toto');
@import url('https://fonts.cdnfonts.com/css/cardenio-modern');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Hand:[email protected]&family=Great+Vibes&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Hand:[email protected]&family=Great+Vibes&family=Pacifico&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

0 comments on commit b2fa45e

Please sign in to comment.