From 03495e34e7036be27d04d7827fd8d610a281ac4d Mon Sep 17 00:00:00 2001 From: ericli Date: Tue, 22 Aug 2023 10:04:31 +0800 Subject: [PATCH] fix: add basePath and logo path --- apps/web/next.config.js | 2 ++ apps/web/src/app/home/page.tsx | 28 ------------------- apps/web/src/app/layout.tsx | 6 +++- .../src/components/Loading/KamuiLoading.tsx | 2 +- apps/web/src/components/NavBar/Header.tsx | 2 +- 5 files changed, 9 insertions(+), 31 deletions(-) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 475a087..133a2ce 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -5,6 +5,8 @@ module.exports = { images: { unoptimized: true }, + basePath: '/tobi', + assetPrefix: './', webpack: config => { config.resolve.fallback = { fs: false, net: false, tls: false }; return config; diff --git a/apps/web/src/app/home/page.tsx b/apps/web/src/app/home/page.tsx index 0307b49..0a7e541 100644 --- a/apps/web/src/app/home/page.tsx +++ b/apps/web/src/app/home/page.tsx @@ -1,28 +1,6 @@ import { Metadata } from "next"; import { Button, Card } from "ui"; -const CARD_CONTENT = [ - { - title: "Dashboard", - href: "./core-concepts/caching", - cta: "Read More", - }, - { - title: "Deposit", - href: "https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks", - cta: "Read More", - }, - { - title: "Withdraw", - href: "https://turbo.build/repo/docs/reference/configuration", - cta: "Read More", - }, -]; - -export const metadata: Metadata = { - title: "Tobi - Turborepo Example", -}; - export default function Home() { return (
@@ -33,12 +11,6 @@ export default function Home() { Time-lock Omni Bridge Interface - -
- {CARD_CONTENT.map((card) => ( - - ))} -
); diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index 40d10c0..30d3f8d 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -6,9 +6,13 @@ import Header from '../components/NavBar/Header' import { WagmiProvider } from '../components/Provider/WagmiProvider' import ClientOnly from '../components/ClientOnly' - export const metadata: Metadata = { title: 'Tobi', + icons: { + icon: [ + '/tobi/tobi.png' + ] + }, description: 'Welcome to HollowLeaf', } diff --git a/apps/web/src/components/Loading/KamuiLoading.tsx b/apps/web/src/components/Loading/KamuiLoading.tsx index aaf8830..f497f27 100644 --- a/apps/web/src/components/Loading/KamuiLoading.tsx +++ b/apps/web/src/components/Loading/KamuiLoading.tsx @@ -5,7 +5,7 @@ const KamuiLoading = (() => { return (
- Sharingan + Sharingan Kamuiing...
) diff --git a/apps/web/src/components/NavBar/Header.tsx b/apps/web/src/components/NavBar/Header.tsx index b56fdc7..c3124c5 100644 --- a/apps/web/src/components/NavBar/Header.tsx +++ b/apps/web/src/components/NavBar/Header.tsx @@ -14,7 +14,7 @@ const Header: React.FC = () => {