diff --git a/src/components/pages/Home/Home.tsx b/src/components/pages/Home/Home.tsx index 33a30d6cd..f6624338e 100644 --- a/src/components/pages/Home/Home.tsx +++ b/src/components/pages/Home/Home.tsx @@ -1,6 +1,6 @@ import React, { useMemo } from "react"; import { Input, InputGroup, InputLeftElement } from "@chakra-ui/input"; -import { Heading, Text, Link, SimpleGrid } from "@chakra-ui/react"; +import { Box, Heading, Text, Link, SimpleGrid } from "@chakra-ui/react"; import { Column, Row } from "buttered-chakra"; import { useIsSmallScreen } from "hooks/useIsSmallScreen"; import NewHeader from "components/shared/Header2/NewHeader"; @@ -85,12 +85,25 @@ const Home = React.memo(() => { animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -40 }} > - + } + height="100%" + children={} + ml={1} + /> + + - @@ -179,14 +192,13 @@ const Home = React.memo(() => { @@ -204,7 +216,7 @@ const Home = React.memo(() => { crossAxisAlignment="flex-start" captionFirst={false} /> - + Discover infinite possibilities across the Rari Capital Ecosystem @@ -213,15 +225,15 @@ const Home = React.memo(() => { mainAxisAlignment="center" crossAxisAlignment="center" height="100%" - // flex="1 1" - flex={{ - base: "1 1 75%", - sm: "1 1 75%", - md: "1 1 70%", - lg: "1 1 60%", + flex="1 1" + flexBasis={{ + base: "75%", + sm: "75%", + md: "70%", + lg: "60%", }} width="1px" // weird hack to make the carousel fit. idk why it works - py={5} + py={{ base: 0, sm: 0, md: 0, lg: 5 }} > diff --git a/src/components/pages/Home/HomeCarousel.tsx b/src/components/pages/Home/HomeCarousel.tsx index 1dfdf7701..a89594844 100644 --- a/src/components/pages/Home/HomeCarousel.tsx +++ b/src/components/pages/Home/HomeCarousel.tsx @@ -4,16 +4,8 @@ import "react-responsive-carousel/lib/styles/carousel.min.css"; // requires a lo import { Carousel } from "react-responsive-carousel"; import { Column } from "buttered-chakra"; import { useIsSmallScreen } from "hooks/useIsSmallScreen"; -import { FusePoolData } from "utils/fetchFusePoolData"; -import { - useFuseDataForAsset, - useFuseDataForAssets, -} from "hooks/fuse/useFuseDataForAsset"; -import { - shortUsdFormatter, - smallStringUsdFormatter, - smallUsdFormatter, -} from "utils/bigUtils"; +import { useFuseDataForAssets } from "hooks/fuse/useFuseDataForAsset"; +import { smallStringUsdFormatter, smallUsdFormatter } from "utils/bigUtils"; const ASSETS = ["DAI", "ETH", "RGT"]; @@ -42,14 +34,14 @@ const HomeCarousel = () => { > {pools.map((pool, i) => { return ( - + The Rari Capital Ecosystem currently has{" "} {" "} diff --git a/src/components/pages/Home/HomeVaultCard.tsx b/src/components/pages/Home/HomeVaultCard.tsx index b5539ed71..c13c94aea 100644 --- a/src/components/pages/Home/HomeVaultCard.tsx +++ b/src/components/pages/Home/HomeVaultCard.tsx @@ -31,7 +31,7 @@ const HomeVaultCard = ({ _hover={{ opacity: 1, transform: "translateY(-10px)", - boxShadow: ".5px 1px 4px grey;", + boxShadow: ".5px 1px 2px grey;", }} bg={opportunity.bgColor} > diff --git a/src/components/pages/Home/OpportunityCard.tsx b/src/components/pages/Home/OpportunityCard.tsx index 9fdb60375..cb2d2dc10 100644 --- a/src/components/pages/Home/OpportunityCard.tsx +++ b/src/components/pages/Home/OpportunityCard.tsx @@ -48,9 +48,9 @@ const OpportunityCard = ({ height={"100%"} flex="0 0 70%" > - {opportunity.title} + {opportunity.title} - {`${subheading}`} + {`${subheading}`} {opportunity.subtitle} diff --git a/src/components/shared/Header2/HeaderSearchbar.tsx b/src/components/shared/Header2/HeaderSearchbar.tsx index 01883f9ba..73974bed1 100644 --- a/src/components/shared/Header2/HeaderSearchbar.tsx +++ b/src/components/shared/Header2/HeaderSearchbar.tsx @@ -15,8 +15,9 @@ const HeaderSearchbar = (props: any) => { setVal(value)} + placeholder="Search by token, pool or product..." + _placeholder={{ color: "grey.500", fontWeight: "bold" }} /> diff --git a/src/index.css b/src/index.css index 196fba695..56623801a 100644 --- a/src/index.css +++ b/src/index.css @@ -168,14 +168,15 @@ img:not([src]) { .carousel-root { width: 100%; - padding: 20px; + height: 100%; + /* padding: 20px; */ /* background-color: pink; */ } .carousel-slider { width: 100%; height: 100%; - padding: 20px; + /* padding: 20px; */ } .slider-wrapper { @@ -186,7 +187,7 @@ img:not([src]) { } .dot { - background-color: green; + /* background-color: green; */ } /* Chakra UI sm breakpoint */