Skip to content

Commit 67e6edf

Browse files
committed
fix: hide privacy illustration on mobile
1 parent b358fbc commit 67e6edf

2 files changed

Lines changed: 41 additions & 14 deletions

File tree

website/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="icon" type="image/png" sizes="32x32" href="./images/brand/favicon-32.png" />
1515
<link rel="icon" type="image/png" sizes="16x16" href="./images/brand/favicon-16.png" />
1616
<link rel="apple-touch-icon" href="./images/brand/apple-touch-icon.png" />
17-
<link rel="manifest" href="./site.webmanifest"" />
17+
<link rel="manifest" href="./site.webmanifest" />
1818

1919
<!-- Security -->
2020
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data: https://corsproxy.io https://avatars.githubusercontent.com; connect-src 'self' https://api.github.com https://corsproxy.io https://raw.githubusercontent.com ws: wss:; style-src 'self' 'unsafe-inline';" />

website/style.css

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,7 @@ img {
11861186
.gallery-track { grid-template-columns: repeat(3, 1fr); }
11871187
.devices-grid { grid-template-columns: repeat(3, 1fr); }
11881188
.privacy-card { grid-template-columns: 1fr; }
1189-
.privacy-visual { display: none; }
1189+
.privacy-illustration { display: none; }
11901190
.footer-top { grid-template-columns: 1fr 1fr; }
11911191
}
11921192

@@ -1216,29 +1216,56 @@ img {
12161216
.hero { min-height: auto; padding: 6rem 1rem 3rem; }
12171217
.hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
12181218

1219-
.showcase-ring { width: 300px; height: 300px; }
1220-
.showcase-devices { gap: 0.5rem; margin-top: 2rem; }
1221-
.showcase-img { width: 110px; }
1222-
.showcase-left { transform: rotateY(4deg) scale(0.85); }
1223-
.showcase-right { transform: rotateY(-4deg) scale(0.85); }
1224-
.showcase-center { transform: scale(1); }
1219+
/* Simplified Mobile Hero Showcase */
1220+
.showcase-ring { width: 250px; height: 250px; }
1221+
.showcase-devices { gap: 0; margin-top: 2rem; justify-content: center; }
1222+
.showcase-left, .showcase-right { display: none; } /* Hide side watches on mobile to reduce clutter */
1223+
.showcase-center { transform: scale(1.3); margin-top: 1rem; width: 140px; } /* Focus on center watch */
1224+
1225+
/* Mobile-Native Horizontal Scrolling Carousels */
1226+
.features-grid, .gallery-track, .devices-grid {
1227+
display: flex;
1228+
flex-wrap: nowrap;
1229+
overflow-x: auto;
1230+
overflow-y: hidden;
1231+
scroll-snap-type: x mandatory;
1232+
scroll-behavior: smooth;
1233+
-webkit-overflow-scrolling: touch;
1234+
padding-bottom: 2rem;
1235+
margin: 0 -1rem; /* Pull out to screen edges */
1236+
padding: 1rem 1rem 2rem 1rem;
1237+
gap: 1rem;
1238+
}
1239+
1240+
/* Hide scrollbars for cleaner look */
1241+
.features-grid::-webkit-scrollbar,
1242+
.gallery-track::-webkit-scrollbar,
1243+
.devices-grid::-webkit-scrollbar {
1244+
display: none;
1245+
}
1246+
.features-grid { -ms-overflow-style: none; scrollbar-width: none; }
1247+
.gallery-track { -ms-overflow-style: none; scrollbar-width: none; }
1248+
.devices-grid { -ms-overflow-style: none; scrollbar-width: none; }
1249+
1250+
/* Size cards for mobile carousel */
1251+
.feature-card, .gallery-item, .device-family {
1252+
min-width: 85vw; /* Show peek of next card */
1253+
scroll-snap-align: center;
1254+
flex: 0 0 auto;
1255+
}
1256+
1257+
.gallery-item img { height: 180px; } /* Slightly smaller images on mobile gallery */
12251258

1226-
.features-grid { grid-template-columns: 1fr; }
1227-
.gallery-track { grid-template-columns: repeat(2, 1fr); }
1228-
.devices-grid { grid-template-columns: repeat(2, 1fr); }
12291259
.footer-top { grid-template-columns: 1fr; gap: 2rem; }
12301260

12311261
.hero-scroll-hint { display: none; } /* Hide on mobile to save space */
12321262
}
12331263

12341264
@media (max-width: 480px) {
1235-
.showcase-img { width: 85px; } /* Prevent horizontal scroll on small devices */
12361265
.hero-actions { flex-direction: column; width: 100%; gap: 1rem; }
12371266
.hero-actions .btn { width: 100%; justify-content: center; padding: 1rem; }
12381267
.cta-actions { flex-direction: column; width: 100%; gap: 1rem; }
12391268
.cta-actions .btn { width: 100%; justify-content: center; }
1240-
.gallery-track { grid-template-columns: 1fr; gap: 1.5rem; }
1241-
.devices-grid { grid-template-columns: 1fr; }
12421269
.privacy-card { padding: 2rem 1.5rem; }
12431270
}
12441271

0 commit comments

Comments
 (0)