From 5da42414cffb7bd71ae69e2a0ba12570301efe79 Mon Sep 17 00:00:00 2001 From: npcdazai Date: Tue, 3 Sep 2024 12:01:42 +0530 Subject: [PATCH] NAN --- src/components/Banner.jsx | 2 +- src/components/Companys.jsx | 2 +- src/components/Form.jsx | 55 +++++++------------------------------ src/components/Header.jsx | 3 +- src/components/Hero.jsx | 29 +++++++++---------- src/pages/Home.jsx | 4 +-- 6 files changed, 31 insertions(+), 64 deletions(-) diff --git a/src/components/Banner.jsx b/src/components/Banner.jsx index d6a8923..100341e 100644 --- a/src/components/Banner.jsx +++ b/src/components/Banner.jsx @@ -1,4 +1,4 @@ -import { Box, Heading, Image, Text } from "@chakra-ui/react"; +import { Box, Image, Text } from "@chakra-ui/react"; import banner from "../assets/handvector.png"; import text from "../assets/text.png"; import Button from "../components/ui/Button" diff --git a/src/components/Companys.jsx b/src/components/Companys.jsx index d44065a..2abc6f4 100644 --- a/src/components/Companys.jsx +++ b/src/components/Companys.jsx @@ -33,7 +33,7 @@ function App() { const getBoxHeight = (box) => (selectedBox === box ? "452px" : "412px"); return ( - + {selectedBox && ( { console.log(data); }; - // const handleSliderChange = (value) => { - // setSliderValue(value); - // }; + const handleClick = () => { document.getElementById("fileInput").click(); }; @@ -91,7 +89,9 @@ const Form = () => { Lets Collaborate to Shape Your Vision into Reality -
+ { )} - {/* - Attach file - - file && - ["image/png", "image/jpeg", "application/pdf"].includes( - file.type - ) && - file.size <= 5 * 1024 * 1024 - ? true - : "Invalid file type or size. Only PNG, JPEG, and PDF files under 5MB are allowed.", - })} - onChange={handleChange} - display="none" - /> - - {errors.fileInput && ( - - {errors.fileInput.message} - - )} - */} + Attach file { }} colorScheme="pink" > - + - + + {errors.budget && ( @@ -361,7 +325,7 @@ const Form = () => { w="8.34px" h="8.34px" px="0" - marginTop="-3rem" + marginTop="-2.8rem" position="relative" mb={"3rem"} bg={sliderValue >= val ? "#E5195E" : "gray.600"} @@ -412,6 +376,7 @@ const Form = () => { h="55px" borderRadius="0px" type="submit" + onClick={handleSubmit(onSubmit)} > Submit diff --git a/src/components/Header.jsx b/src/components/Header.jsx index d1682f1..d8b598f 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -37,7 +37,7 @@ const Header = () => { return (
- + { borderRadius="0px" textColor="white" className="pinkcolor" + display={{base:"none", md:"block"}} > Contact Us diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index bead2f6..e1e29a6 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -1,12 +1,4 @@ -import { - Box, - Flex, - Heading, - HStack, - Image, - Text, - VStack, -} from "@chakra-ui/react"; +import { Box, Flex, Heading, HStack, Image, Text } from "@chakra-ui/react"; import banner from "../assets/images/banner.png"; import whiteCircle from "../assets/white.png"; import pinkCircle from "../assets/pink.png"; @@ -20,8 +12,7 @@ const circlesData = [ const Hero = () => { return ( -
- + { lineHeight="40.88px" fontWeight={600} fontSize="40px" + flexDirection={{base:"column" , lg:"row"}} > Develop AI-Powered solutions with the leading mobile @@ -47,7 +39,13 @@ const Hero = () => { Develop AI-Powered solutions with the leading mobile solutions with the leading mobile - + {circlesData.map((circle, index) => ( { alignItems="center" w={"158.06px"} h="158.06px" - right={`${index * 8}px`} + right={{ + base: `${index * 4}px`, + md: `${index * 8}px`, + lg: `${index * 12}px`, + }} > { -
); }; diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index a9091e2..faf0969 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -12,7 +12,7 @@ import Footer from "../components/Footer" import FooterCom from "../components/FooterCom"; const Home = () => { return ( -
+ <> @@ -25,7 +25,7 @@ const Home = () => {
+ ); };