Skip to content

Commit

Permalink
update template (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-t-wang authored Aug 28, 2024
1 parent 3cda31f commit 277da9d
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions demo/with-next/components/ClientContent/ExternalLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,39 @@ export const ExternalLinks = () => {
href="https://worldcoin.org/apps"
className="bg-green-500 text-white text-center rounded-lg p-3"
>
External Link (Link)
Valid Associated Domain (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)
Valid Associated Domain (Button)
</button>
<Link
href="https://whitepaper.worldcoin.org"
className="bg-green-500 text-white text-center rounded-lg p-3"
>
Valid Subdomain (Link)
</Link>
<button
onClick={() => window.open("https://whitepaper.worldcoin.org")}
className="text-white bg-green-500 transition p-4 leading-[1] rounded-lg"
>
Valid Subdomain (Button)
</button>

<button
onClick={() => window.open("https://worldcoin.org/apps", "_blank")}
className="text-white bg-green-500 hover:bg-blue-300 transition p-4 leading-[1] rounded-lg"
onClick={() => window.open("https://google.com", "_blank")}
className="text-white bg-red-500 transition p-4 leading-[1] rounded-lg"
>
External Link Blank (Button)
Invalid External Link (Button)
</button>
<Link
href="https://google.com"
className="bg-red-500 text-white text-center rounded-lg p-3"
>
Invalid External Link (Link)
</Link>
</div>
</>
);
Expand Down

0 comments on commit 277da9d

Please sign in to comment.