|
1929 | 1929 |
|
1930 | 1930 | @media (min-width: 760px) and (max-width: 980px) and (orientation: portrait) { |
1931 | 1931 | .site { |
1932 | | - min-height: 118svh; |
| 1932 | + min-height: 108svh; |
1933 | 1933 | padding: 0; |
1934 | 1934 | } |
1935 | 1935 |
|
|
2053 | 2053 | } |
2054 | 2054 |
|
2055 | 2055 | .visual { |
2056 | | - min-height: 360px; |
| 2056 | + min-height: 390px; |
2057 | 2057 | margin-top: 0; |
2058 | 2058 | align-items: start; |
| 2059 | + justify-items: start; |
2059 | 2060 | } |
2060 | 2061 |
|
2061 | 2062 | .code-card { |
2062 | | - width: min(100%, 560px); |
| 2063 | + width: min(100%, 450px); |
2063 | 2064 | margin-left: 0; |
2064 | 2065 | margin-right: auto; |
2065 | 2066 | } |
2066 | 2067 |
|
| 2068 | + .card-bar { |
| 2069 | + height: 50px; |
| 2070 | + padding: 0 17px; |
| 2071 | + } |
| 2072 | + |
| 2073 | + pre { |
| 2074 | + font-size: 12.7px; |
| 2075 | + line-height: 1.78; |
| 2076 | + padding: 18px 17px 14px 14px; |
| 2077 | + } |
| 2078 | + |
2067 | 2079 | .agent-card { |
2068 | 2080 | width: 154px; |
2069 | 2081 | right: 96px; |
@@ -2865,40 +2877,39 @@ <h2 data-i18n="resourcesTitle">Download, source, docs.</h2> |
2865 | 2877 | if (resourcesTop < viewportProbe) zone = "resources"; |
2866 | 2878 | else if (featuresTop < viewportProbe) zone = "features"; |
2867 | 2879 |
|
2868 | | - let base; |
2869 | | - let radiusX; |
2870 | | - let radiusY; |
| 2880 | + const isPortraitMobile = window.matchMedia("(max-width: 980px) and (orientation: portrait)").matches; |
| 2881 | + let centerX = width * 0.5; |
| 2882 | + let centerY = height * 0.5; |
| 2883 | + let radiusX = Math.min(width * (isPortraitMobile ? 0.36 : 0.32), isPortraitMobile ? 220 : 280); |
| 2884 | + let radiusY = Math.min(height * (isPortraitMobile ? 0.28 : 0.24), isPortraitMobile ? 210 : 240); |
2871 | 2885 | let phase = 0; |
2872 | | - let strength = 0.74; |
| 2886 | + let strength = 0.76; |
2873 | 2887 |
|
2874 | 2888 | if (zone === "resources") { |
2875 | | - base = elementViewportCenter(".resource-links", { x: width * 0.62, y: height * 0.58 }); |
2876 | 2889 | const p = sectionProgress("#resources"); |
2877 | | - radiusX = Math.min(width * 0.2, 86); |
2878 | | - radiusY = Math.min(height * 0.16, 78); |
2879 | | - phase = p * 2.4; |
2880 | | - strength = 0.7; |
| 2890 | + centerX = width * (isPortraitMobile ? 0.52 : 0.58); |
| 2891 | + centerY = height * (isPortraitMobile ? 0.48 : 0.54); |
| 2892 | + phase = p * 4.1 + 1.4; |
| 2893 | + strength = 0.72; |
2881 | 2894 | } else if (zone === "features") { |
2882 | | - base = elementViewportCenter(".feature-row", { x: width * 0.52, y: height * 0.58 }); |
2883 | 2895 | const p = sectionProgress("#features"); |
2884 | | - radiusX = Math.min(width * 0.24, 96); |
2885 | | - radiusY = Math.min(height * 0.18, 90); |
2886 | | - phase = p * 3.2 + 0.7; |
2887 | | - strength = 0.76; |
| 2896 | + centerX = width * (isPortraitMobile ? 0.48 : 0.54); |
| 2897 | + centerY = height * (isPortraitMobile ? 0.46 : 0.52); |
| 2898 | + phase = p * 4.4 + 0.72; |
| 2899 | + strength = 0.78; |
2888 | 2900 | } else { |
2889 | | - base = elementViewportCenter(".code-card", { x: width * 0.55, y: height * 0.5 }); |
2890 | 2901 | const p = sectionProgress("#top"); |
2891 | | - radiusX = Math.min(width * 0.22, 110); |
2892 | | - radiusY = Math.min(height * 0.15, 84); |
2893 | | - phase = p * 2.2; |
2894 | | - strength = 0.78; |
| 2902 | + centerX = width * (isPortraitMobile ? 0.52 : 0.56); |
| 2903 | + centerY = height * (isPortraitMobile ? 0.44 : 0.5); |
| 2904 | + phase = p * 3.8; |
| 2905 | + strength = 0.8; |
2895 | 2906 | } |
2896 | 2907 |
|
2897 | 2908 | return { |
2898 | 2909 | zone, |
2899 | 2910 | strength, |
2900 | | - x: base.x + Math.cos(time * 0.84 + phase) * radiusX + Math.sin(time * 1.64 + phase) * radiusX * 0.28, |
2901 | | - y: base.y + Math.sin(time * 0.92 + phase) * radiusY + Math.cos(time * 1.36 + phase) * radiusY * 0.24 |
| 2911 | + x: centerX + Math.cos(time * 0.58 + phase) * radiusX + Math.sin(time * 1.14 + phase) * radiusX * 0.34, |
| 2912 | + y: centerY + Math.sin(time * 0.64 + phase) * radiusY + Math.cos(time * 1.03 + phase) * radiusY * 0.28 |
2902 | 2913 | }; |
2903 | 2914 | } |
2904 | 2915 |
|
|
0 commit comments