File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const socket = io("http://localhost:8000");
7
7
import Header from "./components/Header" ;
8
8
import Toolbar from "./components/Toolbar" ;
9
9
import Socials from "./components/Socials" ;
10
+ import LoginAndLogout from "./components/LoginAndLogout" ;
10
11
11
12
function App ( ) {
12
13
const canvasRef = useRef ( null ) ;
@@ -119,7 +120,7 @@ function App() {
119
120
< div id = "container" style = { { display : "flex" } } >
120
121
< div
121
122
id = "sidebar"
122
- className = "flex flex-col w-64 bg-zinc-800"
123
+ className = "flex flex-col w-64 bg-zinc-800 relative "
123
124
ref = { sidebarRef }
124
125
>
125
126
< Header > </ Header >
@@ -128,6 +129,7 @@ function App() {
128
129
< button id = "clear" onClick = { clearOnClick } >
129
130
Clear
130
131
</ button >
132
+ < LoginAndLogout > </ LoginAndLogout >
131
133
</ div >
132
134
< div className = "canvas-container" >
133
135
< canvas className = "canvas" ref = { canvasRef } > </ canvas >
Original file line number Diff line number Diff line change
1
+ import UserDP from "../assets/user-dp.jpg" ;
2
+
3
+ function LoginAndLogout ( ) {
4
+ return (
5
+ < div className = "flex py-3 rounded-lg justify-around mt-55 bg-gradient-to-r from-indigo-500 from-10% via-sky-500 via-30% to-emerald-500 to-90% w-full items-center bottom-0 absolute" >
6
+ < h1 className = "font-sans text-lg antialiased font-semibold text-white" >
7
+ Ajeet
8
+ </ h1 >
9
+ < img
10
+ src = { UserDP }
11
+ className = "rounded-full object-cover h-8 w-8 ml-4"
12
+ > </ img >
13
+ </ div >
14
+ ) ;
15
+ }
16
+
17
+ export default LoginAndLogout ;
You can’t perform that action at this time.
0 commit comments