Skip to content

Commit 3a06dd5

Browse files
committed
refactor styles for improved layout and spacing across sections
1 parent afce3f2 commit 3a06dd5

File tree

1 file changed

+87
-38
lines changed

1 file changed

+87
-38
lines changed

docs/index.html

Lines changed: 87 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@
239239

240240
/* --- Hero --- */
241241
.hero {
242-
padding: 120px 0 80px;
242+
padding: 80px 0 48px;
243243
display: grid;
244244
grid-template-columns: 1fr 1fr;
245-
gap: 80px;
245+
gap: 48px;
246246
align-items: center;
247247
position: relative;
248248
}
@@ -321,8 +321,8 @@
321321

322322
.hero-buttons {
323323
display: flex;
324-
gap: 16px;
325-
margin-top: 40px;
324+
gap: 12px;
325+
margin-top: 24px;
326326
}
327327

328328
.btn-primary {
@@ -501,12 +501,12 @@
501501

502502
/* --- Features Grid --- */
503503
.features-section {
504-
padding: 120px 0;
504+
padding: 80px 0;
505505
}
506506

507507
.section-header {
508508
text-align: center;
509-
margin-bottom: 80px;
509+
margin-bottom: 48px;
510510
}
511511

512512
.section-label {
@@ -543,8 +543,8 @@
543543
.feature-card {
544544
background: var(--panel);
545545
border: 1px solid var(--border);
546-
padding: 32px;
547-
border-radius: 16px;
546+
padding: 20px;
547+
border-radius: 14px;
548548
transition: all 0.3s;
549549
position: relative;
550550
overflow: hidden;
@@ -581,7 +581,7 @@
581581
align-items: center;
582582
justify-content: center;
583583
font-size: 1.5rem;
584-
margin-bottom: 20px;
584+
margin-bottom: 12px;
585585
}
586586

587587
.feature-card h3 {
@@ -599,15 +599,15 @@
599599

600600
/* --- Installation Steps --- */
601601
.install-section {
602-
padding: 120px 0;
602+
padding: 80px 0;
603603
background: linear-gradient(180deg, transparent, rgba(0, 217, 255, 0.02), transparent);
604604
}
605605

606606
.steps {
607607
display: flex;
608608
flex-direction: column;
609-
gap: 24px;
610-
margin-top: 60px;
609+
gap: 20px;
610+
margin-top: 40px;
611611
max-width: 1000px;
612612
margin-left: auto;
613613
margin-right: auto;
@@ -617,8 +617,8 @@
617617
position: relative;
618618
background: var(--panel);
619619
border: 1px solid var(--border);
620-
border-radius: 16px;
621-
padding: 32px;
620+
border-radius: 12px;
621+
padding: 20px;
622622
transition: all 0.3s;
623623
}
624624

@@ -707,15 +707,15 @@
707707

708708
/* --- Architecture Diagram --- */
709709
.architecture-section {
710-
padding: 120px 0;
710+
padding: 80px 0;
711711
}
712712

713713
.diagram-box {
714714
background: var(--panel);
715715
border: 1px solid var(--border);
716-
border-radius: 24px;
717-
padding: 60px;
718-
margin: 60px 0;
716+
border-radius: 20px;
717+
padding: 40px;
718+
margin: 40px 0;
719719
text-align: center;
720720
position: relative;
721721
overflow: hidden;
@@ -756,16 +756,16 @@
756756

757757
/* --- Memory Section --- */
758758
.memory-section {
759-
padding: 120px 0;
759+
padding: 80px 0;
760760
background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.03), transparent);
761761
}
762762

763763
.memory-grid {
764764
display: grid;
765765
grid-template-columns: 1fr 1fr;
766-
gap: 80px;
766+
gap: 48px;
767767
align-items: center;
768-
margin-top: 60px;
768+
margin-top: 40px;
769769
}
770770

771771
.memory-content h2 {
@@ -807,8 +807,8 @@
807807
.code-preview {
808808
background: var(--bg-secondary);
809809
border: 1px solid var(--border);
810-
border-radius: 16px;
811-
padding: 32px;
810+
border-radius: 12px;
811+
padding: 20px;
812812
font-family: var(--font-mono);
813813
font-size: 0.85rem;
814814
line-height: 1.8;
@@ -837,16 +837,16 @@
837837

838838
/* --- Footer --- */
839839
footer {
840-
padding: 80px 0 40px;
840+
padding: 40px 0 24px;
841841
border-top: 1px solid var(--border);
842-
margin-top: 120px;
842+
margin-top: 40px;
843843
}
844844

845845
.footer-content {
846846
display: grid;
847847
grid-template-columns: 2fr 1fr 1fr;
848-
gap: 60px;
849-
margin-bottom: 60px;
848+
gap: 40px;
849+
margin-bottom: 40px;
850850
}
851851

852852
.footer-brand h3 {
@@ -897,7 +897,7 @@
897897
display: flex;
898898
justify-content: space-between;
899899
align-items: center;
900-
padding-top: 40px;
900+
padding-top: 24px;
901901
border-top: 1px solid var(--border);
902902
font-family: var(--font-mono);
903903
font-size: 0.8rem;
@@ -918,7 +918,7 @@
918918
@media (max-width: 1024px) {
919919
.hero {
920920
grid-template-columns: 1fr;
921-
gap: 60px;
921+
gap: 32px;
922922
}
923923

924924
.hero-content h1 {
@@ -927,12 +927,12 @@
927927

928928
.memory-grid {
929929
grid-template-columns: 1fr;
930-
gap: 60px;
930+
gap: 32px;
931931
}
932932

933933
.footer-content {
934934
grid-template-columns: 1fr;
935-
gap: 40px;
935+
gap: 32px;
936936
}
937937
}
938938

@@ -941,9 +941,51 @@
941941
padding: 0 24px;
942942
}
943943

944+
/* Stack hero sections and constrain total height so it fits the viewport */
945+
.hero {
946+
display: flex;
947+
flex-direction: column;
948+
padding: 20px 0 16px;
949+
gap: 16px;
950+
max-height: calc(100vh - 56px); /* account roughly for the sticky nav (28px top+bottom) */
951+
min-height: 0; /* allow children to shrink */
952+
overflow: hidden;
953+
}
954+
955+
.hero-content {
956+
z-index: 1;
957+
flex: 0 0 auto;
958+
}
959+
944960
.hero-content h1 {
945961
font-size: 2.5rem;
946962
letter-spacing: -1px;
963+
margin-bottom: 8px;
964+
}
965+
966+
/* Make the image placeholder fill remaining space but allow it to shrink */
967+
.hero-image-placeholder {
968+
flex: 1 1 auto;
969+
min-height: 0; /* critical to make inner scroll/overflow work inside flex */
970+
max-height: none;
971+
transform: none;
972+
border-radius: 12px;
973+
overflow: hidden;
974+
}
975+
976+
/* Allow the internal CLI body to scroll if its content is too tall */
977+
.hero-image-placeholder .cli-body {
978+
height: 100%;
979+
min-height: 0;
980+
overflow: auto;
981+
display: block;
982+
}
983+
984+
.hero-image-placeholder img {
985+
display: block;
986+
width: 100%;
987+
height: 100%;
988+
object-fit: cover;
947989
}
948990

949991
.hero-content .subtitle {
@@ -996,6 +1038,13 @@
9961038
}
9971039
}
9981040

1041+
/* Extra small screens */
1042+
@media (max-width: 420px) {
1043+
.hero-image-placeholder {
1044+
max-height: 40vh;
1045+
}
1046+
}
1047+
9991048
@keyframes blink {
10001049
0%,
10011050
100% {
@@ -1172,11 +1221,11 @@ <h3>Deterministic Output</h3>
11721221
<div
11731222
style="
11741223
text-align: center;
1175-
margin-top: 80px;
1176-
padding: 60px 40px;
1224+
margin-top: 32px;
1225+
padding: 32px 24px;
11771226
background: var(--panel);
1178-
border: 2px solid var(--border-bright);
1179-
border-radius: 24px;
1227+
border: 1px solid var(--border-bright);
1228+
border-radius: 16px;
11801229
position: relative;
11811230
overflow: hidden;
11821231
"
@@ -1194,7 +1243,7 @@ <h3>Deterministic Output</h3>
11941243
<h2
11951244
style="
11961245
font-size: 2.5rem;
1197-
margin: 0 0 24px 0;
1246+
margin: 0 0 12px 0;
11981247
font-weight: 800;
11991248
line-height: 1.2;
12001249
background: linear-gradient(135deg, var(--text-primary), var(--accent));
@@ -1259,7 +1308,7 @@ <h3>Learning Team</h3>
12591308
<section
12601309
class="ecosystem-section"
12611310
style="
1262-
padding: 80px 0;
1311+
padding: 40px 0 32px;
12631312
background: linear-gradient(180deg, rgba(124, 58, 237, 0.03), transparent, rgba(0, 217, 255, 0.03));
12641313
"
12651314
>
@@ -1279,7 +1328,7 @@ <h2 class="section-title">Leverage the Entire Ecosystem</h2>
12791328
</p>
12801329
</div>
12811330

1282-
<div class="features-grid" style="margin-top: 60px">
1331+
<div class="features-grid" style="margin-top: 32px">
12831332
<div class="feature-card">
12841333
<div class="feature-icon">🔌</div>
12851334
<h3>Drop-in Integration</h3>

0 commit comments

Comments
 (0)