Skip to content

Commit

Permalink
add external links
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-t-wang committed May 28, 2024
1 parent bcca8d7 commit 6177f24
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions demo/with-next/components/ClientContent/ExternalLinks.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Link from "next/link";

export const ExternalLinks = () => {
return (
<>
<p className="text-xl font-bold">Test External Links</p>
<div className="grid md:grid-cols-2 gap-4">
<Link
href="https://worldcoin.org/apps"
className="bg-green-500 text-white text-center rounded-lg p-3"
>
External Link (Link)
</Link>
<button
onClick={() => window.open("https://worldcoin.org/apps")}
className="text-white bg-green-500 hover:bg-blue-300 transition p-4 leading-[1] rounded-lg"
>
External Link (Button)
</button>
</div>
</>
);
};
3 changes: 3 additions & 0 deletions demo/with-next/components/ClientContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Pay } from "./Pay";
import { User } from "./User";
import { Nav } from "./Nav";
import { WalletAuth } from "./WalletAuth";
import { ExternalLinks } from "./ExternalLinks";

export const ClientContent = () => {
return (
Expand All @@ -22,6 +23,8 @@ export const ClientContent = () => {
<Pay />
<hr />
<WalletAuth />
<hr />
<ExternalLinks />
</div>
</div>
</div>
Expand Down

0 comments on commit 6177f24

Please sign in to comment.