Skip to content

Commit

Permalink
Merge pull request #8 from hollow-leaf/fix/imgPath
Browse files Browse the repository at this point in the history
fix: add basePath and logo path
  • Loading branch information
yeeetai authored Aug 22, 2023
2 parents 21832a3 + 03495e3 commit 5eec13e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 31 deletions.
2 changes: 2 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
28 changes: 0 additions & 28 deletions apps/web/src/app/home/page.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="flex flex-col items-center justify-center">
Expand All @@ -33,12 +11,6 @@ export default function Home() {
Time-lock Omni Bridge Interface
</span>
</h1>

<div className="mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4 place-content-evenly">
{CARD_CONTENT.map((card) => (
<Card key={card.title} {...card} />
))}
</div>
</main>
</div>
);
Expand Down
6 changes: 5 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}

Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Loading/KamuiLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const KamuiLoading = (() => {

return (
<div className='flex flex-col items-center justify-center space-y-4'>
<Image src="/Kamui.svg" alt='Sharingan' className='w-40 h-40 animate-spin' width={500} height={500} />
<Image src="/tobi/Kamui.svg" alt='Sharingan' className='w-40 h-40 animate-spin' width={500} height={500} />
<span className='text-cat-peach400 text-lg'>Kamuiing...</span>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/NavBar/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Header: React.FC = () => {
<Link href={'/home'}>
<Image
alt='Tobi'
src='/tobi.png'
src='/tobi/tobi.png'
width={500}
height={500}
className='w-14 h-14'
Expand Down

0 comments on commit 5eec13e

Please sign in to comment.