@coin-voyage/paykit
Version:
Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.
87 lines (81 loc) • 1.84 kB
JavaScript
import { motion } from "framer-motion";
import styled from "../../../styles/styled";
import { ModalContent } from "../../ui/Modal/styles";
export const Content = styled(motion.div) `
display: flex;
flex-direction: column;
gap: 6px;
position: relative;
left: 0;
right: 0;
${ModalContent} {
padding: 0 8px 32px;
gap: 12px;
}
`;
export const Container = styled(motion.div) `
/*
background: var(
--ck-body-background
); // To stop the overlay issue during transition for the squircle spinner
*/
`;
export const ConnectingContainer = styled(motion.div) `
display: flex;
align-items: center;
justify-content: center;
margin: 10px auto 16px;
height: 120px;
//transform: scale(1.001); // fixes shifting issue between states
`;
export const RetryButton = styled(motion.button) `
z-index: 5;
appearance: none;
position: absolute;
right: 2px;
bottom: 2px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 16px;
cursor: pointer;
overflow: hidden;
background: none;
color: var(--ck-body-background);
transition: color 200ms ease;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
&:before {
z-index: 3;
content: "";
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 200ms ease;
background: var(--ck-body-color);
}
&:hover:before {
opacity: 0.1;
}
`;
export const RetryIconContainer = styled(motion.div) `
position: absolute;
inset: 0;
&:before {
z-index: 1;
content: "";
position: absolute;
inset: 3px;
border-radius: 16px;
background: conic-gradient(from 90deg, currentColor 10%, var(--ck-body-color) 80%);
}
svg {
z-index: 2;
display: block;
position: relative;
width: 100%;
height: 100%;
}
`;