summaryrefslogtreecommitdiffhomepage
path: root/cloud
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-03 13:51:55 -0400
committerDax Raad <[email protected]>2025-09-03 13:58:08 -0400
commit4406096974e19544b0c08cbc990cbf08b6cd7f23 (patch)
tree3d68b67749af6ae9ec901fba120c0f907a890c2a /cloud
parentfefaad6226a541045f5336d5462b1ade468424db (diff)
downloadopencode-4406096974e19544b0c08cbc990cbf08b6cd7f23.tar.gz
opencode-4406096974e19544b0c08cbc990cbf08b6cd7f23.zip
wip: cloud
Diffstat (limited to 'cloud')
-rw-r--r--cloud/app/src/routes/index.tsx15
1 files changed, 11 insertions, 4 deletions
diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx
index 741000753..23d602db2 100644
--- a/cloud/app/src/routes/index.tsx
+++ b/cloud/app/src/routes/index.tsx
@@ -1,5 +1,5 @@
import { Title } from "@solidjs/meta"
-import { onCleanup, onMount } from "solid-js"
+import { Match, onCleanup, onMount, Switch } from "solid-js"
import "./index.css"
import logoLight from "../asset/logo-ornate-light.svg"
import logoDark from "../asset/logo-ornate-dark.svg"
@@ -87,9 +87,16 @@ export default function Home() {
</a>
<span data-slot="description">, a curated list of models provided by opencode</span>
<span data-slot="divider">&nbsp;/&nbsp;</span>
- <A href={workspace() ? "/workspace/" + workspace() : "/auth/authorize"}>
- {workspace() ? "Dashboard" : "Sign in"}
- </A>
+ <Switch>
+ <Match when={workspace()}>
+ <A href={"/workspace/" + workspace()}>
+ Dashboard
+ </A>
+ </Match>
+ <Match when={true}>
+ <a target="_self" href="/auth/authorize">Sign in</a>
+ </Match>
+ </Switch>
</section>
<section data-component="features">