Skip to content

Commit 78c916e

Browse files
authored
Fixed the same-tab-open bug.
1 parent d7bd50a commit 78c916e

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

app/page.js

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,35 @@ const page = () => {
5858
</div>
5959
<nav className="flex flex-col sm:flex-row flex-wrap items-center justify-between mt-4 md:mt-0 space-y-4 sm:space-y-0 sm:space-x-6">
6060
<div className="flex items-center space-x-4">
61-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/sponsors/Soumilgit" className="inline-block">
62-
<iframe src="https://github.com/sponsors/Soumilgit/button" title="Sponsor Soumil on GitHub" height="32" width="114" className="border-0 rounded-lg"></iframe>
63-
</a>
61+
<div className="relative group">
62+
<a
63+
target="_blank"
64+
rel="noopener noreferrer"
65+
href="https://github.com/sponsors/Soumilgit"
66+
className="absolute inset-0 z-10"
67+
aria-label="Sponsor Soumil on GitHub"
68+
></a>
69+
<iframe
70+
src="https://github.com/sponsors/Soumilgit/button"
71+
title="Sponsor Soumil on GitHub"
72+
height="32"
73+
width="114"
74+
className="border-0 rounded-lg relative"
75+
></iframe>
76+
</div>
6477

65-
<a target="_blank" rel="noopener noreferrer" href="https://github.com/Soumilgit" className="inline-block relative group">
66-
<div className="absolute -inset-1 bg-gradient-to-r from-primary to-secondary rounded-full blur opacity-0 group-hover:opacity-30 transition duration-300"></div>
67-
<FaGithub className="relative text-foreground hover:text-primary transition-colors w-7 h-7" />
68-
</a>
69-
<ModeToggle />
70-
</div>
78+
<a
79+
target="_blank"
80+
rel="noopener noreferrer"
81+
href="https://github.com/Soumilgit"
82+
className="inline-block relative group"
83+
>
84+
<div className="absolute -inset-1 bg-gradient-to-r from-primary to-secondary rounded-full blur opacity-0 group-hover:opacity-30 transition duration-300"></div>
85+
<FaGithub className="relative text-foreground hover:text-primary transition-colors w-7 h-7" />
86+
</a>
87+
88+
<ModeToggle />
89+
</div>
7190

7291
<div className="flex flex-col sm:flex-row items-center space-y-2 sm:space-y-0">
7392
<a

0 commit comments

Comments
 (0)