From 888b02fe1afdf26e14b36bc4ffb381377adc2078 Mon Sep 17 00:00:00 2001 From: Sicnecher Date: Sat, 18 Jan 2025 15:34:26 +0200 Subject: [PATCH] style: more-style --- src/cmps/BoardDetails.jsx | 2 +- src/cmps/BoardDetailsHeader.jsx | 15 +++++- src/styles/_Board-details-header.scss | 78 +++++++++++++++++++++++++-- src/styles/_Board-details.scss | 4 +- 4 files changed, 90 insertions(+), 9 deletions(-) diff --git a/src/cmps/BoardDetails.jsx b/src/cmps/BoardDetails.jsx index 92c01f4..6548b0e 100644 --- a/src/cmps/BoardDetails.jsx +++ b/src/cmps/BoardDetails.jsx @@ -49,7 +49,7 @@ const BoardDetails = () => { const onTaskUpdate = async (changeInfo) => await updateTask(currentBoard.id, changeInfo); - const cmpOrder = ["taskTitle", "priority", "status", "members", "date"]; + const cmpOrder = ["taskTitle", "priority", "status", "members", "date", "radwan"]; const uid = () => Math.random().toString(36).slice(2); const labels = ["item", "priority", "status", "members", "date"]; diff --git a/src/cmps/BoardDetailsHeader.jsx b/src/cmps/BoardDetailsHeader.jsx index 011b299..9ec4266 100644 --- a/src/cmps/BoardDetailsHeader.jsx +++ b/src/cmps/BoardDetailsHeader.jsx @@ -1,8 +1,9 @@ import ArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import HomeIcon from "@mui/icons-material/HomeOutlined"; import HorizDotsIcon from "@mui/icons-material/MoreHorizOutlined"; +import SearchIcon from '@mui/icons-material/SearchOutlined'; export function BoardDetailsHeader({ boardTitle }) { - const iconStyle = { width: 18 }; + const iconStyle = { width: 18, height: 16 }; return (

@@ -19,6 +20,18 @@ export function BoardDetailsHeader({ boardTitle }) {
+
+
+
New Item
+
+ +
+
+
+ + Search +
+
); } diff --git a/src/styles/_Board-details-header.scss b/src/styles/_Board-details-header.scss index 95b1144..7c139f1 100644 --- a/src/styles/_Board-details-header.scss +++ b/src/styles/_Board-details-header.scss @@ -1,16 +1,26 @@ +.board-details-header{ + color: #323338; +} + .boardTitle { - font-size: 0.85rem; - font-weight: 600; - display: flex; + font-size: 0.8rem; + display: inline-flex; align-items: center; gap: 1rem; + & > h2{ + font-weight: 600; + } + cursor: pointer; + &:hover{ + background-color: rgba(103, 104, 121, 0.1); + } } .board-nav { display: flex; align-items: center; gap: 1rem; - margin-top: 1rem; + margin-top: 0.5rem; & > div { display: flex; align-items: center; @@ -34,10 +44,68 @@ & > div:hover { cursor: pointer; - background-color: rgb(223, 223, 223); + background-color: rgba(103, 104, 121, 0.1); } } .board-details-header > hr { width: 95%; } + +.board-header-actions{ + display: flex; + align-items: center; + gap: 1rem; + margin-top: 1rem; + & > div{ + display: flex; + align-items: center; + gap: 0.1rem; + } + .newTask-button{ + display: flex; + gap: 0px; + align-items: end; + border: none; + color: #3f3f3f; + background-color: #fff; + font-size: 1rem; + cursor: pointer; + border-top-left-radius: 5px; + border-bottom-left-radius: 5px; + color: white; + .new-task-button{ + font-size: 11px; + font-weight: 500; + padding: 6px; + padding-bottom: 6.5px; + padding-left: 8px; + padding-right: 8px; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + background-color: #0073ea; + } + & .arrow-down{ + background-color: #0073ea; + border-top-right-radius: 5px; + border-bottom-right-radius: 5px; + border-left: 1px solid #3c3c3c; + padding: 1px; + padding-bottom: 0px; + padding-top: 6px; + } + & > div:hover{ + cursor: pointer; + background-color: #0060b9; + } + } + & > .choice-div{ + color: #323338; + padding: 4px; + border-radius: 2.5px; + cursor: pointer; + &:hover{ + background-color: rgba(103, 104, 121, 0.1); + } + } +} \ No newline at end of file diff --git a/src/styles/_Board-details.scss b/src/styles/_Board-details.scss index 65d5da1..d94a552 100644 --- a/src/styles/_Board-details.scss +++ b/src/styles/_Board-details.scss @@ -1,7 +1,7 @@ /* Main Grid */ .grid { display: grid; - grid-template-columns: 40px 175px repeat(4, 1fr); /* Match grid structure */ + grid-template-columns: 40px 175px repeat(5, 1fr); /* Match grid structure */ // justify-content: center; background: white; /* Background for grid */ border-left: 0.3rem rgb(148, 182, 210) solid; @@ -12,7 +12,7 @@ flex-direction: column; background-color: white; border-top-left-radius: 12px; - padding-left: 3rem; + padding-left: 1.5rem; } /* Grid Items */