-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 💄 Adjust blogchain UI * fix detail pages gap * fix layout + providers * update ? * metadata * thumb
- Loading branch information
1 parent
fe4c0e5
commit d501bde
Showing
16 changed files
with
102 additions
and
49 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,51 @@ | ||
"use client"; | ||
|
||
import { AppProviders } from "@/components/app-providers"; | ||
import Footer from "@/components/footer"; | ||
import Header from "@/components/header"; | ||
import { MintbaseWalletContextProvider } from "@mintbase-js/react"; | ||
import "@near-wallet-selector/modal-ui/styles.css"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
import { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
import "./globals.css"; | ||
import Footer from "@/components/footer"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
const queryClient = new QueryClient(); | ||
export const metadata: Metadata = { | ||
title: `Blogchain`, | ||
description: "The decentralized writers blog", | ||
openGraph: { | ||
title: `Blogchain`, | ||
description: "Your forever thoughts on the Blockchain", | ||
images: [ | ||
{ | ||
type: "image/png", | ||
url: "./thumbnail.png", | ||
width: "1200", | ||
height: "630", | ||
}, | ||
], | ||
}, | ||
twitter: { | ||
card: "summary_large_image", | ||
title: `Blogchain`, | ||
description: "Your forever thoughts on the Blockchain", | ||
creator: "Mintbase", | ||
images: "./thumbnail.png", | ||
}, | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<MintbaseWalletContextProvider | ||
contractAddress="hellovirtualworld.mintspace2.testnet" | ||
network="testnet" | ||
> | ||
<QueryClientProvider client={queryClient}> | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<Header /> | ||
{children} | ||
<Footer /> | ||
</body> | ||
</html> | ||
</QueryClientProvider> | ||
</MintbaseWalletContextProvider> | ||
<AppProviders> | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<Header /> | ||
{children} | ||
<Footer /> | ||
</body> | ||
</html> | ||
</AppProviders> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use client"; | ||
|
||
import { MintbaseWalletContextProvider } from "@mintbase-js/react"; | ||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; | ||
import { ReactNode } from "react"; | ||
|
||
export function AppProviders({ children }: { children: ReactNode }) { | ||
const queryClient = new QueryClient(); | ||
|
||
return ( | ||
<MintbaseWalletContextProvider | ||
contractAddress="hellovirtualworld.mintspace2.testnet" | ||
network="testnet" | ||
> | ||
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider> | ||
</MintbaseWalletContextProvider> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters