feat: division between mobile and desktop components, boards for mobile

This commit is contained in:
2025-08-13 09:55:27 +04:00
parent 1a98facd72
commit 838c9640a1
26 changed files with 175 additions and 89 deletions

View File

@ -0,0 +1,12 @@
.create-button {
padding: 11px 10px 12px 10px;
border-bottom: 2px solid gray;
}
.spacer {
height: 46px;
padding: 11px 10px 12px 10px;
border-bottom: 2px solid gray;
width: 100%;
}

View File

@ -0,0 +1,35 @@
import { IconPlus } from "@tabler/icons-react";
import { Box } from "@mantine/core";
import styles from "@/app/deals/components/mobile/CreateBoardButtonMobile/CreateBoardButtonMobile.module.css";
import { useBoardsContext } from "@/app/deals/contexts/BoardsContext";
import InPlaceInput from "@/components/ui/InPlaceInput/InPlaceInput";
const CreateBoardButtonMobile = () => {
const { onCreateBoard } = useBoardsContext();
return (
<>
<InPlaceInput
placeholder={"Название доски"}
onComplete={onCreateBoard}
getChildren={startEditing => (
<Box
onClick={startEditing}
className={styles["create-button"]}>
<IconPlus size={22} />
</Box>
)}
modalTitle={"Создание доски"}
inputStyles={{
wrapper: {
marginLeft: 15,
marginRight: 15,
},
}}
/>
<Box className={styles.spacer} />
</>
);
};
export default CreateBoardButtonMobile;