ignore: lander styles

This commit is contained in:
Jay V 2025-08-14 12:43:51 -04:00
parent ee62dc0745
commit 3f879859d7

View file

@ -18,6 +18,7 @@ const imageAttrs = {
}; };
const github = config.social.filter(s => s.icon === 'github')[0]; const github = config.social.filter(s => s.icon === 'github')[0];
const discord = config.social.filter(s => s.icon === 'discord')[0];
const command = "curl -fsSL" const command = "curl -fsSL"
const protocol = "https://" const protocol = "https://"
@ -53,7 +54,7 @@ if (image) {
<section class="cta"> <section class="cta">
<div class="col1"> <div class="col1">
<a href="/docs">Docs</a> <a href="/docs">Get Started</a>
</div> </div>
<div class="col2"> <div class="col2">
<button class="command" data-command={`${command} ${protocol}${url} ${bash}`}> <button class="command" data-command={`${command} ${protocol}${url} ${bash}`}>
@ -66,9 +67,6 @@ if (image) {
</span> </span>
</button> </button>
</div> </div>
<div class="col3">
<a href={github.href}>GitHub</a>
</div>
</section> </section>
<section class="content"> <section class="content">
@ -83,18 +81,37 @@ if (image) {
</section> </section>
<section class="images"> <section class="images">
<div> <div class="left">
<p>opencode TUI with the tokyonight theme</p> <figure>
<Image width={600} src={Screenshot} alt="opencode TUI with the tokyonight theme" /> <figcaption>opencode TUI with the tokyonight theme</figcaption>
<Image src={Screenshot} alt="opencode TUI with the tokyonight theme" />
</figure>
</div>
<div class="right">
<div class="row1">
<figure>
<figcaption>opencode in VS Code</figcaption>
<Image src={Screenshot} alt="opencode in VS Code" />
</figure>
</div>
<div class="row2">
<figure>
<figcaption>opencode TUI with the tokyonight theme</figcaption>
<Image src={Screenshot} alt="opencode TUI with the tokyonight theme" />
</figure>
</div>
</div> </div>
</section> </section>
<section class="footer"> <section class="footer">
<div class="col1"> <div class="col1">
<span>Version: Beta</span> <a href={github.href}>GitHub</a>
</div> </div>
<div class="col2"> <div class="col2">
<span>Author: <a href="https://sst.dev">SST</a></span> <a href={discord.href}>Discord</a>
</div>
<div class="col3">
<span>&copy;2025 <a href="https://anoma.ly">Anomaly Innovations</a></span>
</div> </div>
</section> </section>
</div> </div>
@ -102,7 +119,7 @@ if (image) {
<style> <style>
.hero { .hero {
--padding: 3rem; --padding: 3rem;
--vertical-padding: 2rem; --vertical-padding: 1.5rem;
--heading-font-size: var(--sl-text-3xl); --heading-font-size: var(--sl-text-3xl);
margin: 1rem; margin: 1rem;
@ -111,7 +128,7 @@ if (image) {
@media (max-width: 30rem) { @media (max-width: 30rem) {
.hero { .hero {
--padding: 1rem; --padding: 1rem;
--vertical-padding: 1rem; --vertical-padding: 0.75rem;
--heading-font-size: var(--sl-text-2xl); --heading-font-size: var(--sl-text-2xl);
margin: 0.5rem; margin: 0.5rem;
@ -143,31 +160,29 @@ section.cta {
@media (max-width: 50rem) { @media (max-width: 50rem) {
flex-direction: column; flex-direction: column;
& > div.col1 { order: 1; }
& > div.col3 { order: 2; }
& > div.col2 { order: 3; }
} }
& > div { & > div {
line-height: 1.4; line-height: 1.4;
padding: calc(var(--padding) / 2) 1rem; padding: var(--vertical-padding) var(--padding);
a { a {
font-size: 1rem; font-size: 1rem;
} }
} }
& > div.col1, & > div.col3 { & > div.col1 {
flex: 1 1 auto; flex: 0 0 auto;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
@media (max-width: 50rem) { @media (max-width: 50rem) {
padding-bottom: calc(var(--padding) / 2 + 4px); padding-bottom: calc(var(--vertical-padding) + 4px);
} }
} }
& > div.col2 { & > div.col2 {
flex: 0 0 auto; flex: 1;
padding-left: 1rem;
padding-right: 1rem;
} }
& > div + div { & > div + div {
@ -261,13 +276,40 @@ section.content {
} }
section.images { section.images {
display: flex; --images-height: 600px;
flex-direction: row; display: grid;
align-items: stretch; grid-template-columns: 1fr 1fr;
justify-content: space-between; grid-template-rows: var(--images-height);
border-top: 2px solid var(--sl-color-border); border-top: 2px solid var(--sl-color-border);
& > div { & > div.left {
display: flex;
grid-row: 1;
grid-column: 1;
}
& > div.right {
display: grid;
grid-template-rows: 1fr 1fr;
grid-row: 1;
grid-column: 2;
border-left: 2px solid var(--sl-color-border);
& > div.row1 {
display: flex;
grid-row: 1;
border-bottom: 2px solid var(--sl-color-border);
height: calc(var(--images-height) / 2);
}
& > div.row2 {
display: flex;
grid-row: 2;
height: calc(var(--images-height) / 2);
}
}
figure {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -276,51 +318,93 @@ section.images {
border-width: 0; border-width: 0;
border-style: solid; border-style: solid;
border-color: var(--sl-color-border); border-color: var(--sl-color-border);
min-height: 0;
overflow: hidden;
& > div, p { & > div, figcaption {
flex: 1;
display: flex; display: flex;
align-items: center; align-items: center;
} }
}
p { & > div {
letter-spacing: -0.03125rem; flex: 1;
text-transform: uppercase; min-height: 0;
color: var(--sl-color-text-dimmed); display: flex;
align-items: center;
justify-content: center;
}
@media (max-width: 30rem) { figcaption {
font-size: 0.75rem; letter-spacing: -0.03125rem;
text-transform: uppercase;
color: var(--sl-color-text-dimmed);
flex-shrink: 0;
@media (max-width: 30rem) {
font-size: 0.75rem;
}
} }
} }
img { & > div.left figure {
align-self: center; height: var(--images-height);
width: 100%; box-sizing: border-box;
max-width: 600px;
height: auto;
} }
& > div + div { & > div.right figure {
border-width: 0 0 0 2px; height: calc(var(--images-height) / 2);
box-sizing: border-box;
}
& > div.left img {
width: 100%;
height: 100%;
min-width: 0;
object-fit: contain;
}
& > div.right img {
width: 100%;
height: calc(100% - 2rem);
object-fit: contain;
display: block;
} }
@media (max-width: 30rem) { @media (max-width: 30rem) {
& { & {
flex-direction: column; --images-height: auto;
grid-template-columns: 1fr;
grid-template-rows: auto auto;
} }
& > div + div {
border-width: 2px 0 0 0; & > div.left {
grid-row: 1;
grid-column: 1;
} }
}
}
section.approach { & > div.right {
border-top: 2px solid var(--sl-color-border); grid-row: 2;
padding: var(--padding); grid-column: 1;
border-left: none;
border-top: 2px solid var(--sl-color-border);
p + p { & > div.row1,
margin-top: var(--vertical-padding); & > div.row2 {
height: auto;
}
}
& > div.left figure,
& > div.right figure {
height: auto;
}
& > div.left img,
& > div.right img {
width: 100%;
height: auto;
max-height: none;
}
} }
} }
@ -333,12 +417,42 @@ section.footer {
flex: 1; flex: 1;
text-align: center; text-align: center;
text-transform: uppercase; text-transform: uppercase;
padding: calc(var(--padding) / 2) 0.5rem; padding: var(--vertical-padding) 0.5rem;
} }
& > div + div { & > div + div {
border-left: 2px solid var(--sl-color-border); border-left: 2px solid var(--sl-color-border);
} }
/* Below 800px: first two columns shrink to content, third expands */
@media (max-width: 50rem) {
& > div.col1,
& > div.col2 {
flex: 0 0 auto;
padding-left: calc(var(--padding) / 2);
padding-right: calc(var(--padding) / 2);
}
& > div.col3 {
flex: 1;
}
}
/* Mobile: third column on its own row */
@media (max-width: 30rem) {
flex-wrap: wrap;
& > div.col1,
& > div.col2 {
flex: 1;
}
& > div.col3 {
flex: 1 0 100%;
border-left: none;
border-top: 2px solid var(--sl-color-border);
}
}
} }
</style> </style>