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>
{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}
</div>
)}
@ -73,7 +73,7 @@ export default async function RootLayout({
</div>
<TopBar inter={inter.className} />
</div>
<div>
<div className={banner.isBanner ? "pt-8" : undefined}>
<NextTopLoader />
<ClientFadeIn>{children}</ClientFadeIn>
</div>{" "}

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