Skip to content

Commit e801096

Browse files
committed
wip
1 parent 746b0c9 commit e801096

File tree

152 files changed

+218
-392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+218
-392
lines changed

apps/portal/redirects.mjs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ const walletRedirects = {
711711
};
712712

713713
const paymentRedirects = {
714+
"/pay": "/payments",
714715
"/checkouts": "/payments",
715716
"/checkouts/api-reference": "/payments/nft-checkout/api-reference",
716717
"/checkouts/checkout-link": "/payments/nft-checkout/checkout-link",
@@ -741,7 +742,6 @@ const paymentRedirects = {
741742
"/connect/pay/buy-with-fiat": "/connect/pay/overview",
742743
"/connect/pay/enable-test-mode": "/connect/pay/guides/enable-test-mode",
743744
"/connect/pay/guides/enable-test-mode": "/connect/pay/testing-pay",
744-
"/payments/:match*": "/connect/pay/overview",
745745
};
746746

747747
const contractRedirects = {
@@ -921,7 +921,6 @@ const otherRedirects = {
921921
// connect
922922
"/connect/connect": "/connect/sign-in",
923923
"/connect/ecosystems/:path*": "/connect/wallet/overview",
924-
"/connect/embedded-wallet/:path*": "/connect/in-app-wallet/:path*",
925924
"/connect/embedded-wallet/how-to/get-embedded-wallet-details-on-server":
926925
"/connect/in-app-wallet/how-to/get-in-app-wallet-details-on-server",
927926
"/connect/in-app-wallet/how-to/get-in-app-wallet-details-on-server":
@@ -1016,11 +1015,11 @@ const otherRedirects = {
10161015
"/unity/wallets/providers/smart-wallet":
10171016
"/unity/wallets/providers/account-abstraction",
10181017
"/wallet/get-started/overview": "/connect/wallet/overview",
1019-
// wallets > connect redirects
1020-
"/wallets": "/connect",
1021-
"/wallets/auth/:path*": "/connect/auth/:path*",
1022-
"/wallets/connect/:path*": "/connect/connect/:path*",
1023-
"/wallets/embedded-wallet/:path*": "/connect/embedded-wallet/:path*",
1018+
// connect > wallets
1019+
"/connect/:path*": "/wallets/:path*",
1020+
"/connect/auth/:path*": "/wallets/auth/:path*",
1021+
"/connect/connect/:path*": "/wallets/connect/:path*",
1022+
"/connect/embedded-wallet/:path*": "/wallets/embedded-wallet/:path*",
10241023
// account abstraction rename
10251024
"/wallets/smart-wallet/:path*": "/connect/account-abstraction/:path*",
10261025
"/web3-api/:path*": "/infrastructure/engine/overview",

apps/portal/src/app/Header.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import { ThirdwebIcon } from "../icons/thirdweb";
3232

3333
const links = [
3434
{
35-
href: "/connect",
35+
href: "/wallets",
3636
name: "Wallets",
3737
},
3838
{
39-
href: "/pay",
39+
href: "/payments",
4040
name: "Payments",
4141
},
4242
{
@@ -196,9 +196,10 @@ const supportLinks = [
196196
export function Header() {
197197
const [showBurgerMenu, setShowBurgerMenu] = useState(false);
198198
const router = useRouter();
199+
const pathname = usePathname();
199200

200201
return (
201-
<header className="flex w-full flex-col gap-2 border-b bg-background p-2 lg:px-4">
202+
<header className="flex w-full flex-col gap-2 border-b bg-background pt-4 px-4 lg:px-8 overflow-hidden">
202203
<div className="container flex items-center justify-between gap-6">
203204
{/* Top row */}
204205
<div className="flex items-center gap-2">
@@ -273,7 +274,7 @@ export function Header() {
273274
{links.map((link) => {
274275
return (
275276
<li
276-
className="flex items-center"
277+
className="flex items-center py-4 relative overflow-hidden"
277278
key={link.href}
278279
onClick={() => {
279280
setShowBurgerMenu(false);
@@ -283,6 +284,9 @@ export function Header() {
283284
}}
284285
>
285286
<NavLink href={link.href} name={link.name} />
287+
{pathname === link.href && (
288+
<div className="bg-violet-700 h-1 left-0.5 right-0.5 rounded-full absolute -bottom-0.5" />
289+
)}
286290
</li>
287291
);
288292
})}

apps/portal/src/app/connect/layout.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

apps/portal/src/app/pay/page.mdx

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)