Skip to content

Commit

Permalink
adding Provisions pop-up
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed Feb 15, 2024
1 parent 53aa35a commit bd5a55c
Show file tree
Hide file tree
Showing 5 changed files with 427 additions and 124 deletions.
87 changes: 87 additions & 0 deletions public/assets/provisions_pop-up_background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
262 changes: 138 additions & 124 deletions workspaces/website/src/blocks/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,144 +9,158 @@ type Props = {
};
};
import { Intro } from "./Intro";
import PopUp from "@ui/PopUp/PopUp";
import { useState } from "react";

export const HomepageHero = ({ seo }: Props) => {
const [isOpen, setIsOpen] = useState<boolean>(true);
const toggleModal = () => {
setIsOpen((prevState) => !prevState);
};
return (
<Box
as="section"
pt="46px"
pb="93px"
overflow="hidden"
bg="#eaeaea"
minHeight="729px"
_dark={{
bgGradient:
"linear(0.39deg, #3F1838 -0.96%, #110751 44.39%, #171B31 100.23%)",
}}
bgGradient="linear(0.59deg, #FBECF3 0.97%, #F3EBF7 26.24%, #F0F0FB 54.59%, #E6F0FF 99.96%)"
borderRadius="24px"
position="relative"
mt="-24px"
>
<>
<PopUp toggleModal={toggleModal} isOpen={isOpen} />
<Box
inset={0}
position="absolute"
opacity="0.6"
mixBlendMode="overlay"
as="section"
pt="46px"
pb="93px"
overflow="hidden"
bg="#eaeaea"
minHeight="729px"
_dark={{
opacity: 0.3,
bgGradient:
"linear(0.39deg, #3F1838 -0.96%, #110751 44.39%, #171B31 100.23%)",
}}
bgGradient="linear(0.59deg, #FBECF3 0.97%, #F3EBF7 26.24%, #F0F0FB 54.59%, #E6F0FF 99.96%)"
borderRadius="24px"
position="relative"
mt="-24px"
>
<Img
zIndex={0}
pos="relative"
w="full"
h="full"
src="/assets/home/Pattern.png"
alt="Screenshot for Form builder"
objectFit={{ base: "cover", lg: "cover" }}
/>
</Box>
<Box
zIndex={2}
inset={0}
position="absolute"
mixBlendMode="color-dodge"
_dark={{
mixBlendMode: "soft-light",
opacity: 0.4,
}}
>
<Img
pos="relative"
w="full"
h="full"
src="/assets/home/curves.svg"
alt="curves"
objectFit={{ base: "cover", lg: "cover" }}
/>
</Box>
<Box
inset={0}
position="absolute"
opacity="0.6"
mixBlendMode="overlay"
_dark={{
opacity: 0.3,
}}
>
<Img
zIndex={0}
pos="relative"
w="full"
h="full"
src="/assets/home/Pattern.png"
alt="Screenshot for Form builder"
objectFit={{ base: "cover", lg: "cover" }}
/>
</Box>
<Box
zIndex={2}
inset={0}
position="absolute"
mixBlendMode="color-dodge"
_dark={{
mixBlendMode: "soft-light",
opacity: 0.4,
}}
>
<Img
pos="relative"
w="full"
h="full"
src="/assets/home/curves.svg"
alt="curves"
objectFit={{ base: "cover", lg: "cover" }}
/>
</Box>

<Box
zIndex={2}
maxW={{ base: "xl", md: "7xl" }}
mx="auto"
px={{ base: "6", md: "48px", lg: "40px", xl: "56px" }}
>
<Flex
align="flex-end"
direction={{ base: "column", lg: "row" }}
justify="space-between"
// paddingBottom="33px"
// mb="56px"
<Box
zIndex={2}
maxW={{ base: "xl", md: "7xl" }}
mx="auto"
px={{ base: "6", md: "48px", lg: "40px", xl: "56px" }}
>
<Box
top={{ lg: "-64px" }}
position="relative"
flex="1"
maxW={{ lg: "xl" }}
pt="0"
order={{ base: 1, lg: 0 }}
<Flex
align="flex-end"
direction={{ base: "column", lg: "row" }}
justify="space-between"
// paddingBottom="33px"
// mb="56px"
>
<Intro />

<Heading
variant="h1"
fontWeight="bold"
color="heading-navy-fg"
mt={{ base: "0", lg: "-20px" }}
fontSize={{ base: "56px", md: "80px", xl: "92px" }}
<Box
top={{ lg: "-64px" }}
position="relative"
flex="1"
maxW={{ lg: "xl" }}
pt="0"
order={{ base: 1, lg: 0 }}
>
Starknet
</Heading>
<Text
color="hero-subtitle-fg"
mt="5"
fontSize="20px"
fontWeight="500"
>
{seo.heroText}
</Text>
<Intro />

<Stack
direction={{ base: "column", md: "row" }}
spacing="4"
mt="72px"
position={{ base: "relative", md: "relative" }}
zIndex={4}
>
<Button
href="/en/developers"
size="lg"
minW="210px"
variant="primaryHero"
<Heading
variant="h1"
fontWeight="bold"
color="heading-navy-fg"
mt={{ base: "0", lg: "-20px" }}
fontSize={{ base: "56px", md: "80px", xl: "92px" }}
>
Build on Starknet
</Button>
<Button
size="lg"
variant="secondaryHero"
href="/en/explore-starknet"
Starknet
</Heading>
<Text
color="hero-subtitle-fg"
mt="5"
fontSize="20px"
fontWeight="500"
>
Explore Starknet
</Button>
</Stack>
</Box>
<Box
zIndex={0}
order={{ base: 0, lg: 1 }}
// boxSize={{ base: "20", lg: "8" }}
/>
<Img
position="relative"
marginRight={{ sm: "-70px", md: "-10px", lg: "-5rem", xl: "-9rem" }}
right={{ base: "-2rem", md: "-3rem", lg: "auto" }}
width={{ base: "100%", lg: "35rem" }}
src="/assets/home/hero_illustration.png"
alt="Screenshot for Form builder"
/>
</Flex>
{seo.heroText}
</Text>

<Stack
direction={{ base: "column", md: "row" }}
spacing="4"
mt="72px"
position={{ base: "relative", md: "relative" }}
zIndex={4}
>
<Button
href="/en/developers"
size="lg"
minW="210px"
variant="primaryHero"
>
Build on Starknet
</Button>
<Button
size="lg"
variant="secondaryHero"
href="/en/explore-starknet"
>
Explore Starknet
</Button>
</Stack>
</Box>
<Box
zIndex={0}
order={{ base: 0, lg: 1 }}
// boxSize={{ base: "20", lg: "8" }}
/>
<Img
position="relative"
marginRight={{
sm: "-70px",
md: "-10px",
lg: "-5rem",
xl: "-9rem",
}}
right={{ base: "-2rem", md: "-3rem", lg: "auto" }}
width={{ base: "100%", lg: "35rem" }}
src="/assets/home/hero_illustration.png"
alt="Screenshot for Form builder"
/>
</Flex>
</Box>
</Box>
</Box>
</>
);
};
50 changes: 50 additions & 0 deletions workspaces/website/src/components/PopUp/PopUp-Text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bd5a55c

Please sign in to comment.