mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-23 02:34:21 +01:00
docs: tweak lander
This commit is contained in:
@@ -5,6 +5,7 @@ import type { Props } from '@astrojs/starlight/props';
|
|||||||
|
|
||||||
import CopyIcon from "../assets/lander/copy.svg";
|
import CopyIcon from "../assets/lander/copy.svg";
|
||||||
import CheckIcon from "../assets/lander/check.svg";
|
import CheckIcon from "../assets/lander/check.svg";
|
||||||
|
import Screenshot from "../assets/themes/tokyonight.png";
|
||||||
|
|
||||||
const { data } = Astro.locals.starlightRoute.entry;
|
const { data } = Astro.locals.starlightRoute.entry;
|
||||||
const { title = data.title, tagline, image, actions = [] } = data.hero || {};
|
const { title = data.title, tagline, image, actions = [] } = data.hero || {};
|
||||||
@@ -77,6 +78,13 @@ if (image) {
|
|||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="images">
|
||||||
|
<div>
|
||||||
|
<p>opencode TUI with the tokyonight theme</p>
|
||||||
|
<Image width={600} src={Screenshot} alt="opencode TUI with the tokyonight theme" />
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="footer">
|
<section class="footer">
|
||||||
<div class="col1">
|
<div class="col1">
|
||||||
<span>Version: Beta</span>
|
<span>Version: Beta</span>
|
||||||
@@ -128,24 +136,39 @@ section.cta {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
border-top: 2px solid var(--sl-color-border);
|
border-top: 2px solid var(--sl-color-border);
|
||||||
|
|
||||||
|
@media (max-width: 40rem) {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
padding: calc(var(--padding) / 2) 0.5rem;
|
padding: calc(var(--padding) / 2) 0.5rem;
|
||||||
|
|
||||||
|
@media (max-width: 40rem) {
|
||||||
|
padding-bottom: calc(var(--padding) / 2 + 4px);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
& > div.col2 {
|
||||||
|
@media (max-width: 50rem) {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
& > div:not(.col2) {
|
& > div:not(.col2) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 30rem) {
|
|
||||||
& > div {
|
|
||||||
padding-bottom: calc(var(--padding) / 2 + 4px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& > div + div {
|
& > div + div {
|
||||||
border-left: 2px solid var(--sl-color-border);
|
border-left: 2px solid var(--sl-color-border);
|
||||||
|
@media (max-width: 40rem) {
|
||||||
|
border-left: none;
|
||||||
|
border-top: 2px solid var(--sl-color-border);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.command {
|
.command {
|
||||||
@@ -211,6 +234,61 @@ section.content {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.images {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: stretch;
|
||||||
|
justify-content: space-between;
|
||||||
|
border-top: 2px solid var(--sl-color-border);
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: calc(var(--padding) / 4);
|
||||||
|
padding: calc(var(--padding) / 2);
|
||||||
|
border-width: 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: var(--sl-color-border);
|
||||||
|
|
||||||
|
& > div, p {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
letter-spacing: -0.03125rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: var(--sl-color-text-dimmed);
|
||||||
|
|
||||||
|
@media (max-width: 30rem) {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
align-self: center;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
& > div + div {
|
||||||
|
border-width: 0 0 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 30rem) {
|
||||||
|
& {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
& > div + div {
|
||||||
|
border-width: 2px 0 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
section.approach {
|
section.approach {
|
||||||
border-top: 2px solid var(--sl-color-border);
|
border-top: 2px solid var(--sl-color-border);
|
||||||
padding: var(--padding);
|
padding: var(--padding);
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
|
|||||||
- Log in with Anthropic to use your Claude Pro or Claude Max account.
|
- Log in with Anthropic to use your Claude Pro or Claude Max account.
|
||||||
- Supports 75+ LLM providers through [Models.dev](https://models.dev), including local models.
|
- Supports 75+ LLM providers through [Models.dev](https://models.dev), including local models.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|||||||
Reference in New Issue
Block a user