Skip to content

Commit 38f1235

Browse files
committed
landing: fix CTA section mobile responsiveness
- Extract shared .install-block base CSS (was only under .hero) - Add .cta-block class for CTA section margin - Remove inline styles on CTA GitHub button - Mobile media query now targets all .install-block elements (not just .hero .install-block), fixing CTA's mobile layout
1 parent 688efba commit 38f1235

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

docs/index.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,23 @@
5656
font-size: 1.15rem; color: var(--text2); margin-top: 16px; max-width: 600px; margin-inline: auto;
5757
}
5858
.hero .sub .size { color: var(--green); font-weight: 600; }
59-
.hero .install-block {
60-
margin-top: 36px;
61-
background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
59+
.install-block {
6260
display: inline-flex; align-items: center; padding: 4px 4px 4px 20px;
61+
background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
6362
font-family: 'JetBrains Mono', monospace; font-size: 0.875rem;
6463
position: relative;
6564
}
65+
.hero .install-block {
66+
margin-top: 36px;
67+
}
6668
.hero .install-block code { color: var(--green); }
6769
.hero .install-block .btn {
6870
margin-left: 16px; background: var(--accent); color: #000; border: none;
6971
padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.8125rem;
7072
cursor: pointer; transition: opacity .15s; text-decoration: none;
7173
}
7274
.hero .install-block .btn:hover { opacity: .85; }
75+
.cta-block { margin-top: 0; }
7376

7477
/* ── Copy button ── */
7578
.copy-btn {
@@ -248,12 +251,12 @@
248251
@media (max-width: 700px) {
249252
.hero h1 { font-size: 2rem; }
250253
.hero .sub { font-size: 1rem; }
251-
.hero .install-block {
254+
.install-block {
252255
flex-direction: column; padding: 16px; gap: 12px; width: 100%;
253256
font-size: 0.75rem; overflow: hidden;
254257
}
255-
.hero .install-block code { word-break: break-all; }
256-
.hero .install-block .btn { margin-left: 0; width: 100%; text-align: center; }
258+
.install-block code { word-break: break-all; }
259+
.install-block .btn { margin-left: 0; width: 100%; text-align: center; }
257260
.hero .stats { gap: 24px; flex-wrap: wrap; }
258261
nav { flex-wrap: wrap; gap: 8px; justify-content: center; }
259262
nav div { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
@@ -643,10 +646,10 @@ <h2>Ship <span class="hl">it</span></h2>
643646
One binary. One loop. Zero frameworks.<br>
644647
Go install and go.
645648
</p>
646-
<div class="install-block" style="margin-top:0;display:inline-flex;">
649+
<div class="install-block cta-block">
647650
<code>go install github.com/BackendStack21/kode/cmd/kode@latest</code>
648651
<button class="copy-btn" onclick="copyText(this,'go install github.com/BackendStack21/kode/cmd/kode@latest')">📋 Copy</button>
649-
<a class="btn" href="https://github.com/BackendStack21/kode" target="_blank" style="margin-left:16px;">GitHub →</a>
652+
<a class="btn" href="https://github.com/BackendStack21/kode" target="_blank">GitHub →</a>
650653
</div>
651654
</section>
652655

0 commit comments

Comments
 (0)