refactor: css variables for colors and shadows

This commit is contained in:
2025-08-14 18:18:24 +04:00
parent 28004dc2a0
commit 43355b6ce3
12 changed files with 79 additions and 69 deletions

View File

@ -1,6 +1,7 @@
import { CSSProperties, FC, ReactNode } from "react";
import classNames from "classnames";
import styles from "@/components/layout/SmallPageBlock/SmallPageBlock.module.css";
import { Box } from "@mantine/core";
type Props = {
children: ReactNode;
@ -10,14 +11,15 @@ type Props = {
const SmallPageBlock: FC<Props> = ({ children, style, active = false }) => {
return (
<div
<Box
bdrs={"lg"}
className={classNames(
styles.container,
active && styles["container-active"]
)}
style={style}>
{children}
</div>
</Box>
);
};
export default SmallPageBlock;