Skip to content

Commit

Permalink
wip: nodejs 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaBosak233 committed Dec 14, 2024
1 parent 40fde61 commit 529c330
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_API_URL=http://localhost:8888
VITE_API_URL=http://127.0.0.1:8888
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20 AS builder
FROM node:22 AS builder

COPY ./ /app

Expand Down
24 changes: 19 additions & 5 deletions src/components/core/Toast/Toast.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
display: flex;
align-items: center;
gap: 15px;
background-color: var(--bg-2nd-color);
border: 2.75px solid var(--toast-border-color);
background-color: color-mix(
in srgb,
var(--toast-color) 20%,
transparent 80%
);
border: 2.75px dotted
color-mix(in srgb, var(--toast-color) 50%, transparent 50%); // darken(1.75)
border-radius: 16px;
padding: 10px 20px;
min-width: 20vw;
Expand All @@ -13,7 +18,10 @@
.icon {
width: 2rem;
height: 2rem;
color: light-dark(var(--toast-text-color), #ffffff);
color: light-dark(
color-mix(in srgb, var(--toast-color) 80%, black 20%),
#ffffff
);
border-radius: 50%;
}

Expand All @@ -27,11 +35,17 @@
.title {
font-size: 1rem;
line-height: 1.5rem;
color: light-dark(var(--toast-text-color), #ffffff);
color: light-dark(
color-mix(in srgb, var(--toast-color) 80%, black 20%),
#ffffff
);
}

.description {
font-size: 0.75rem;
line-height: 1.125rem;
color: light-dark(var(--toast-text-color), #ffffff);
color: light-dark(
color-mix(in srgb, var(--toast-color) 80%, black 20%),
#ffffff
);
}
8 changes: 3 additions & 5 deletions src/components/core/Toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ export function Toast(props: ToastProps) {
...rest
} = props;

const baseColor = useThemeColor(color);

const variables = {
"--toast-bg-color": chroma(baseColor).alpha(0.5).hex(),
"--toast-text-color": chroma(baseColor).darken(1.75).hex(),
"--toast-border-color": baseColor,
// "--toast-color": chroma(baseColor).alpha(0.5).hex(),
// "--toast-text-color": chroma(baseColor).darken(1.75).hex(),
"--toast-color": `var(--color-${color})`,
} as CSSProperties;

return (
Expand Down
3 changes: 3 additions & 0 deletions src/pages/_games/Default/Default.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
display: flex;
justify-content: center;
width: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

.info {
position: absolute;
Expand Down
Empty file.
5 changes: 5 additions & 0 deletions src/pages/_games/Default/Tip/Tip.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Box } from "@/components/core";

export function Tip() {
return <Box></Box>;
}
Empty file.

0 comments on commit 529c330

Please sign in to comment.