Skip to content

Commit a00e7d8

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update Dashboard.jsx
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent 68932a9 commit a00e7d8

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

client/src/components/Dashboard/Dashboard.jsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useState } from 'react'
22
import { Link, useNavigate } from 'react-router-dom';
33
import secureLocalStorage from "react-secure-storage"
4-
import { BsChatLeftFill } from "react-icons/bs";
4+
import { BsChatLeftFill, BsPersonFillGear, BsPower } from "react-icons/bs";
55

66
const Dashboard = () => {
77
const navigate = useNavigate()
@@ -17,9 +17,25 @@ const Dashboard = () => {
1717
if(RoleUser !== null && EmailUser !== null){
1818
return (
1919
<div className="bg-[url('https://wallpapercave.com/wp/wp3998740.png')] bg-cover bg-center py-8 px-12 min-h-screen">
20-
<div className="">
21-
<BsChatLeftFill className='h-16 w-auto bg-green-500 p-4 rounded-xl text-green-800 shadow-md'/>
22-
<p className="text-bold pt-1">Online ChatApp</p>
20+
<div className="md:flex justify-between">
21+
<div className="flex ">
22+
<BsChatLeftFill className='h-16 w-auto bg-green-500 p-4 rounded-xl text-green-800 shadow-md'/>
23+
<p className="font-bold text-white pt-1 text-2xl pl-2 pt-3 ">Online ChatApp</p>
24+
</div>
25+
<div className="flex mt-2">
26+
<div className="flex">
27+
<p className="text-2xl text-white flex">
28+
<BsPersonFillGear />
29+
</p>
30+
<p className="pl-2 font-semibold text-white">My Profile</p>
31+
</div>
32+
<div className="flex pl-4 cursor-pointer" onClick={logout}>
33+
<p className="text-2xl text-white flex">
34+
<BsPower />
35+
</p>
36+
<p className="pl-2 font-semibold text-white">Logout</p>
37+
</div>
38+
</div>
2339
</div>
2440
</div>
2541
)

0 commit comments

Comments
 (0)