Add Next.js frontends with health endpoints

This commit is contained in:
Alexa Amundson
2025-11-21 00:18:26 -06:00
parent 6722782f47
commit 5f958e3755
28 changed files with 397 additions and 0 deletions

14
apps/web/app/globals.css Normal file
View File

@@ -0,0 +1,14 @@
:root {
color-scheme: dark;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background-color: #0f1115;
color: #f5f6f8;
}
a {
color: inherit;
}
body {
margin: 0;
}

View File

@@ -0,0 +1,8 @@
import { NextResponse } from "next/server";
export async function GET() {
return NextResponse.json({
service: "blackroad-os-web",
status: "ok"
});
}

32
apps/web/app/layout.tsx Normal file
View File

@@ -0,0 +1,32 @@
import "./globals.css";
import type { ReactNode } from "react";
export const metadata = {
title: "BlackRoad OS",
description: "The BlackRoad Operating System"
};
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body>
<header
style={{
padding: "1rem 2rem",
borderBottom: "1px solid #222",
display: "flex",
justifyContent: "space-between"
}}
>
<div>BlackRoad OS</div>
<nav style={{ display: "flex", gap: "1rem" }}>
<a href="/" style={{ textDecoration: "none" }}>Home</a>
<a href="/docs" style={{ textDecoration: "none" }}>Docs</a>
<a href="/health" style={{ textDecoration: "none" }}>Health</a>
</nav>
</header>
<main style={{ padding: "2rem" }}>{children}</main>
</body>
</html>
);
}

12
apps/web/app/page.tsx Normal file
View File

@@ -0,0 +1,12 @@
export default function Page() {
return (
<div>
<h1>BlackRoad Operating System</h1>
<p>
A multi-service, agent-native OS for orchestrating AI, compute,
and compliance.
</p>
<p>Deployed on Railway. Fronted by Cloudflare. Driven by you.</p>
</div>
);
}