feat: adding proper metadata

This commit is contained in:
dvelo 2024-09-07 09:47:47 -05:00
parent 2effdf4c47
commit 190024aef5
2 changed files with 8 additions and 6 deletions

@ -49,7 +49,7 @@ export default async function RootLayout({
> >
<TooltipProvider> <TooltipProvider>
{banner.isBanner && ( {banner.isBanner && (
<div className="bg-orange-600 w-screen h-8 border-b fixed text-black flex items-center text-center font-medium pl-2"> <div className="bg-orange-600 z-10 w-screen h-8 border-b fixed text-black flex items-center text-center font-medium pl-2">
{banner.bannerText} {banner.bannerText}
</div> </div>
)} )}
@ -73,7 +73,7 @@ export default async function RootLayout({
</div> </div>
<TopBar inter={inter.className} /> <TopBar inter={inter.className} />
</div> </div>
<div> <div className={banner.isBanner ? "pt-8" : undefined}>
<NextTopLoader /> <NextTopLoader />
<ClientFadeIn>{children}</ClientFadeIn> <ClientFadeIn>{children}</ClientFadeIn>
</div>{" "} </div>{" "}

@ -45,18 +45,20 @@ export async function generateMetadata(
icons: icons:
json.server == null json.server == null
? undefined ? undefined
: "https://mcapi.marveldc.me/item/" + : "https://minehut-server-icons-live.s3.us-west-2.amazonaws.com/" +
(json.server.icon == undefined ? "OAK_SIGN" : json.server.icon) + (json.server.icon == undefined ? "OAK_SIGN" : json.server.icon) +
"?width=64&height=64", ".png",
twitter: {},
openGraph: { openGraph: {
type: "profile", type: "profile",
siteName: "MHSF (Minehut Server Finder)", siteName: "MHSF (Minehut Server Finder)",
images: [ images: [
{ {
url: url:
"https://mcapi.marveldc.me/item/" + "https://minehut-server-icons-live.s3.us-west-2.amazonaws.com/" +
json.server.icon + json.server.icon +
"?width=64&height=64", ".png",
}, },
{ {
url: "/favicon.ico", url: "/favicon.ico",