Skip to content

Commit

Permalink
style: more-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Sicnecher committed Jan 18, 2025
1 parent 17337e7 commit 888b02f
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/cmps/BoardDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down
15 changes: 14 additions & 1 deletion src/cmps/BoardDetailsHeader.jsx
Original file line number Diff line number Diff line change
@@ -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 (
<header className="board-details-header">
<br />
Expand All @@ -19,6 +20,18 @@ export function BoardDetailsHeader({ boardTitle }) {
</div>
</section>
<hr />
<section className="board-header-actions">
<div className="newTask-button">
<div className="new-task-button">New Item</div>
<div className="arrow-down">
<ArrowDownIcon style={iconStyle} />
</div>
</div>
<div className="choice-div">
<SearchIcon style={iconStyle} />
<small>Search</small>
</div>
</section>
</header>
);
}
78 changes: 73 additions & 5 deletions src/styles/_Board-details-header.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
}
}
}
4 changes: 2 additions & 2 deletions src/styles/_Board-details.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -12,7 +12,7 @@
flex-direction: column;
background-color: white;
border-top-left-radius: 12px;
padding-left: 3rem;
padding-left: 1.5rem;
}

/* Grid Items */
Expand Down

0 comments on commit 888b02f

Please sign in to comment.