summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-09-10 16:42:32 -1000
committerJay V <[email protected]>2025-09-10 16:42:32 -1000
commit30aae66320b4f132c6240e5dffef3b439f1b0649 (patch)
treecccbaeadd253c49ba5637687bb6cb722477a3c80
parent7b95190df3e8e5e8f11c7c9eb83fdad8f64e3c70 (diff)
downloadopencode-30aae66320b4f132c6240e5dffef3b439f1b0649.tar.gz
opencode-30aae66320b4f132c6240e5dffef3b439f1b0649.zip
docs: lander
-rw-r--r--cloud/app/src/routes/index.css35
-rw-r--r--cloud/app/src/routes/index.tsx8
2 files changed, 42 insertions, 1 deletions
diff --git a/cloud/app/src/routes/index.css b/cloud/app/src/routes/index.css
index 1e8b25176..fe95bb7ea 100644
--- a/cloud/app/src/routes/index.css
+++ b/cloud/app/src/routes/index.css
@@ -50,7 +50,8 @@
}
[data-component="top"] {
- padding: var(--padding);
+ padding: calc(var(--padding) * 1.5) var(--padding) var(--padding);
+ position: relative;
display: flex;
flex-direction: column;
align-items: center;
@@ -82,6 +83,25 @@
color: var(--color-text-secondary);
text-transform: uppercase;
}
+
+ [data-slot="login"] {
+ position: absolute;
+ top: 0;
+ right: 0;
+ border-width: 0 0 1px 1px;
+ border-style: solid;
+ border-color: var(--color-border);
+ background-color: var(--color-bg);
+
+ @media (max-width: 30rem) {
+ display: none;
+ }
+
+ a {
+ display: block;
+ padding: 0.5rem 1rem calc(0.5rem + 4px);
+ }
+ }
}
[data-component="cta"] {
@@ -111,6 +131,19 @@
}
}
+ [data-slot="center"] {
+ display: none;
+
+ @media (max-width: 30rem) {
+ display: block;
+ flex: 1;
+ text-align: center;
+ padding: var(--vertical-padding) 0.5rem;
+ border-top: 1px solid var(--color-border);
+ border-left: none;
+ }
+ }
+
[data-slot="right"] {
flex: 1;
padding: var(--vertical-padding) 1rem;
diff --git a/cloud/app/src/routes/index.tsx b/cloud/app/src/routes/index.tsx
index 6ad6487eb..9075f4079 100644
--- a/cloud/app/src/routes/index.tsx
+++ b/cloud/app/src/routes/index.tsx
@@ -53,17 +53,24 @@ export default function Home() {
return (
<main data-page="home">
<Title>opencode | AI coding agent built for the terminal</Title>
+
<div data-component="content">
<section data-component="top">
<img data-slot="logo light" src={logoLight} alt="opencode logo light" />
<img data-slot="logo dark" src={logoDark} alt="opencode logo dark" />
<h1 data-slot="title">The AI coding agent built for the terminal</h1>
+ <div data-slot="login">
+ <a href="/auth">opencode zen</a>
+ </div>
</section>
<section data-component="cta">
<div data-slot="left">
<a href="/docs">Get Started</a>
</div>
+ <div data-slot="center">
+ <a href="/auth">opencode zen</a>
+ </div>
<div data-slot="right">
<button data-copy data-slot="command">
<span>
@@ -165,6 +172,7 @@ export default function Home() {
</div>
</footer>
</div>
+
<div data-component="legal">
<span>
©2025 <a href="https://anoma.ly">Anomaly Innovations</a>