Skip to content

Commit

Permalink
v3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxaleks authored Aug 17, 2023
2 parents ee3b083 + 0ffb61c commit 9bf9e98
Show file tree
Hide file tree
Showing 39 changed files with 2,095 additions and 544 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "zkbob-ui",
"version": "3.1.1",
"version": "3.2.0",
"private": true,
"dependencies": {
"@dicebear/avatars": "^4.10.2",
"@dicebear/avatars-bottts-sprites": "^4.10.2",
"@dicebear/avatars-identicon-sprites": "^4.10.2",
"@dicebear/pixel-art": "^4.10.2",
"@lifi/sdk": "^2.2.3",
"@lifi/widget": "^2.1.2",
"@sentry/react": "^7.16.0",
"@sentry/tracing": "^7.16.0",
Expand Down
16 changes: 8 additions & 8 deletions public/451.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>zkBob - Private Stable Transfers</title>
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." name="description" />
<meta content="zkBob - Private Stable Transfers" property="og:title" />
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." property="og:description" />
<meta content="https://uploads-ssl.webflow.com/62596d94c1f87b865a97e621/638f596b6076f3eee5148cb1_metatags.io_%20cover_1200%E2%95%A4%C3%A0628.jpg" property="og:image">
<meta content="zkBob - Private Stable Transfers" property="twitter:title">
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." property="twitter:description">
<meta content="https://uploads-ssl.webflow.com/62596d94c1f87b865a97e621/638f596b6076f3eee5148cb1_metatags.io_%20cover_1200%E2%95%A4%C3%A0628.jpg" property="twitter:image:src">
<title>zkBob - Your web3 wallet with privacy option for everyday use</title>
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" name="description" />
<meta content="zkBob - Your web3 wallet with privacy option for everyday use" property="og:title" />
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" property="og:description" />
<meta content="https://uploads-ssl.webflow.com/642ef9bf2b8c72448377e95d/64c3e8b24cce13f41f0d5c7e_metatags.io_%20cover_1200%D1%85628-1.jpg" property="og:image">
<meta content="zkBob - Your web3 wallet with privacy option for everyday use" property="twitter:title">
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" property="twitter:description">
<meta content="https://uploads-ssl.webflow.com/642ef9bf2b8c72448377e95d/64c3e8b24cce13f41f0d5c7e_metatags.io_%20cover_1200%D1%85628-1.jpg" property="twitter:image:src">
<meta property="og:type" content="website">
<meta content="summary_large_image" name="twitter:card">
<link href="%PUBLIC_URL%/logo32.png" rel="shortcut icon" type="image/x-icon">
Expand Down
16 changes: 8 additions & 8 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
<!-- End Google Tag Manager -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>zkBob - Private Stable Transfers</title>
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." name="description" />
<meta content="zkBob - Private Stable Transfers" property="og:title" />
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." property="og:description" />
<meta content="https://uploads-ssl.webflow.com/62596d94c1f87b865a97e621/638f596b6076f3eee5148cb1_metatags.io_%20cover_1200%E2%95%A4%C3%A0628.jpg" property="og:image">
<meta content="zkBob - Private Stable Transfers" property="twitter:title">
<meta content="zkBob enables secure and anonymous stablecoin transfers with a limited value between users." property="twitter:description">
<meta content="https://uploads-ssl.webflow.com/62596d94c1f87b865a97e621/638f596b6076f3eee5148cb1_metatags.io_%20cover_1200%E2%95%A4%C3%A0628.jpg" property="twitter:image:src">
<title>zkBob - Your web3 wallet with privacy option for everyday use</title>
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" name="description" />
<meta content="zkBob - Your web3 wallet with privacy option for everyday use" property="og:title" />
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" property="og:description" />
<meta content="https://uploads-ssl.webflow.com/642ef9bf2b8c72448377e95d/64c3e8b24cce13f41f0d5c7e_metatags.io_%20cover_1200%D1%85628-1.jpg" property="og:image">
<meta content="zkBob - Your web3 wallet with privacy option for everyday use" property="twitter:title">
<meta content="A Web3 crypto privacy wallet based on ZKP technology. zkBob could be used for regular transfers, payments, and much more. Compliance features backed in!" property="twitter:description">
<meta content="https://uploads-ssl.webflow.com/642ef9bf2b8c72448377e95d/64c3e8b24cce13f41f0d5c7e_metatags.io_%20cover_1200%D1%85628-1.jpg" property="twitter:image:src">
<meta property="og:type" content="website">
<meta content="summary_large_image" name="twitter:card">
<link href="%PUBLIC_URL%/logo32.png" rel="shortcut icon" type="image/x-icon">
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "zkBob",
"name": "zkBob - Private Stable Transfers",
"name": "zkBob - Your web3 wallet with privacy option for everyday use",
"icons": [
{
"src": "favicon.ico",
Expand Down
9 changes: 4 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { createGlobalStyle } from 'styled-components';

import ContextsProvider from 'contexts';

import ThemeProvider from 'providers/ThemeProvider';
import Web3Provider from 'providers/Web3Provider';

Expand Down Expand Up @@ -35,6 +33,9 @@ const GlobalStyle = createGlobalStyle`
src: url(${GilroyExtraBold}) format('woff');
font-weight: 800;
}
html {
-webkit-tap-highlight-color: transparent;
}
body {
margin: 0;
font-family: 'Gilroy';
Expand Down Expand Up @@ -65,9 +66,7 @@ export default () => (
<ThemeProvider>
<GlobalStyle />
<Web3Provider>
<ContextsProvider>
<Pages />
</ContextsProvider>
<Pages />
</Web3Provider>
</ThemeProvider>
);
12 changes: 9 additions & 3 deletions src/assets/polygon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions src/assets/try-zkbob-banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 93 additions & 31 deletions src/components/Dropdown/index.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,99 @@
import { useState } from 'react';
import styled, { createGlobalStyle } from 'styled-components';
import Tooltip from 'rc-tooltip';
import 'rc-tooltip/assets/bootstrap.css';

export default ({ children, content, disabled, width, placement, style = {}, ...props }) => {
const [isVisible, setIsVisible] = useState(false);
import { ReactComponent as CrossIconDefault } from 'assets/cross.svg';

const GlobalDropdownStyle = createGlobalStyle`
.rc-tooltip {
opacity: 1;
}
.dropdown-fullscreen {
@media only screen and (max-width: 560px) {
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
padding: 0 !important;
height: 100dvh !important;
.rc-tooltip-content {
height: 100% !important;
}
.rc-tooltip-inner {
width: 100% !important;
height: 100% !important;
border-radius: 0 !important;
overflow-y: scroll !important;
padding-top: 50px !important;
& > div {
min-height: 100% !important;
justify-content: center !important;
}
}
}
}
`;

const GlobalBodyFullscreenStyle = createGlobalStyle`
body {
overflow: hidden;
position: fixed;
width: 100%;
height: 100%;
}
`;

export default ({
children, content, disabled, width, placement,
style = {}, isOpen, open, close, fullscreen = true, ...props
}) => {
return (
<Tooltip
overlayClassName="dropdown"
placement={placement || "bottomRight"}
trigger={disabled ? [] : ['click']}
overlay={content}
showArrow={false}
onPopupAlign={() => {
setIsVisible(true);
}}
overlayInnerStyle={{
minHeight: 0,
padding: '26px 24px',
borderRadius: '16px',
backgroundColor: '#FFFFFF',
width: width || 370,
maxWidth: 'calc(100vw - 10px)',
boxSizing: 'border-box',
boxShadow: '4px 10px 20px rgba(0, 0, 0, 0.1)',
...style,
}}
overlayStyle={{
opacity: isVisible ? 1 : 0,
}}
destroyTooltipOnHide={{ keepParent: true }}
{...props}
>
{children}
</Tooltip>
<>
<GlobalDropdownStyle />
{fullscreen && isOpen && <GlobalBodyFullscreenStyle />}
<Tooltip
overlayClassName={fullscreen ? 'dropdown-fullscreen' : ''}
placement={placement || "bottomRight"}
trigger={disabled ? [] : ['click']}
overlay={() => (
<>
{fullscreen && <CrossIcon onClick={close} />}
{content()}
</>
)}
showArrow={false}
overlayInnerStyle={{
minHeight: 0,
padding: '26px 24px',
borderRadius: '16px',
backgroundColor: '#FFFFFF',
width: width || 370,
boxSizing: 'border-box',
boxShadow: '4px 10px 20px rgba(0, 0, 0, 0.1)',
...style,
}}
destroyTooltipOnHide={{ keepParent: true }}
visible={isOpen}
onVisibleChange={visible => visible ? open() : close()}
{...props}
>
{children}
</Tooltip>
</>
);
}

const CrossIcon = styled(CrossIconDefault)`
display: none;
position: absolute;
top: 11px;
right: 11px;
cursor: pointer;
padding: 10px;
@media only screen and (max-width: 560px) {
display: block;
}
`;
Loading

0 comments on commit 9bf9e98

Please sign in to comment.