From 11fd93f1966b550efbb1e0abfd70186e4914d9c7 Mon Sep 17 00:00:00 2001 From: codebox283 Date: Fri, 4 Jul 2025 14:59:10 +0530 Subject: [PATCH] Initial commit for ant website --- src/components/about/StorySec.tsx | 173 +++++++++++++++++------------- 1 file changed, 96 insertions(+), 77 deletions(-) diff --git a/src/components/about/StorySec.tsx b/src/components/about/StorySec.tsx index 9e25fa9..41d2cc4 100644 --- a/src/components/about/StorySec.tsx +++ b/src/components/about/StorySec.tsx @@ -4,88 +4,107 @@ import { StoryTwo } from "./Story2"; import { StoryThree } from "./Story3"; export function StorySec() { - const [style, setStyle] = useState("1"); + const [activeStory, setActiveStory] = useState("1"); - const handleAddInvite = useCallback( - (v: any) => { - console.log(v); - setStyle(v); + const handleStoryChange = useCallback((storyId: string) => { + setActiveStory(storyId); + }, []); + + const stories = [ + { + id: "1", + title: "Brand Story", + subtitle: "What is ANTL?", + component: }, - [style] - ); + { + id: "2", + title: "Operations", + subtitle: "Fractal structure", + component: + }, + { + id: "3", + title: "Organization", + subtitle: "Excellence in structure", + component: + } + ]; + return ( - <> -
-
-
- + ))} +
+ + {/* Story Content */} +
+ {/* Background decoration */} +
+
+ + {/* Content with smooth transitions */} +
+ {stories.map((story) => ( +
-

- Detailing our brand story -

-

But what is ANTL?

- - - -
-
-
- {style === "1" ? ( - - ) : style === "2" ? ( - - ) : ( - - )} + {story.component} +
+ ))}
- - + + {/* Progress indicator */} +
+ {stories.map((story) => ( +
+ ))} +
+
); -} +} \ No newline at end of file