File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
import MenuItem from "./MenuItem" ;
2
2
import Socials from "./Socials" ;
3
+ import SponsorBtn from "./SponsorBtn" ;
3
4
4
5
function Menu ( ) {
5
6
return (
6
- < div className = "w-52 h-56 rounded-xl bg-gradient-to-r from-slate-900 to-slate-700 absolute left-52 top-8 rounded-lg shadow-xl" >
7
+ < div className = "w-52 h-71 rounded-xl bg-gradient-to-r from-slate-900 to-slate-700 absolute left-52 top-8 rounded-lg shadow-xl" >
7
8
< MenuItem feat = "Start Collaboration" > </ MenuItem >
8
9
< MenuItem feat = "Start Chat" > </ MenuItem >
9
10
< MenuItem feat = "Save as pdf" > </ MenuItem >
10
11
< MenuItem feat = "Save as png" > </ MenuItem >
12
+ < SponsorBtn > </ SponsorBtn >
11
13
< Socials > </ Socials >
12
14
</ div >
13
15
) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function Socials(){
6
6
window . open ( link , "_blank" ) ;
7
7
}
8
8
return (
9
- < div className = "flex items-center justify-center mt -3" >
9
+ < div className = "flex items-center justify-center my -3" >
10
10
< h1 className = "text-white mr-2 cursor-pointer font-sans" onClick = { clickHandler } >
11
11
Built By{ " " }
12
12
< span className = "font-mono text-emerald-300 hover:lowercase" >
Original file line number Diff line number Diff line change
1
+ import sponsorImg from "../assets/sponsor.png" ;
2
+ const link = "https://github.com/sponsors/apsinghdev?o=esb" ;
3
+
4
+ function clickHandler ( ) {
5
+ window . open ( link , '_blank' ) ;
6
+ }
7
+
8
+ function SponsorBtn ( ) {
9
+ return (
10
+ < div className = "flex items-center justify-center mt-3 cursor-pointer border-b border-dotted pb-2" >
11
+ < img src = { sponsorImg } className = "h-5 w-5 rounded" > </ img >
12
+ < h1 className = "text-white pl-1 cursor-pointer font-sans" onClick = { clickHandler } > Sponsor</ h1 >
13
+ </ div >
14
+ ) ;
15
+ }
16
+
17
+ export default SponsorBtn ;
You can’t perform that action at this time.
0 commit comments