Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@ import { TopNav } from "./_components/TopNav";

export async function generateMetadata(): Promise<Metadata> {
const url = "https://frontiers.paradigm.xyz";
const {
"og:title": _,
"og:image": __,
...frameMetadata
} = await getFrameMetadata(`${url}/api`);

const result = await getFrameMetadata(`${url}/api`) as Record<string, any>;
const { "og:title": _, "og:image": __, ...frameMetadata } = result;

return {
title: "Paradigm Frontiers | August 6-8, 2025",
description:
"Paradigm's annual open source conference and hackathon, bringing together developers, researchers, and enthusiasts to explore and build at the cutting edge of crypto.",
icons: [{ rel: "icon", url: "/images/favicon.png" }],
icons: { icon: "/images/favicon.png" },
twitter: {
card: "summary_large_image",
title: "Paradigm Frontiers | August 6-8, 2025",
Expand Down Expand Up @@ -50,15 +49,15 @@ export async function generateMetadata(): Promise<Metadata> {
};
}

export default function RootLayout({ children }: PropsWithChildren) {
export default function RootLayout({ children }: PropsWithChildren<{}>) {
return (
<html lang="en">
<body>
<WithCursor cursor="box">
<div className="selection:bg-paradigmGreen selection:text-black overflow-x-hidden">
<Providers>
<TopNav />
<main className="">{children}</main>
<main>{children}</main>
</Providers>
</div>
</WithCursor>
Expand Down