Skip to content

Commit 6b125b4

Browse files
Improve mobile portrait landing layout
1 parent bb37ad7 commit 6b125b4

1 file changed

Lines changed: 234 additions & 23 deletions

File tree

docs/index.html

Lines changed: 234 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,14 +1406,14 @@
14061406
}
14071407

14081408
.brand {
1409-
font-size: 14px;
1409+
font-size: 15px;
14101410
}
14111411

14121412
.brand-mark {
1413-
width: 25px;
1414-
height: 25px;
1415-
border-radius: 9px;
1416-
font-size: 11px;
1413+
width: 28px;
1414+
height: 28px;
1415+
border-radius: 10px;
1416+
font-size: 12px;
14171417
}
14181418

14191419
.lang-toggle {
@@ -1441,14 +1441,15 @@
14411441
}
14421442

14431443
.lang-thumb {
1444-
width: 34px;
1445-
height: 27px;
1446-
transform: translateX(calc(var(--lang-index) * 34px));
1444+
width: 36px;
1445+
height: 29px;
1446+
transform: translateX(calc(var(--lang-index) * 36px));
14471447
}
14481448

14491449
.lang-toggle button {
1450-
min-width: 34px;
1451-
height: 27px;
1450+
min-width: 36px;
1451+
height: 29px;
1452+
font-size: 12px;
14521453
font-weight: 720;
14531454
}
14541455

@@ -1459,12 +1460,12 @@
14591460

14601461
.theme-thumb,
14611462
.theme-toggle button {
1462-
width: 36px;
1463-
height: 27px;
1463+
width: 38px;
1464+
height: 29px;
14641465
}
14651466

14661467
.theme-thumb {
1467-
transform: translateX(calc(var(--theme-index) * 36px));
1468+
transform: translateX(calc(var(--theme-index) * 38px));
14681469
}
14691470

14701471

@@ -1741,19 +1742,19 @@
17411742
}
17421743

17431744
.feature-tile {
1744-
min-height: 88px;
1745-
grid-template-columns: 1fr;
1746-
align-content: start;
1747-
align-items: start;
1748-
gap: 8px;
1749-
padding: 11px;
1750-
border-radius: 32px;
1745+
min-height: 78px;
1746+
grid-template-columns: auto 1fr;
1747+
align-content: center;
1748+
align-items: center;
1749+
gap: 12px;
1750+
padding: 12px 14px;
1751+
border-radius: 30px;
17511752
box-shadow: 0 14px 34px rgba(21, 20, 24, 0.052);
17521753
}
17531754

17541755
.feature-row {
1755-
grid-template-columns: repeat(2, minmax(0, 1fr));
1756-
gap: 8px;
1756+
grid-template-columns: 1fr;
1757+
gap: 10px;
17571758
}
17581759

17591760
.feature-icon {
@@ -1764,7 +1765,7 @@
17641765
}
17651766

17661767
.feature-tile strong {
1767-
font-size: 13px;
1768+
font-size: 14px;
17681769
}
17691770

17701771
.scroll-story {
@@ -1926,6 +1927,216 @@
19261927
}
19271928
}
19281929

