Просмотр исходного кода

fix(landing): stop the code box and feature cards from overflowing on small screens (#1668)

Nacho 1 месяц назад
Родитель
Сommit
abeecb4769
5 измененных файлов с 17 добавлено и 7 удалено
  1. 1 1
      web/features.html
  2. 1 1
      web/home-assistant.html
  3. 1 1
      web/index.html
  4. 1 1
      web/integrations.html
  5. 13 3
      web/styles.css

+ 1 - 1
web/features.html

@@ -34,7 +34,7 @@
   <meta name="twitter:image" content="https://netpulse.cloudless.club/og.png" />
   <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='10' y1='78' x2='90' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2322D3EE'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='73' cy='60' r='6' fill='url(%23g)'/%3E%3Cpath d='M62.4 49.4 A15 15 0 0 1 83.6 49.4' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M55.3 39.7 A25 25 0 0 1 90.7 39.7' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E" />
   <link rel="stylesheet" href="fonts/fonts.css" />
-  <link rel="stylesheet" href="styles.css?v=20261018b" />
+  <link rel="stylesheet" href="styles.css?v=20261029b" />
   <script type="application/ld+json">
   {
     "@context": "https://schema.org",

+ 1 - 1
web/home-assistant.html

@@ -34,7 +34,7 @@
   <meta name="twitter:image" content="https://netpulse.cloudless.club/og.png" />
   <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='10' y1='78' x2='90' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2322D3EE'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='73' cy='60' r='6' fill='url(%23g)'/%3E%3Cpath d='M62.4 49.4 A15 15 0 0 1 83.6 49.4' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M55.3 39.7 A25 25 0 0 1 90.7 39.7' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E" />
   <link rel="stylesheet" href="fonts/fonts.css" />
-  <link rel="stylesheet" href="styles.css?v=20261018b" />
+  <link rel="stylesheet" href="styles.css?v=20261029b" />
 <script data-goatcounter="https://stats.netpulse.cloudless.club/count" async src="https://stats.netpulse.cloudless.club/count.js" integrity="sha384-2UjvVpptg4JlEVgJI2PdscrjOjPcil/4F1ZvIMJ81CShQnEDSlPI+l4PfogvTLYi" crossorigin="anonymous"></script>
 </head>
 <body>

+ 1 - 1
web/index.html

@@ -34,7 +34,7 @@
   <meta name="twitter:image" content="https://netpulse.cloudless.club/og.png" />
   <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='10' y1='78' x2='90' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2322D3EE'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='73' cy='60' r='6' fill='url(%23g)'/%3E%3Cpath d='M62.4 49.4 A15 15 0 0 1 83.6 49.4' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M55.3 39.7 A25 25 0 0 1 90.7 39.7' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E" />
   <link rel="stylesheet" href="fonts/fonts.css" />
-  <link rel="stylesheet" href="styles.css?v=20261018b" />
+  <link rel="stylesheet" href="styles.css?v=20261029b" />
   <script type="application/ld+json">
   {
     "@context": "https://schema.org",

+ 1 - 1
web/integrations.html

@@ -34,7 +34,7 @@
   <meta name="twitter:image" content="https://netpulse.cloudless.club/og.png" />
   <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='10' y1='78' x2='90' y2='20' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2322D3EE'/%3E%3Cstop offset='1' stop-color='%23A78BFA'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 60 H27 L33 60 L40 38 L48 78 L54 48 L58 60 H64' stroke='url(%23g)' stroke-width='5.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='73' cy='60' r='6' fill='url(%23g)'/%3E%3Cpath d='M62.4 49.4 A15 15 0 0 1 83.6 49.4' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M55.3 39.7 A25 25 0 0 1 90.7 39.7' stroke='url(%23g)' stroke-width='5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E" />
   <link rel="stylesheet" href="fonts/fonts.css" />
-  <link rel="stylesheet" href="styles.css?v=20261018b" />
+  <link rel="stylesheet" href="styles.css?v=20261029b" />
 <script data-goatcounter="https://stats.netpulse.cloudless.club/count" async src="https://stats.netpulse.cloudless.club/count.js" integrity="sha384-2UjvVpptg4JlEVgJI2PdscrjOjPcil/4F1ZvIMJ81CShQnEDSlPI+l4PfogvTLYi" crossorigin="anonymous"></script>
 </head>
 <body>

+ 13 - 3
web/styles.css

@@ -145,6 +145,13 @@ a:hover { text-decoration: underline; }
 }
 html[dir="rtl"] #langSelect { margin-left: 0; margin-right: 0.5rem; }
 @media (max-width: 860px) { .nav-links { display: none; } }
+@media (max-width: 600px) {
+  .nav-inner { gap: 0.6rem; }
+  .nav-star { display: none; }
+  .nav-cta { padding: 0.35rem 0.65rem; font-size: 0.8125rem; }
+  #langSelect { margin-left: 0; padding: 0.3rem 0.35rem; font-size: 0.75rem; max-width: 4.2rem; }
+  html[dir="rtl"] #langSelect { margin-right: 0; }
+}
 
 /* ---------- hero ---------- */
 .hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 6rem 0 4rem; overflow: hidden; }
@@ -392,16 +399,19 @@ html[dir="rtl"] .alert-item { transform: translateX(14px); }
 @media (max-width: 860px) { .install-grid { grid-template-columns: 1fr; } }
 /* v2.3 - /#install: tarjeta Recomendado a 100% con dos columnas internas (#1403) */
 .install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 1.75rem; }
+.install-cols > div { min-width: 0; }
 @media (max-width: 860px) { .install-cols { grid-template-columns: 1fr; } }
-.codecard { padding: 1.6rem; }
+.codecard { padding: 1.6rem; min-width: 0; }
 .codecard h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; margin: 0 0 1.15rem; }
 .codebox {
   display: flex; align-items: center; gap: 0.85rem;
   background: rgb(var(--canvas)); border: 1px solid rgb(var(--border));
   border-radius: var(--radius); padding: 1rem 1.15rem; overflow-x: auto;
+  min-width: 0;
 }
-.codebox code { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: rgb(var(--text-primary)); white-space: nowrap; }
+.codebox code { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: rgb(var(--text-primary)); white-space: nowrap; min-width: 0; }
 .codebox .prompt { color: rgb(var(--text-muted)); user-select: none; }
+.codebox .agent-copy { position: sticky; right: 0; }
 .code-actions { display: flex; justify-content: flex-end; margin: 0.6rem 0 0.75rem; }
 .copybtn {
   flex-shrink: 0; border: 1px solid rgb(var(--border-strong)); background: rgb(var(--elevated));
@@ -687,7 +697,7 @@ html[dir="rtl"] .honest { border-left: none; border-right: 3px solid rgb(var(--w
 .nav-links a.active { color: rgb(var(--accent)); }
 
 .features-detail { margin-top: 2rem; }
-.features-detail .feature { padding: 1.75rem; display: flex; flex-direction: column; }
+.features-detail .feature { padding: 1.75rem; display: flex; flex-direction: column; min-width: 0; }
 .features-detail .feature p { flex: 1; }
 
 .feature-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }