Skip to content

Commit 62f1a53

Browse files
committed
implement socials component
1 parent 9f369d5 commit 62f1a53

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

client/src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ 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";
910

1011
function App() {
1112
const canvasRef = useRef(null);
@@ -123,7 +124,7 @@ function App() {
123124
>
124125
<Header></Header>
125126
<Toolbar></Toolbar>
126-
127+
<Socials></Socials>
127128
<button id="clear" onClick={clearOnClick}>
128129
Clear
129130
</button>

client/src/assets/xlogo.png

7.38 KB
Loading

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)