Skip to content

Commit ee5d457

Browse files
authored
Merge pull request #14 from apsinghdev/Feat/add-socials
Feat/add socials
2 parents 9f369d5 + 06b8e04 commit ee5d457

File tree

5 files changed

+47
-2
lines changed

5 files changed

+47
-2
lines changed

client/src/App.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const socket = io("http://localhost:8000");
66

77
import Header from "./components/Header";
88
import Toolbar from "./components/Toolbar";
9+
import Socials from "./components/Socials";
10+
import LoginAndLogout from "./components/LoginAndLogout";
911

1012
function App() {
1113
const canvasRef = useRef(null);
@@ -118,15 +120,16 @@ function App() {
118120
<div id="container" style={{ display: "flex" }}>
119121
<div
120122
id="sidebar"
121-
className="flex flex-col w-64 bg-zinc-800"
123+
className="flex flex-col w-64 bg-zinc-800 relative"
122124
ref={sidebarRef}
123125
>
124126
<Header></Header>
125127
<Toolbar></Toolbar>
126-
128+
<Socials></Socials>
127129
<button id="clear" onClick={clearOnClick}>
128130
Clear
129131
</button>
132+
<LoginAndLogout></LoginAndLogout>
130133
</div>
131134
<div className="canvas-container">
132135
<canvas className="canvas" ref={canvasRef}></canvas>

client/src/assets/user-dp.jpg

60.2 KB
Loading

client/src/assets/xlogo.png

7.38 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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;

client/src/components/Socials.jsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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;

0 commit comments

Comments
 (0)