Skip to content

Commit d597c5f

Browse files
committed
implement Menu component
1 parent 2c75109 commit d597c5f

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

client/src/components/Menu.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Socials from "./Socials";
33

44
function Menu(){
55
return (
6-
<div className="w-52 h-56 bg-green-500 absolute left-52 top-8 rounded-lg shadow-xl">
6+
<div className="w-52 h-56 rounded-xl bg-gradient-to-r from-slate-900 to-slate-700 absolute left-52 top-8 rounded-lg shadow-xl">
77
<MenuItem feat="Start Collaboration"></MenuItem>
88
<MenuItem feat="Start Chat"></MenuItem>
99
<MenuItem feat="Save as pdf"></MenuItem>

client/src/components/MenuItem.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
/* eslint-disable react/prop-types */
22
function MenuItem(props){
3-
return(
4-
<div>
5-
<h1>{props.feat}</h1>
6-
</div>
7-
)
3+
return (
4+
<div className="h-11 w-15 border-b border-dotted cursor-pointer content-center">
5+
<h1 className="font-sans text-white justify-center flex">
6+
{props.feat}
7+
</h1>
8+
</div>
9+
);
810
}
911

1012
export default MenuItem;

client/src/components/Sidebar.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import LoginAndLogout from "./LoginAndLogout";
55

66
function Sidebar(props){
77
return (
8-
<div className="flex flex-col w-64 bg-zinc-800 relative" ref={props.ref}>
8+
<div
9+
className="flex flex-col w-64 bg-gradient-to-r from-slate-900 to-slate-700 relative"
10+
ref={props.ref}
11+
>
912
<Header toggleMenu={props.toggleMenu}></Header>
1013
<Toolbar clearOnClick={props.clearOnClick} id={props.id}></Toolbar>
1114
<LoginAndLogout></LoginAndLogout>

client/src/components/Socials.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function Socials(){
1515
</h1>
1616
<img
1717
src={Xlogo}
18-
className="h-6 w-6 rounded cursor-pointer"
18+
className="h-5 w-5 rounded cursor-pointer"
1919
onClick={clickHandler}
2020
></img>
2121
</div>

0 commit comments

Comments
 (0)