Skip to content

Commit 0e4f5a0

Browse files
committed
regorg docs tweak lander
1 parent 2e385da commit 0e4f5a0

File tree

16 files changed

+198
-472
lines changed

16 files changed

+198
-472
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 toolbeam
3+
Copyright (c) 2025 SST
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<p align="center">
1111
<a href="https://sst.dev/discord"><img alt="Discord" src="https://img.shields.io/discord/983865673656705025?style=flat-square&label=Discord" /></a>
1212
<a href="https://www.npmjs.com/package/opencontrol"><img alt="npm" src="https://img.shields.io/npm/v/opencontrol?style=flat-square" /></a>
13-
<a href="https://github.com/toolbeam/opencontrol/actions/workflows/release.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/toolbeam/opencontrol/release.yml?style=flat-square&branch=master" /></a>
13+
<a href="https://github.com/sst/opencontrol/actions/workflows/release.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/sst/opencontrol/release.yml?style=flat-square&branch=master" /></a>
1414
</p>
1515

1616
---

app/web/src/pages/index.tsx

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useAccount } from "../components/context-account"
33
import { Navigate } from "@solidjs/router"
44
import { useOpenAuth } from "@openauthjs/solid"
55
import { IconLogo, ImageArchitecture } from "../ui/svg"
6-
import screenshot from "../assets/screenshot.png"
76
import styles from "./lander.module.css"
87

98
export default function Index() {
@@ -26,31 +25,24 @@ export default function Index() {
2625

2726
<section data-slot="cta">
2827
<div data-slot="col-1">
29-
<a href="/docs/how-it-works/">Learn more</a>
28+
<a href={`${import.meta.env.VITE_DOCS_URL}/docs/`}>
29+
Docs
30+
</a>
3031
</div>
3132
<div data-slot="col-2">
32-
<span onClick={() => auth.authorize()}>Get started</span>
33+
<span onClick={() => auth.authorize()}>Try it</span>
3334
</div>
3435
<div data-slot="col-3">
35-
<a
36-
target="_blank"
37-
href="https://github.com/toolbeam/opencontrol"
38-
>
39-
Star on GitHub
36+
<a target="_blank" href="https://github.com/sst/opencontrol">
37+
GitHub
4038
</a>
4139
</div>
4240
</section>
4341

4442
<section data-slot="images">
45-
<div>
46-
<p>Client</p>
47-
<a href="/docs/usage/">
48-
<img src={screenshot} alt="OpenControl screenshot" />
49-
</a>
50-
</div>
5143
<div>
5244
<p>Architecture</p>
53-
<a href="/docs/how-it-works/">
45+
<a href={`${import.meta.env.VITE_DOCS_URL}/docs/how-it-works/`}>
5446
<ImageArchitecture width="100%" />
5547
</a>
5648
</div>

app/web/src/pages/lander.module.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[data-slot="hero"] {
1919
border: 2px solid var(--color-border);
2020

21-
max-width: 90rem;
21+
max-width: 64rem;
2222
margin-left: auto;
2323
margin-right: auto;
2424
width: 100%;
@@ -54,7 +54,18 @@
5454
text-transform: uppercase;
5555
cursor: pointer;
5656
text-decoration: underline;
57-
padding: calc(var(--padding) / 2) 0.5rem;
57+
58+
&[data-slot="col-2"] {
59+
background-color: var(--color-white);
60+
color: var(--color-text-invert);
61+
}
62+
63+
& > * {
64+
display: block;
65+
width: 100%;
66+
height: 100%;
67+
padding: calc(var(--padding) / 2) 0.5rem;
68+
}
5869
}
5970

6071
@media (max-width: 30rem) {

app/web/src/sst-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* eslint-disable */
44
/// <reference types="vite/client" />
55
interface ImportMetaEnv {
6+
readonly VITE_DOCS_URL: string
67
readonly VITE_API_URL: string
78
readonly VITE_AUTH_URL: string
89
readonly VITE_ZERO_URL: string

infra/app.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ export const api = new sst.aws.Function("Api", {
3030
},
3131
})
3232

33+
const docs = new sst.aws.Astro("Docs", {
34+
route: {
35+
router,
36+
path: "/docs",
37+
},
38+
path: "www",
39+
dev: {
40+
url: "http://localhost:4321",
41+
},
42+
})
43+
3344
new sst.aws.StaticSite("Web", {
3445
route: {
3546
router,
@@ -39,18 +50,11 @@ new sst.aws.StaticSite("Web", {
3950
output: "dist/client",
4051
},
4152
environment: {
53+
VITE_DOCS_URL: docs.url,
4254
VITE_API_URL: `https://api-` + domain,
4355
VITE_AUTH_URL: auth.properties.url,
4456
VITE_ZERO_URL: zero.url,
4557
VITE_TEMPLATE_URL: templateUrl,
4658
},
4759
path: "app/web",
4860
})
49-
50-
new sst.aws.Astro("Docs", {
51-
route: {
52-
router,
53-
path: "/docs",
54-
},
55-
path: "www",
56-
})

www/astro.config.mjs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,12 @@ export default defineConfig({
7979
editLink: {
8080
baseUrl: `${config.github}/edit/master/www/`,
8181
},
82-
components: {
83-
Hero: "./src/components/Hero.astro",
84-
},
85-
customCss: ["./src/custom.css", "./src/styles/lander.css"],
82+
customCss: ["./src/custom.css"],
8683
sidebar: [
87-
{ label: "Intro", slug: "docs" },
88-
"docs/tools",
89-
"docs/usage",
90-
"docs/how-it-works",
84+
{ label: "Intro", slug: "index" },
85+
"tools",
86+
"usage",
87+
"how-it-works",
9188
],
9289
}),
9390
],

www/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default {
2-
github: "https://github.com/toolbeam/opencontrol",
2+
github: "https://github.com/sst/opencontrol",
33
discord: "https://sst.dev/discord",
44
}

www/src/components/Hero.astro

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)