Compare commits

..

4 Commits

Author SHA1 Message Date
Matiss Jurevics
8af304ffb3 Merge pull request #3 from MatissJurevics/cursor/hero-title-mobile-size-6292
Hero title mobile size
2025-12-17 18:49:16 +00:00
Matiss Jurevics
cb6cea765a Merge pull request #2 from MatissJurevics/cursor/hero-section-polygon-reduction-d730
Hero section polygon reduction
2025-12-17 18:49:06 +00:00
Cursor Agent
ba7bbbd40e Add responsive styles for hero title on mobile
Co-authored-by: matissjurevics <matissjurevics@gmail.com>
2025-12-17 18:41:35 +00:00
Cursor Agent
b4621e1f79 Optimize terrain geometry for mobile
Co-authored-by: matissjurevics <matissjurevics@gmail.com>
2025-12-17 18:40:22 +00:00
2 changed files with 14 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ const Terrain = () => {
}, []);
// Create geometry with reduced segment count for mobile devices
const segments = isMobile ? 40 : 100; // Reduce from 100x100 to 40x40 on mobile (84% reduction)
const segments = isMobile ? 28 : 100; // Reduce from 100x100 to 28x28 on mobile (50% polygon reduction)
const geometry = useMemo(() => new THREE.PlaneGeometry(20, 20, segments, segments), [segments]);
useFrame((state) => {

View File

@@ -110,4 +110,17 @@ button:focus-visible {
button {
background-color: #f9f9f9;
}
}
/* Hero Title Mobile Responsive */
@media (max-width: 768px) {
.hero-title {
font-size: 3rem !important;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 2rem !important;
}
}