diff --git a/packages/nextjs/components/Footer.tsx b/packages/nextjs/components/Footer.tsx
index e0f4194..f15f646 100644
--- a/packages/nextjs/components/Footer.tsx
+++ b/packages/nextjs/components/Footer.tsx
@@ -11,6 +11,7 @@ import { getTargetNetwork } from "~~/utils/scaffold-eth";
*/
export const Footer = () => {
const nativeCurrencyPrice = useGlobalState(state => state.nativeCurrencyPrice);
+ const codeLink = "https://github.com/BuidlGuidl/private-key-dice";
return (
@@ -31,15 +32,13 @@ export const Footer = () => {
-
-
- Fork me
-
+
·
@@ -56,16 +55,6 @@ export const Footer = () => {
·
-
diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx
index a30c33c..765db53 100644
--- a/packages/nextjs/components/Header.tsx
+++ b/packages/nextjs/components/Header.tsx
@@ -1,27 +1,65 @@
import React, { useCallback, useRef, useState } from "react";
import Image from "next/image";
import Link from "next/link";
+import { useRouter } from "next/router";
import Wallet from "./Wallet";
import { Bars3Icon } from "@heroicons/react/24/outline";
import { FaucetButton, RainbowKitCustomConnectButton } from "~~/components/scaffold-eth";
import { useOutsideClick } from "~~/hooks/scaffold-eth";
+interface HeaderMenuLink {
+ label: string;
+ href: string;
+ icon?: React.ReactNode;
+}
+
+export const menuLinks: HeaderMenuLink[] = [
+ {
+ label: "Home",
+ href: "/",
+ },
+];
+
+export const HeaderMenuLinks = () => {
+ const router = useRouter();
+
+ return (
+ <>
+ {menuLinks.map(({ label, href, icon }) => {
+ const isActive = router.pathname === href;
+ return (
+ -
+
+ {icon}
+ {label}
+
+
+ );
+ })}
+ >
+ );
+};
+
/**
* Site header
*/
export const Header = () => {
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
const burgerMenuRef = useRef(null);
+
useOutsideClick(
burgerMenuRef,
useCallback(() => setIsDrawerOpen(false), []),
);
return (
-
+
@@ -51,6 +91,9 @@ export const Header = () => {
Private Key Dice
+
diff --git a/packages/nextjs/components/dicedemo/Congrats.tsx b/packages/nextjs/components/dicedemo/Congrats.tsx
index c01a970..2975365 100644
--- a/packages/nextjs/components/dicedemo/Congrats.tsx
+++ b/packages/nextjs/components/dicedemo/Congrats.tsx
@@ -24,7 +24,7 @@ const Congrats = ({
};
const privateKey = loadBurnerSK();
- const pwlink = "https://punkwallet.io/pk#" + privateKey;
+ const pwlink = "https://punkwallet.io/opt:pk#" + privateKey;
return (