File tree Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Expand file tree Collapse file tree 5 files changed +47
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ const socket = io("http://localhost:8000");
6
6
7
7
import Header from "./components/Header" ;
8
8
import Toolbar from "./components/Toolbar" ;
9
+ import Socials from "./components/Socials" ;
10
+ import LoginAndLogout from "./components/LoginAndLogout" ;
9
11
10
12
function App ( ) {
11
13
const canvasRef = useRef ( null ) ;
@@ -118,15 +120,16 @@ function App() {
118
120
< div id = "container" style = { { display : "flex" } } >
119
121
< div
120
122
id = "sidebar"
121
- className = "flex flex-col w-64 bg-zinc-800"
123
+ className = "flex flex-col w-64 bg-zinc-800 relative "
122
124
ref = { sidebarRef }
123
125
>
124
126
< Header > </ Header >
125
127
< Toolbar > </ Toolbar >
126
-
128
+ < Socials > </ Socials >
127
129
< button id = "clear" onClick = { clearOnClick } >
128
130
Clear
129
131
</ button >
132
+ < LoginAndLogout > </ LoginAndLogout >
130
133
</ div >
131
134
< div className = "canvas-container" >
132
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 ;
Original file line number Diff line number Diff line change
1
+ import Xlogo from "../assets/xlogo.png"
2
+ const link = "https://twitter.com/ajeetonx" ;
3
+
4
+ function Socials ( ) {
5
+ function clickHandler ( ) {
6
+ window . open ( link , "_blank" ) ;
7
+ }
8
+ return (
9
+ < div className = "flex items-center justify-center mt-3" >
10
+ < h1 className = "text-white mr-2 cursor-pointer font-sans" onClick = { clickHandler } >
11
+ Built By{ " " }
12
+ < span className = "font-mono text-emerald-300 hover:lowercase" >
13
+ AJEET
14
+ </ span >
15
+ </ h1 >
16
+ < img
17
+ src = { Xlogo }
18
+ className = "h-6 w-6 rounded cursor-pointer"
19
+ onClick = { clickHandler }
20
+ > </ img >
21
+ </ div >
22
+ ) ;
23
+ }
24
+
25
+ export default Socials ;
You can’t perform that action at this time.
0 commit comments