Skip to content

Commit e5ca68b

Browse files
committed
Fixed mobile rendering.
1 parent 954225f commit e5ca68b

2 files changed

Lines changed: 82 additions & 4 deletions

File tree

webpage/frontend/source/frontend/sections/platforms.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ namespace NuiSftpPage::Sections
119119
}(div{class_ = "section-eyebrow"}("// download"),
120120
h2{class_ = "section-title"}("Native on Windows. Flatpak on Linux. Arch & NixOS coming native."),
121121
p{class_ = "section-sub"}()),
122-
div{
123-
class_ = "platforms",
124-
style = "grid-template-columns: 1fr 1fr",
125-
}(windowsCard(), linuxCard())
122+
div{class_ = "platforms"}(windowsCard(), linuxCard())
126123
));
127124
}
128125
}

webpage/static/styles/styles.css

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,3 +1035,84 @@ footer {
10351035

10361036
/* tweaks panel theme override (it lives inside the page) */
10371037
.tweaks-panel { color-scheme: dark; }
1038+
1039+
/* ---------- responsive ---------- */
1040+
@media (max-width: 1024px) {
1041+
.hero-inner {
1042+
grid-template-columns: 1fr;
1043+
gap: 48px;
1044+
}
1045+
.carousel-slide {
1046+
grid-template-columns: 1fr;
1047+
}
1048+
.slide-copy {
1049+
border-right: none;
1050+
border-bottom: 1px solid var(--line);
1051+
padding: 40px 40px 32px;
1052+
}
1053+
.slide-visual { padding: 32px; }
1054+
.features-grid { grid-template-columns: repeat(2, 1fr); }
1055+
.platforms { grid-template-columns: 1fr; }
1056+
.oss { grid-template-columns: 1fr; }
1057+
.oss-visual { border-left: none; border-top: 1px solid var(--line); }
1058+
.foot { grid-template-columns: 1fr 1fr; gap: 32px; }
1059+
.mock-shot-frame { transform: none; }
1060+
.mock-wrap:hover .mock-shot-frame { transform: none; }
1061+
}
1062+
1063+
@media (max-width: 720px) {
1064+
body { font-size: 15px; }
1065+
1066+
.nav-wrap { top: 8px; padding: 0 12px; }
1067+
.nav { gap: 10px; padding: 8px 8px 8px 14px; }
1068+
.nav-links { display: none; }
1069+
.nav .cta { padding: 7px 12px; font-size: 12px; }
1070+
1071+
.hero { padding: 56px 20px 40px; }
1072+
h1.hero-title { font-size: 44px; margin: 16px 0 18px; }
1073+
.hero-sub { font-size: 16px; margin-bottom: 24px; }
1074+
.hero-meta { gap: 18px; flex-wrap: wrap; }
1075+
.hero-actions .btn { flex: 1 1 auto; justify-content: center; }
1076+
1077+
.chip-float.tl { top: -10px; left: 8px; font-size: 11px; padding: 6px 10px; }
1078+
.chip-float.br { bottom: 12px; right: 8px; font-size: 11px; padding: 6px 10px; }
1079+
1080+
section.section { padding: 72px 20px 20px; }
1081+
h2.section-title { font-size: 32px; }
1082+
.section-sub { font-size: 15px; }
1083+
.section-head { margin-bottom: 32px; }
1084+
1085+
.carousel-frame { min-height: 0; }
1086+
.carousel-slide { min-height: 0; }
1087+
.slide-copy { padding: 32px 24px 24px; gap: 14px; }
1088+
.slide-visual { padding: 24px; }
1089+
.slide-title { font-size: 26px; }
1090+
.slide-visual-image { max-width: 100%; }
1091+
1092+
.script-nui-carousel { --frame-min-height: 0; }
1093+
.script-nui-carousel__controls {
1094+
flex-direction: column-reverse;
1095+
gap: 14px;
1096+
align-items: center;
1097+
}
1098+
.script-nui-carousel__dots { flex-wrap: wrap; justify-content: center; }
1099+
.script-nui-carousel__arrows { justify-content: center; }
1100+
.script-nui-carousel__counter { margin: 0 6px; }
1101+
1102+
.features-grid { grid-template-columns: 1fr; }
1103+
.feature-mini { min-height: 0; }
1104+
1105+
.platform-card { padding: 28px 24px; }
1106+
.platform-card h3 { font-size: 22px; }
1107+
1108+
.oss-copy { padding: 36px 24px; }
1109+
.oss-copy h2 { font-size: 32px; }
1110+
.oss-visual { padding: 24px; }
1111+
.oss-actions .btn { flex: 1 1 auto; justify-content: center; }
1112+
1113+
footer { padding: 56px 20px 32px; margin-top: 32px; }
1114+
.foot { grid-template-columns: 1fr; gap: 24px; }
1115+
.foot-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 0 20px; padding-top: 24px; }
1116+
1117+
.field-glow-svg { width: 600px; height: 600px; opacity: 0.3; }
1118+
}

0 commit comments

Comments
 (0)