Skip to content

Commit 888b02f

Browse files
committed
style: more-style
1 parent 17337e7 commit 888b02f

File tree

4 files changed

+90
-9
lines changed

4 files changed

+90
-9
lines changed

src/cmps/BoardDetails.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const BoardDetails = () => {
4949
const onTaskUpdate = async (changeInfo) =>
5050
await updateTask(currentBoard.id, changeInfo);
5151

52-
const cmpOrder = ["taskTitle", "priority", "status", "members", "date"];
52+
const cmpOrder = ["taskTitle", "priority", "status", "members", "date", "radwan"];
5353

5454
const uid = () => Math.random().toString(36).slice(2);
5555
const labels = ["item", "priority", "status", "members", "date"];

src/cmps/BoardDetailsHeader.jsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import ArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
22
import HomeIcon from "@mui/icons-material/HomeOutlined";
33
import HorizDotsIcon from "@mui/icons-material/MoreHorizOutlined";
4+
import SearchIcon from '@mui/icons-material/SearchOutlined';
45
export function BoardDetailsHeader({ boardTitle }) {
5-
const iconStyle = { width: 18 };
6+
const iconStyle = { width: 18, height: 16 };
67
return (
78
<header className="board-details-header">
89
<br />
@@ -19,6 +20,18 @@ export function BoardDetailsHeader({ boardTitle }) {
1920
</div>
2021
</section>
2122
<hr />
23+
<section className="board-header-actions">
24+
<div className="newTask-button">
25+
<div className="new-task-button">New Item</div>
26+
<div className="arrow-down">
27+
<ArrowDownIcon style={iconStyle} />
28+
</div>
29+
</div>
30+
<div className="choice-div">
31+
<SearchIcon style={iconStyle} />
32+
<small>Search</small>
33+
</div>
34+
</section>
2235
</header>
2336
);
2437
}

src/styles/_Board-details-header.scss

Lines changed: 73 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1+
.board-details-header{
2+
color: #323338;
3+
}
4+
15
.boardTitle {
2-
font-size: 0.85rem;
3-
font-weight: 600;
4-
display: flex;
6+
font-size: 0.8rem;
7+
display: inline-flex;
58
align-items: center;
69
gap: 1rem;
10+
& > h2{
11+
font-weight: 600;
12+
}
13+
cursor: pointer;
14+
&:hover{
15+
background-color: rgba(103, 104, 121, 0.1);
16+
}
717
}
818

919
.board-nav {
1020
display: flex;
1121
align-items: center;
1222
gap: 1rem;
13-
margin-top: 1rem;
23+
margin-top: 0.5rem;
1424
& > div {
1525
display: flex;
1626
align-items: center;
@@ -34,10 +44,68 @@
3444

3545
& > div:hover {
3646
cursor: pointer;
37-
background-color: rgb(223, 223, 223);
47+
background-color: rgba(103, 104, 121, 0.1);
3848
}
3949
}
4050

4151
.board-details-header > hr {
4252
width: 95%;
4353
}
54+
55+
.board-header-actions{
56+
display: flex;
57+
align-items: center;
58+
gap: 1rem;
59+
margin-top: 1rem;
60+
& > div{
61+
display: flex;
62+
align-items: center;
63+
gap: 0.1rem;
64+
}
65+
.newTask-button{
66+
display: flex;
67+
gap: 0px;
68+
align-items: end;
69+
border: none;
70+
color: #3f3f3f;
71+
background-color: #fff;
72+
font-size: 1rem;
73+
cursor: pointer;
74+
border-top-left-radius: 5px;
75+
border-bottom-left-radius: 5px;
76+
color: white;
77+
.new-task-button{
78+
font-size: 11px;
79+
font-weight: 500;
80+
padding: 6px;
81+
padding-bottom: 6.5px;
82+
padding-left: 8px;
83+
padding-right: 8px;
84+
border-top-left-radius: 3px;
85+
border-bottom-left-radius: 3px;
86+
background-color: #0073ea;
87+
}
88+
& .arrow-down{
89+
background-color: #0073ea;
90+
border-top-right-radius: 5px;
91+
border-bottom-right-radius: 5px;
92+
border-left: 1px solid #3c3c3c;
93+
padding: 1px;
94+
padding-bottom: 0px;
95+
padding-top: 6px;
96+
}
97+
& > div:hover{
98+
cursor: pointer;
99+
background-color: #0060b9;
100+
}
101+
}
102+
& > .choice-div{
103+
color: #323338;
104+
padding: 4px;
105+
border-radius: 2.5px;
106+
cursor: pointer;
107+
&:hover{
108+
background-color: rgba(103, 104, 121, 0.1);
109+
}
110+
}
111+
}

src/styles/_Board-details.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Main Grid */
22
.grid {
33
display: grid;
4-
grid-template-columns: 40px 175px repeat(4, 1fr); /* Match grid structure */
4+
grid-template-columns: 40px 175px repeat(5, 1fr); /* Match grid structure */
55
// justify-content: center;
66
background: white; /* Background for grid */
77
border-left: 0.3rem rgb(148, 182, 210) solid;
@@ -12,7 +12,7 @@
1212
flex-direction: column;
1313
background-color: white;
1414
border-top-left-radius: 12px;
15-
padding-left: 3rem;
15+
padding-left: 1.5rem;
1616
}
1717

1818
/* Grid Items */

0 commit comments

Comments
 (0)