diff --git a/packages/web/src/components/Lander.astro b/packages/web/src/components/Lander.astro index ae1b2a5e..8d4d4efe 100644 --- a/packages/web/src/components/Lander.astro +++ b/packages/web/src/components/Lander.astro @@ -19,8 +19,10 @@ const imageAttrs = { const github = config.social.filter(s => s.icon === 'github')[0]; -const command = "npm i -g"; -const pkg = "opencode-ai"; +const command = "curl -fsSL" +const protocol = "https://" +const url = "opencode.ai/install" +const bash = "| bash" let darkImage: ImageMetadata | undefined; let lightImage: ImageMetadata | undefined; @@ -51,11 +53,14 @@ if (image) {
- View the docs + Docs
-
- Star on GitHub + GitHub
@@ -133,39 +138,43 @@ section.top { section.cta { display: flex; flex-direction: row; - justify-content: space-between; + justify-content: flex-start; + align-items: stretch; border-top: 2px solid var(--sl-color-border); - @media (max-width: 40rem) { + @media (max-width: 50rem) { flex-direction: column; + + & > div.col1 { order: 1; } + & > div.col3 { order: 2; } + & > div.col2 { order: 3; } } & > div { - flex: 1; line-height: 1.4; - padding: calc(var(--padding) / 2) 0.5rem; - - @media (max-width: 40rem) { - padding-bottom: calc(var(--padding) / 2 + 4px); - } + padding: calc(var(--padding) / 2) 1rem; a { font-size: 1rem; } } - & > div.col2 { - @media (max-width: 50rem) { - flex: 0 0 auto; - } - } - & > div:not(.col2) { + & > div.col1, & > div.col3 { + flex: 1 1 auto; text-align: center; text-transform: uppercase; + + @media (max-width: 50rem) { + padding-bottom: calc(var(--padding) / 2 + 4px); + } + } + & > div.col2 { + flex: 0 0 auto; } & > div + div { border-left: 2px solid var(--sl-color-border); - @media (max-width: 40rem) { + + @media (max-width: 50rem) { border-left: none; border-top: 2px solid var(--sl-color-border); } @@ -183,6 +192,21 @@ section.cta { code { color: var(--sl-color-text-secondary); font-size: 1.125rem; + + @media (max-width: 24rem) { + font-size: 0.875rem; + } + @media (max-width: 30rem) { + span.protocol { + display: none; + } + } + @media (max-width: 43rem) { + text-align: center; + span:first-child { + display: block; + } + } } code .highlight { color: var(--sl-color-text); @@ -192,6 +216,9 @@ section.cta { .copy { line-height: 1; padding: 0; + @media (max-width: 43rem) { + display: none; + } } .copy svg { width: 1rem;