Skip to content

Commit

Permalink
Modify path route
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytc13579 committed Jan 8, 2024
1 parent fdeb37a commit a01aade
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 8 deletions.
15 changes: 10 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,16 @@ const nextConfig = {
destination: '/blockchains/computers',
permanent: false,
},
{
source: '/blockchains/computers',
destination: '/blockchains',
permanent: false,
},
// {
// source: '/blockchains/computers',
// destination: '/blockchains',
// permanent: false,
// },
// {
// source: '/blockchains/customize',
// destination: '/blockchains/customize',
// permanent: false,
// },
];
},

Expand Down
31 changes: 31 additions & 0 deletions src/app/blockchains/customize/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'use client';

import { DOMAIN_URL, isDevelop, isLocal } from '@/config';
import MainLayout from '@/layouts/MainLayout';
import dynamic from 'next/dynamic';

const pathUrl = '/bvm-website-sats-iframe/buy';

const iframeL2ServicesDomain = isLocal ? 'http://localhost:6009' : DOMAIN_URL;

const IframeTCDynamic = dynamic(
() => import('@/modules/iframe-tc').then((m) => m.default),
{
ssr: false,
},
);

const TCPage = () => {
return (
<MainLayout
headerProps={{
color: 'black',
bgColor: '#F3F1E8',
}}
>
<IframeTCDynamic iframeURL={`${iframeL2ServicesDomain}${pathUrl}`} />
</MainLayout>
);
};

export default TCPage;
2 changes: 1 addition & 1 deletion src/layouts/Header/menuConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface NavItem {
export const NAV_ITEMS: Array<NavItem> = [
{
label: 'Bitcoin L2s',
href: '/blockchains/computers',
href: '/blockchains',
isNewWindow: false,
isHide: false,
},
Expand Down
2 changes: 1 addition & 1 deletion src/modules/home/Section_1/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const Section_1 = () => {
fontWeight={400}
fontSize={'20px'}
onClick={() => {
router.push('/blockchains/computers');
router.push('/blockchains/customize');
}}
>
{`Build your Bitcoin L2`}
Expand Down
2 changes: 1 addition & 1 deletion src/modules/home/Section_2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const Section_2 = () => {
fontWeight={400}
fontSize={'20px'}
onClick={() => {
router.push('/blockchains/computers');
router.push('/blockchains/customize');
}}
_hover={{
opacity: 0.8,
Expand Down

0 comments on commit a01aade

Please sign in to comment.