From 040574227ad340b945a1829ce6079bd79cc4dc52 Mon Sep 17 00:00:00 2001 From: npcdazai Date: Tue, 3 Sep 2024 15:24:02 +0530 Subject: [PATCH] Hero Mobile --- src/components/Header.jsx | 38 +++--- src/components/ui/Mobile/HeroMobile.jsx | 26 ++-- src/components/ui/Mobile/TimrLinesMobile.jsx | 124 +++++++++++++++++++ src/pages/Home.jsx | 15 ++- vite.config.js | 5 +- 5 files changed, 177 insertions(+), 31 deletions(-) create mode 100644 src/components/ui/Mobile/TimrLinesMobile.jsx diff --git a/src/components/Header.jsx b/src/components/Header.jsx index d8b598f..2a9a181 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -21,7 +21,7 @@ const titles = [ "Excellent ane timely execution", "State-of-the art infrastructure", "Integrity and sincerity ", - "A large team of developers" + "A large team of developers", ]; const Header = () => { @@ -36,43 +36,53 @@ const Header = () => { }); return ( -
- +
+ - WDI - + WDI + {titles[currentIndex]} diff --git a/src/components/ui/Mobile/HeroMobile.jsx b/src/components/ui/Mobile/HeroMobile.jsx index d011f75..557d46f 100644 --- a/src/components/ui/Mobile/HeroMobile.jsx +++ b/src/components/ui/Mobile/HeroMobile.jsx @@ -12,11 +12,11 @@ const circlesData = [ const Hero = () => { return ( - + {/* Add margin for spacing */} @@ -28,13 +28,13 @@ const Hero = () => { w="100%" gap={{ base: "1rem", md: "2rem" }} // Adjust gap for mobile view alignItems="center" - textAlign={{ base: "center", md: "left" }} // Center text on mobile + textAlign={{ base: "center", md: "center" }} // Center text on mobile > Develop AI-Powered solutions with the leading mobile @@ -42,7 +42,7 @@ const Hero = () => { Develop AI-Powered solutions with the leading mobile solutions with @@ -52,9 +52,10 @@ const Hero = () => { {circlesData.map((circle, index) => ( { flexDirection="column" alignItems="center" mb={{ base: "1rem", md: "0" }} - w="158.06px" - h="158.06px" - mr={{ base: "0", md: `${index * 4}px` }} + w={{base:"93px", md:"100.06px"}} + h="100.06px" + ml={{ base: `${index * -4}px`, md: `${index * -3}px` }} > { h="158.06px" /> { left="50%" transform="translate(-50%, -50%)" > - + 200+ - + Happy Client diff --git a/src/components/ui/Mobile/TimrLinesMobile.jsx b/src/components/ui/Mobile/TimrLinesMobile.jsx new file mode 100644 index 0000000..a820753 --- /dev/null +++ b/src/components/ui/Mobile/TimrLinesMobile.jsx @@ -0,0 +1,124 @@ +import { + Box, + Circle, + Flex, + Image, + Text, + Tooltip, + VStack, + } from "@chakra-ui/react"; + import React from "react"; + import Tabs from "../Tabs"; + import LineBar from "../../../assets/pointerBar.png"; + import lineBar from "../../../assets/imgpsh_fullsize_anim.png"; + + const timelineData = [ + { date: "Oct 12, 2023", phase: "Phase 1", description: "Lorem ipsum" }, + { date: "Oct 12, 2024", phase: "Phase 2", description: "Lorem ipsum" }, + ]; + + const TimeLines = () => { + return ( +
+ + + + We Walk the Walk + + {/* */} + + + + {timelineData.map((item, index) => ( + + + + + + + + + {item.date} + + + {item.phase} + + + + + + + ))} + + + + +
+ ); + }; + + export default TimeLines; + \ No newline at end of file diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 0987ea4..ce8932a 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -13,6 +13,7 @@ import Footer from "../components/Footer"; import FooterCom from "../components/FooterCom"; import { useBreakpointValue } from "@chakra-ui/react"; import HeroMobile from "../components/ui/Mobile/HeroMobile"; +import TimeLinesMobile from "../components/ui/Mobile/TimrLinesMobile"; const Home = () => { const heroComponent = useBreakpointValue({ @@ -20,20 +21,26 @@ const Home = () => { lg: , }); + const timeLines = useBreakpointValue({ + base :, + lg : + }) + return ( <> {heroComponent} - + {timeLines} + {/* - - + */} + {/*