UNPKG

@fewcha/web3-react

Version:

Check the documentation at https://docs.fewcha.app/

220 lines (197 loc) 4.76 kB
let _ = t => t, _t, _t2, _t3, _t4, _t5, _t6, _t7, _t8, _t9, _t10, _t11, _t12, _t13, _t14, _t15, _t16, _t17, _t18, _t19, _t20, _t21, _t22, _t23, _t24; import styled, { css } from "styled-components"; // popup background export const PopupBackground = styled.div(_t || (_t = _` overflow-y: auto; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; `)); export const PopupBackgroundScreen = styled.div(_t2 || (_t2 = _` display: flex; padding-left: 1rem; padding-right: 1rem; padding-top: 1rem; padding-bottom: 5rem; text-align: center; justify-content: center; align-items: center; min-height: 100vh; @media (min-width: 640px) { display: block; padding: 0; } `)); export const PopupBackgroundWrapper = styled.div(_t3 || (_t3 = _` position: fixed; top: 0; right: 0; bottom: 0; left: 0; transition-property: opacity; `)); export const PopupBackgroundBackground = styled.div(_t4 || (_t4 = _` background: rgba(255, 227, 227, 0.1) !important; backdrop-filter: blur(3px) !important; position: absolute; top: 0; right: 0; bottom: 0; left: 0; `)); // button export const ConnectWalletButton = styled.button(_t5 || (_t5 = _` display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 15px 30px; gap: 10px; background: #14161a; border-radius: 100px; flex: none; order: 0; flex-grow: 0; cursor: pointer; line-height: 120%; color: #ffffff; font-weight: bold; font-size: 18px; outline: 0; border: none; &:hover { background-color: #2a2c33; } transition: background-color 0.2s ease-in-out; `)); // popup export const Popup = styled.div(_t6 || (_t6 = _` font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; position: relative; display: inline-block; overflow: hidden; z-index: 50; padding-top: 1.5rem; padding-bottom: 1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; background-color: #ffffff; transition-property: all; text-align: left; vertical-align: bottom; width: 100%; border-radius: 0.5rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); @media (min-width: 640px) { margin-top: 2rem; margin-bottom: 2rem; vertical-align: middle; max-width: 480px; } background-color: #050507; border-radius: 40px; `)); export const PopupTitle = styled.h1(_t7 || (_t7 = _` font-style: normal; font-weight: 500; font-size: 32px; line-height: 120%; text-align: center; letter-spacing: 0.02em; color: #ffffff; max-width: 70%; margin: 36px auto 60px; `)); export const PopupClose = styled.div(_t8 || (_t8 = _` display: flex; background-color: #000000; justify-content: flex-end; cursor: pointer; `)); // wallet list export const WalletList = styled.div(_t9 || (_t9 = _` ${0} `), props => props.grid ? css(_t10 || (_t10 = _` display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; `)) : css(_t11 || (_t11 = _` flex-direction: column; `))); export const WalletItem = styled.div(_t12 || (_t12 = _` ${0} align-items: center; cursor: pointer; `), props => props.grid ? css(_t13 || (_t13 = _` flex-direction: column; display: flex; border-radius: 16px; border-width: 1px; background: #201e28; margin-bottom: 16px; `)) : css(_t14 || (_t14 = _` display: flex; border-radius: 16px; border-width: 1px; background: #201e28; margin-bottom: 16px; `))); export const WalletTitleWrapper = styled.div(_t15 || (_t15 = _` ${0} display: flex; padding: 24px 16px; `), props => props.grid ? css(_t16 || (_t16 = _` flex-direction: column; `)) : css(_t17 || (_t17 = _` flex-direction: row; `))); export const WalletIcon = styled.div(_t18 || (_t18 = _` display: flex; justify-content: center; align-items: center; ${0} `), props => props.grid ? css(_t19 || (_t19 = _` margin-bottom: 12px; `)) : css(_t20 || (_t20 = _` margin-right: 16px; `))); export const WalletTitle = styled.div(_t21 || (_t21 = _` color: #ffffff; font-style: normal; font-weight: 500; font-size: 28px; line-height: 120%; `)); export const WalletDetected = styled.div(_t22 || (_t22 = _` color: #3b82f6; font-size: 24px; ${0} `), props => props.grid ? css(_t23 || (_t23 = _` margin-bottom: 15px; `)) : css(_t24 || (_t24 = _` margin-left: auto; margin-right: 24px; `)));