1930+
@media (min-width: 760px) and (max-width: 980px) and (orientation: portrait) {
1931+
.site {
1932+
min-height: 118svh;
1933+
padding: 0;
1934+
}
1935+
1936+
.hero-shell {
1937+
min-height: 100svh;
1938+
}
1939+
1940+
.nav {
1941+
padding: max(28px, env(safe-area-inset-top)) 44px 10px;
1942+
align-items: center;
1943+
}
1944+
1945+
.brand {
1946+
gap: 12px;
1947+
font-size: 20px;
1948+
}
1949+
1950+
.brand-mark {
1951+
width: 34px;
1952+
height: 34px;
1953+
border-radius: 12px;
1954+
font-size: 14px;
1955+
}
1956+
1957+
.nav-links {
1958+
display: none;
1959+
}
1960+
1961+
.nav-actions {
1962+
flex-direction: row;
1963+
align-items: center;
1964+
gap: 12px;
1965+
}
1966+
1967+
.lang-toggle {
1968+
padding: 5px;
1969+
}
1970+
1971+
.lang-thumb {
1972+
top: 5px;
1973+
left: 5px;
1974+
width: 44px;
1975+
height: 34px;
1976+
transform: translateX(calc(var(--lang-index) * 44px));
1977+
}
1978+
1979+
.lang-toggle button {
1980+
min-width: 44px;
1981+
height: 34px;
1982+
font-size: 13px;
1983+
}
1984+
1985+
.theme-toggle {
1986+
padding: 5px;
1987+
}
1988+
1989+
.theme-thumb {
1990+
top: 5px;
1991+
left: 5px;
1992+
width: 50px;
1993+
height: 34px;
1994+
transform: translateX(calc(var(--theme-index) * 50px));
1995+
}
1996+
1997+
.theme-toggle button {
1998+
width: 50px;
1999+
height: 34px;
2000+
}
2001+
2002+
.theme-label {
2003+
width: 17px;
2004+
height: 17px;
2005+
}
2006+
2007+
.hero-content {
2008+
min-height: calc(100svh - 96px);
2009+
align-items: start;
2010+
padding: 34px 54px 42px;
2011+
}
2012+
2013+
.hero-grid {
2014+
width: min(100%, 760px);
2015+
margin: 0 auto;
2016+
grid-template-columns: 1fr;
2017+
align-items: start;
2018+
gap: 30px;
2019+
}
2020+
2021+
.copy {
2022+
max-width: 760px;
2023+
gap: 18px;
2024+
}
2025+
2026+
h1 {
2027+
max-width: 760px;
2028+
font-size: clamp(48px, 7.1vw, 68px);
2029+
line-height: 1.02;
2030+
}
2031+
2032+
html[lang="zh-CN"] h1 {
2033+
max-width: 760px;
2034+
font-size: clamp(48px, 6.9vw, 66px);
2035+
line-height: 1.04;
2036+
font-weight: 700;
2037+
}
2038+
2039+
.subhead {
2040+
max-width: 640px;
2041+
font-size: 17px;
2042+
line-height: 1.48;
2043+
}
2044+
2045+
.cta-row {
2046+
gap: 12px;
2047+
}
2048+
2049+
.cta {
2050+
min-height: 48px;
2051+
padding: 0 21px;
2052+
font-size: 15px;
2053+
}
2054+
2055+
.visual {
2056+
min-height: 360px;
2057+
margin-top: 0;
2058+
align-items: start;
2059+
}
2060+
2061+
.code-card {
2062+
width: min(100%, 560px);
2063+
margin-left: 0;
2064+
margin-right: auto;
2065+
}
2066+
2067+
.agent-card {
2068+
width: 154px;
2069+
right: 96px;
2070+
top: 24px;
2071+
}
2072+
2073+
body.is-live-code .agent-card,
2074+
body.cap-agent .agent-card {
2075+
right: 36px;
2076+
top: 22px;
2077+
transform: rotate(5deg) scale(0.92);
2078+
}
2079+
2080+
.package-card {
2081+
width: 168px;
2082+
left: 32px;
2083+
bottom: 16px;
2084+
}
2085+
2086+
body.cap-package .package-card {
2087+
left: 18px;
2088+
bottom: 18px;
2089+
transform: rotate(-4deg) scale(0.92);
2090+
}
2091+
2092+
body.cap-ssh .ssh-pill {
2093+
right: 48px;
2094+
bottom: 18px;
2095+
transform: rotate(3deg) scale(0.94);
2096+
}
2097+
2098+
.scroll-story {
2099+
margin-top: -2svh;
2100+
padding: 4svh 0 34px;
2101+
}
2102+
2103+
.story-stage {
2104+
padding: 24px 44px;
2105+
}
2106+
2107+
.story-card {
2108+
grid-template-columns: 1fr;
2109+
gap: 24px;
2110+
padding: 34px 0;
2111+
}
2112+
2113+
.story-copy {
2114+
max-width: 760px;
2115+
}
2116+
2117+
.feature-row {
2118+
grid-template-columns: 1fr;
2119+
gap: 12px;
2120+
}
2121+
2122+
.feature-tile {
2123+
min-height: 86px;
2124+
grid-template-columns: auto 1fr;
2125+
align-items: center;
2126+
gap: 14px;
2127+
padding: 14px 16px;
2128+
border-radius: 30px;
2129+
}
2130+
2131+
.feature-tile strong {
2132+
font-size: 16px;
2133+
}
2134+
2135+
.resources {
2136+
padding-top: 36px;
2137+
}
2138+
}
2139+
19292140
@media (prefers-reduced-motion: reduce) {
19302141
*,
19312142
*::before,

0 commit comments

Comments
 (0)