Skip to content

Commit e983c3c

Browse files
committed
add notification popovers, fix text margin
1 parent 1f76318 commit e983c3c

File tree

3 files changed

+62
-39
lines changed

3 files changed

+62
-39
lines changed

src/components/Simulator/screens/ConnectWeb3/Browser.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { BsTriangle } from "react-icons/bs"
1212
import { PiMagnifyingGlass } from "react-icons/pi"
1313
import { IoEllipsisHorizontalSharp } from "react-icons/io5"
1414
import { NFTSupportIcon } from "../../../icons/wallets/NFTSupportIcon"
15+
import { NotificationPopover } from "../../NotificationPopover"
1516

1617
interface IProps extends FlexProps {
1718
progressStepper: () => void
@@ -20,9 +21,16 @@ export const Browser: React.FC<IProps> = ({ progressStepper, ...props }) => {
2021
return (
2122
<Flex direction="column" h="full" bg="body.light" {...props}>
2223
<Box bg="background.highlight" w="full" px={3} pt={9} pb={3}>
23-
<Box bg="background.base" w="full" borderRadius="base" px={3} py={2}>
24-
<Text color="disabled">Search or enter address</Text>
25-
</Box>
24+
<NotificationPopover
25+
title="Example walkthrough"
26+
content="Try logging into a real app with your wallet when finished here"
27+
>
28+
<Box bg="background.base" w="full" borderRadius="base" px={3} py={2}>
29+
<Text color="disabled" cursor="default">
30+
Search or enter address
31+
</Text>
32+
</Box>
33+
</NotificationPopover>
2634
</Box>
2735
<Box p={8} flex={1}>
2836
<Button

src/components/Simulator/screens/ConnectWeb3/Slider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const Slider: React.FC<IProps> = ({
7373
</Flex>
7474
) : (
7575
<>
76-
<Text textAlign="center" fontWeight="bold" fontSize="lg">
76+
<Text textAlign="center" fontWeight="bold" fontSize="lg" mb={4}>
7777
Connect account?
7878
</Text>
7979
{/* URL Pill */}

src/components/Simulator/screens/ConnectWeb3/index.tsx

Lines changed: 50 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import GatsbyImage from "../../../GatsbyImage"
1919
import { FALLBACK_ETH_PRICE, USD_RECEIVE_AMOUNT } from "../../constants"
2020
import { EXAMPLE_APP_URL } from "./constants"
2121
import { Browser } from "./Browser"
22+
import { NotificationPopover } from "../../NotificationPopover"
2223

2324
export const ConnectWeb3: React.FC<PhoneScreenProps> = ({ nav, ctaLabel }) => {
2425
const { progressStepper, step } = nav
@@ -108,45 +109,59 @@ export const ConnectWeb3: React.FC<PhoneScreenProps> = ({ nav, ctaLabel }) => {
108109
</Text>
109110
<Flex gap={2} mb={6}>
110111
<GatsbyImage image={NFTs[0].image} alt="NFT Image" />
111-
<Flex
112-
direction="column"
113-
fontSize={{ base: "xs", sm: "sm" }}
114-
textAlign="start"
115-
alignItems="start"
116-
gap={1}
112+
<NotificationPopover
113+
title="Example walkthrough"
114+
content="These are some things you could do as the owner of your NFTs"
115+
placement="top"
117116
>
118-
<Text fontWeight="bold" fontSize="md" mb="auto" ms={2}>
119-
Cool art
120-
</Text>
121-
<Button
122-
variant="link"
123-
isDisabled
124-
leftIcon={<Icon as={RiAuctionLine} fontSize="xs" />}
117+
<Flex
118+
direction="column"
119+
fontSize={{ base: "xs", sm: "sm" }}
120+
textAlign="start"
121+
alignItems="start"
122+
gap={1}
125123
>
126-
Set a price
124+
<Text fontWeight="bold" fontSize="md" mb="auto" ms={2}>
125+
Cool art
126+
</Text>
127+
<Button
128+
variant="link"
129+
isDisabled
130+
leftIcon={<Icon as={RiAuctionLine} fontSize="xs" />}
131+
>
132+
Set a price
133+
</Button>
134+
<Button
135+
variant="link"
136+
isDisabled
137+
leftIcon={<Icon as={RiPriceTag2Line} fontSize="xs" />}
138+
>
139+
Auction item
140+
</Button>
141+
<Button
142+
variant="link"
143+
isDisabled
144+
leftIcon={<Icon as={RiFileTransferLine} fontSize="xs" />}
145+
>
146+
Transfer item
147+
</Button>
148+
</Flex>
149+
</NotificationPopover>
150+
</Flex>
151+
<NotificationPopover
152+
title="Example walkthrough"
153+
content="Try out a real Ethereum application when finished here"
154+
placement="top"
155+
>
156+
<Box fontSize={{ base: "sm", md: "md" }}>
157+
<Button variant="link" isDisabled display="block">
158+
Browse other artwork
127159
</Button>
128-
<Button
129-
variant="link"
130-
isDisabled
131-
leftIcon={<Icon as={RiPriceTag2Line} fontSize="xs" />}
132-
>
133-
Auction item
160+
<Button variant="link" isDisabled>
161+
Mint new NFT
134162
</Button>
135-
<Button
136-
variant="link"
137-
isDisabled
138-
leftIcon={<Icon as={RiFileTransferLine} fontSize="xs" />}
139-
>
140-
Transfer item
141-
</Button>
142-
</Flex>
143-
</Flex>
144-
<Button variant="link" isDisabled>
145-
Browse other artwork
146-
</Button>
147-
<Button variant="link" isDisabled>
148-
Mint new NFT
149-
</Button>
163+
</Box>
164+
</NotificationPopover>
150165
</Box>
151166
</Web3App>
152167
</motion.div>

0 commit comments

Comments
 (0)