Skip to content

Commit c2724ac

Browse files
committed
feat: optimize mobile terminal height for better showcase
- Increase intro section to 85vh on mobile (80vh on small screens) - Add min-height to blog-terminal: 350px mobile, 300px small - Add min-height to terminal-content: 280px mobile, 240px small - Better utilizes mobile viewport to showcase terminal output - Maintains responsiveness across different screen sizes
1 parent 7e8d3de commit c2724ac

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

css/grayscale.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,9 +1102,16 @@ a {
11021102
padding-top: 80px;
11031103
}
11041104

1105-
/* Smaller screens - maintain auto height */
1105+
/* Mobile screens - optimize for terminal showcase */
11061106
@media(max-width: 768px) {
1107-
min-height: auto;
1107+
min-height: 85vh; /* Fill most of viewport to show terminal better */
1108+
padding: 60px 0;
1109+
}
1110+
1111+
/* Very small screens - slightly shorter but still prominent */
1112+
@media(max-width: 480px) {
1113+
min-height: 80vh;
1114+
padding: 40px 0;
11081115
}
11091116
.intro-body {
11101117
display: table-cell;
@@ -1400,11 +1407,13 @@ body {
14001407
border-radius: 8px;
14011408
margin: 1rem 0;
14021409
font-size: 13px;
1410+
min-height: 350px; /* Ensure terminal is tall enough to showcase content */
14031411
}
14041412

14051413
@media (max-width: 480px) {
14061414
font-size: 12px;
14071415
margin: 0.5rem 0;
1416+
min-height: 300px; /* Slightly shorter for very small screens */
14081417
}
14091418

14101419
.terminal-header {
@@ -1448,10 +1457,12 @@ body {
14481457

14491458
@media (max-width: 768px) {
14501459
padding: 15px;
1460+
min-height: 280px; /* Ensure enough vertical space for command output */
14511461
}
14521462

14531463
@media (max-width: 480px) {
14541464
padding: 12px;
1465+
min-height: 240px; /* Slightly shorter for very small screens */
14551466
}
14561467

14571468
.terminal-prompt {

0 commit comments

Comments
 (0)