Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provisions HP Popup fixes #2554

Merged
merged 2 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Box, Button, Image, Icon, Link, Fade } from "@chakra-ui/react";
import { Box, Image, Icon, Fade, IconButton } from "@chakra-ui/react";
import Background from "./popup-background.png";
import Logo from "./popup-text.svg";
import { useState } from "react";
import CloseIcon from "./CloseIcon/CloseIcon";
import ArrowRight from "./ArrowRight/ArrowRight";
import { Button } from "@ui/Button";

const ProvisionsPopup = () => {
const [isOpen, setIsOpen] = useState<boolean>(true);
Expand Down Expand Up @@ -37,9 +38,12 @@ const ProvisionsPopup = () => {
bgColor="white"
w={["calc(100% - 2px * 2)", "calc(100% - 2px * 2)", 332, 332]}
h={["calc(100% - 2px * 2 )", "calc(100% - 2px * 2 )", 354, 354]}
borderRadius="6px"
borderRadius="8px"
>
<Icon
<IconButton
aria-label="Close"
bgColor="transparent"
border="0"
position="absolute"
right="10px"
top="10px"
Expand All @@ -51,7 +55,7 @@ const ProvisionsPopup = () => {
}}
>
<CloseIcon />
</Icon>
</IconButton>
<Image
src={Background}
alt=""
Expand All @@ -72,36 +76,34 @@ const ProvisionsPopup = () => {
}}
borderRadius="6px"
/>
<Link href="https://www.starknet.io/en/content/starknet-provisions-program">
<Button
bgColor="white"
position="absolute"
bottom="40px"
left="50%"
transform="translateX(-50%)"
borderRadius="8px"
mr="px"
width="288px"
height="48px"
color="black"
cursor="pointer"
<Button
variant="solid"
bgColor="white"
position="absolute"
bottom="40px"
left="50%"
transform="translateX(-50%)"
borderRadius="8px"
mr="px"
width="288px"
height="48px"
color="black"
cursor="pointer"
href="https://www.starknet.io/en/content/starknet-provisions-program"
_hover={{ color: "#8FBCFF"}}
onClick={gtmEventClickReadMore}
>
Read more
<Icon
mt="1px"
ml="4px"
_hover={{
color: "#8FBCFF",
}}
onClick={gtmEventClickReadMore}
>
Read more
<Icon
mt="1px"
ml="4px"
_hover={{
color: "#8FBCFF",
}}
>
<ArrowRight />
</Icon>
</Button>
</Link>
<ArrowRight />
</Icon>
</Button>
</Box>
</Box>
</Fade>
Expand Down
Loading