mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 03:57:13 -05:00
Add Next.js frontends with health endpoints
This commit is contained in:
14
apps/web/app/globals.css
Normal file
14
apps/web/app/globals.css
Normal 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;
|
||||
}
|
||||
8
apps/web/app/health/route.ts
Normal file
8
apps/web/app/health/route.ts
Normal 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
32
apps/web/app/layout.tsx
Normal 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
12
apps/web/app/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user