Skip to content
Merged
Show file tree
Hide file tree
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
63 changes: 55 additions & 8 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Metadata } from "next";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getMessages, getTranslations } from "next-intl/server";

import copy from "@/copy/en-EN.json";
import { HomePageAppBar } from "@/components/home-page-app-bar";
import { HomePageFooter } from "@/components/home-page-footer";

Expand All @@ -23,7 +24,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
type: "website",
locale: "en_US",
url: SITE_URL,
siteName: t("metadata.title"),
siteName: copy.metadata.siteName,
title: t("metadata.ogTitle"),
description: t("metadata.ogDescription"),
},
Expand All @@ -32,15 +33,55 @@ export const generateMetadata = async (): Promise<Metadata> => {
title: t("metadata.twitterTitle"),
description: t("metadata.twitterDescription"),
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
};
};

const data = {
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
name: copy.metadata.organizationName,
email: copy.metadata.organizationEmail,
url: copy.metadata.organizationUrl,
sameAs: copy.metadata.organizationSameAs,
founder: [
{ "@type": "Person", name: "vtemian", url: "https://blog.vtemian.com/" },
{ "@type": "Person", name: "balajmarius", url: "https://balajmarius.com/" },
],
logo: new URL("/icon.svg", SITE_URL).toString(),
},
{
"@type": "WebSite",
name: copy.metadata.siteName,
description: copy.metadata.description,
url: new URL("/", SITE_URL).toString(),
inLanguage: "en-US",
publisher: {
"@type": "Organization",
name: copy.metadata.organizationName,
url: copy.metadata.organizationUrl,
},
},
};
{
"@type": "SoftwareApplication",
name: copy.metadata.siteName,
description: copy.metadata.description,
applicationCategory: "DeveloperApplication",
operatingSystem: "Web",
url: new URL("/", SITE_URL).toString(),
offers: {
"@type": "Offer",
price: "0",
priceCurrency: "USD",
},
publisher: {
"@type": "Organization",
name: copy.metadata.organizationName,
url: copy.metadata.organizationUrl,
},
},
],
};

const RootLayout = async ({
Expand All @@ -58,6 +99,12 @@ const RootLayout = async ({
>
<body className="bg-linear-to-b from-grey-800 to-grey-900 antialiased">
<NextIntlClientProvider locale={locale} messages={messages}>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(data),
}}
/>
<HomePageAppBar />
<main className="flex flex-col gap-24 overflow-hidden pt-32 lg:gap-48 lg:pt-48">
{children}
Expand Down
16 changes: 16 additions & 0 deletions src/app/robots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { MetadataRoute } from "next";

const APP_URL = "https://openable.dev";

export const dynamic = "force-static";

const robots = (): MetadataRoute.Robots => ({
rules: {
userAgent: "*",
allow: "/",
disallow: ["/api/", "/auth/", "/cli/"],
},
sitemap: new URL("/sitemap.xml", APP_URL).toString(),
});

export default robots;
9 changes: 9 additions & 0 deletions src/copy/en-EN.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"metadata": {
"siteName": "Openable.dev",
"organizationName": "Wunderlabs",
"organizationEmail": "office@wunderlabs.dev",
"organizationUrl": "https://wunderlabs.dev/",
"organizationSameAs": [
"https://github.com/wunderlabs-dev",
"https://x.com/wunderlabs",
"https://agentic.tm/"
],
"title": "Openable - Run AI-generated apps without hassle",
"description": "Run AI-generated apps without hassle. Import, run, and edit AI-generated projects in Cursor. No Node.js, no terminal, no configuration.",
"ogTitle": "Openable.dev: Run AI-generated apps without hassle",
Expand Down
Loading