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
12 changes: 11 additions & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,23 @@
"devDependencies": {
"@astrojs/check": "^0.9.9",
"@tailwindcss/vite": "^4.3.2",
"@types/node": "^26.1.0",
"tailwindcss": "^4.3.2",
"typescript": "^5.7.3"
},
"nx": {
"targets": {
"build": {
"outputs": ["{projectRoot}/dist"]
"outputs": [
"{projectRoot}/dist"
],
"inputs": [
"production",
"^production",
{
"env": "COMING_SOON"
}
]
}
}
}
Expand Down
13 changes: 13 additions & 0 deletions apps/website/src/components/ComingSoon.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
---

<main
class="flex min-h-screen flex-col items-center justify-center gap-4 bg-neutral-950 px-6 text-center text-neutral-100"
>
<p class="text-sm font-medium uppercase tracking-[0.3em] text-neutral-500">
metaharness.tools
</p>
<h1 class="text-5xl font-semibold tracking-tight sm:text-7xl">
Coming soon
</h1>
</main>
16 changes: 13 additions & 3 deletions apps/website/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
---
import '../styles/global.css';
import ComingSoon from '../components/ComingSoon.astro';

interface Props {
title?: string;
description?: string;
}

// Dev server: real site unless explicitly gated with COMING_SOON=true.
// Production builds: gated unless explicitly unlocked with COMING_SOON=false.
const comingSoon = import.meta.env.DEV
? process.env.COMING_SOON === 'true'
: process.env.COMING_SOON !== 'false';

const {
title = 'metaharness.tools',
description = 'Understanding meta harnesses.',
} = Astro.props;

const pageTitle = comingSoon ? 'metaharness.tools' : title;
const pageDescription = comingSoon ? 'Coming soon.' : description;
---

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={description} />
<meta name="description" content={pageDescription} />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<title>{title}</title>
<title>{pageTitle}</title>
</head>
<body>
<slot />
{comingSoon ? <ComingSoon /> : <slot />}
</body>
</html>
8 changes: 3 additions & 5 deletions apps/website/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import Layout from '../layouts/Layout.astro';
<main
class="flex min-h-screen flex-col items-center justify-center gap-4 bg-neutral-950 px-6 text-center text-neutral-100"
>
<p class="text-sm font-medium uppercase tracking-[0.3em] text-neutral-500">
metaharness.tools
</p>
<h1 class="text-5xl font-semibold tracking-tight sm:text-7xl">
Coming soon
<h1 class="text-4xl font-semibold tracking-tight sm:text-6xl">
Everything you need to know about meta-harnesses.
</h1>
<p class="text-sm text-neutral-500">Made with love by Nx</p>
</main>
</Layout>
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
[build.environment]
NODE_VERSION = "22"
NPM_FLAGS = "--version"

[context.deploy-preview.environment]
COMING_SOON = "false"

[context.branch-deploy.environment]
COMING_SOON = "false"
117 changes: 67 additions & 50 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading