From a035500c343f61908a84c5b01e07b4446a04f2ee Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 19 Sep 2025 00:27:35 +0200 Subject: [PATCH] style: adjust spacing and responsive layout for stack section and cubes --- src/components/StackSection.tsx | 4 ++-- src/components/ui/StackedCubes.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/StackSection.tsx b/src/components/StackSection.tsx index fea4567..d2f7c37 100644 --- a/src/components/StackSection.tsx +++ b/src/components/StackSection.tsx @@ -7,7 +7,7 @@ import { FadeIn } from "./FadeIn"; export function StackSectionPreview() { return ( -
+
{/* Left Column - Text (1/3 width) */} @@ -25,7 +25,7 @@ export function StackSectionPreview() {
{/* Right Column - Stacked Cubes (2/3 width) */} -
+
diff --git a/src/components/ui/StackedCubes.tsx b/src/components/ui/StackedCubes.tsx index cb33333..0753bbc 100644 --- a/src/components/ui/StackedCubes.tsx +++ b/src/components/ui/StackedCubes.tsx @@ -33,7 +33,7 @@ const stackData = [ export function StackedCubes() { const [active, setActive] = useState("agent"); - const [selectedForMobile, setSelectedForMobile] = useState(null); + const [selectedForMobile, setSelectedForMobile] = useState("agent"); const handleCubeClick = (id: string) => { setSelectedForMobile(prev => (prev === id ? null : id)); @@ -44,11 +44,11 @@ export function StackedCubes() { return (
setActive("agent")} >
{selectedMobileLayer && ( -
+

{selectedMobileLayer.descriptionTitle}