130 lines
4.2 KiB
TypeScript
130 lines
4.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Fraunces, Inter, IBM_Plex_Mono } from "next/font/google";
|
|
import "./styles.css";
|
|
|
|
const displaySerif = Fraunces({
|
|
subsets: ["latin"],
|
|
style: ["normal", "italic"],
|
|
variable: "--font-serif",
|
|
display: "swap",
|
|
axes: ["opsz"],
|
|
});
|
|
|
|
const bodySans = Inter({
|
|
subsets: ["latin"],
|
|
weight: ["400", "500", "600", "700", "800"],
|
|
variable: "--font-sans",
|
|
display: "swap",
|
|
});
|
|
|
|
const ledgerMono = IBM_Plex_Mono({
|
|
subsets: ["latin"],
|
|
weight: ["400", "500", "600", "700"],
|
|
variable: "--font-mono",
|
|
display: "swap",
|
|
});
|
|
|
|
const fontVariables = `${displaySerif.variable} ${bodySans.variable} ${ledgerMono.variable}`;
|
|
|
|
const metadataDescription =
|
|
"Find owner-verified open-source projects by language and country, contribute to active repositories, or promote your repo with transparent paid placement.";
|
|
|
|
export const metadata: Metadata = {
|
|
metadataBase: new URL("https://bidstage.app"),
|
|
title: {
|
|
default: "Bidstage — Discover Open-Source Projects & Promote Yours",
|
|
template: "%s | Bidstage",
|
|
},
|
|
description: metadataDescription,
|
|
keywords: [
|
|
"open source projects to contribute to",
|
|
"find open source projects by language",
|
|
"promote open source project",
|
|
"open source project directory",
|
|
"sponsor open source",
|
|
"good first issues",
|
|
],
|
|
icons: { icon: "/icon.svg" },
|
|
alternates: { canonical: "/" },
|
|
openGraph: {
|
|
type: "website",
|
|
siteName: "Bidstage",
|
|
title: "Bidstage — Discover Open-Source Projects & Promote Yours",
|
|
description: metadataDescription,
|
|
url: "/",
|
|
images: [{ url: "/opengraph-image", width: 1200, height: 630, alt: "Bidstage — discover and promote open-source projects in public" }],
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "Bidstage — Discover Open-Source Projects & Promote Yours",
|
|
description: metadataDescription,
|
|
images: ["/twitter-image"],
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: { index: true, follow: true, "max-image-preview": "large", "max-snippet": -1 },
|
|
},
|
|
};
|
|
|
|
const siteDescription =
|
|
"Browse open-source projects by language and country to find where to contribute, or promote your own repository with transparent, labeled placement where every spend and click is public.";
|
|
|
|
const jsonLd = {
|
|
"@context": "https://schema.org",
|
|
"@graph": [
|
|
{
|
|
"@type": "Organization",
|
|
"@id": "https://bidstage.app/#organization",
|
|
name: "Bidstage",
|
|
url: "https://bidstage.app",
|
|
description: siteDescription,
|
|
logo: "https://bidstage.app/icon.svg",
|
|
},
|
|
{
|
|
"@type": "WebSite",
|
|
"@id": "https://bidstage.app/#website",
|
|
name: "Bidstage",
|
|
url: "https://bidstage.app",
|
|
description: siteDescription,
|
|
publisher: { "@id": "https://bidstage.app/#organization" },
|
|
inLanguage: "en",
|
|
},
|
|
{
|
|
"@type": "WebApplication",
|
|
"@id": "https://bidstage.app/#webapp",
|
|
name: "Bidstage",
|
|
url: "https://bidstage.app",
|
|
applicationCategory: "DeveloperApplication",
|
|
operatingSystem: "Web",
|
|
description: siteDescription,
|
|
isAccessibleForFree: true,
|
|
publisher: { "@id": "https://bidstage.app/#organization" },
|
|
offers: {
|
|
"@type": "AggregateOffer",
|
|
name: "Upvote",
|
|
description: "Upvotes cost $5.00 each. Buy any quantity to boost a verified open-source project's board position. One-time purchase, not a subscription.",
|
|
priceCurrency: "USD",
|
|
price: "5.00",
|
|
lowPrice: "5.00",
|
|
highPrice: "50000.00",
|
|
offerCount: 1,
|
|
priceSpecification: {
|
|
"@type": "UnitPriceSpecification",
|
|
price: "5.00",
|
|
priceCurrency: "USD",
|
|
referenceQuantity: {
|
|
"@type": "QuantitativeValue",
|
|
value: 1,
|
|
unitText: "upvote",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
return <html lang="en" className={fontVariables}><body><a className="skip-link" href="#main-content">Skip to main content</a><script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }} />{children}</body></html>;
|
|
}
|