on master help sign in
ui: show animation on Transfer view

The sigil now has a breathing green aura on success

commit1541f1c1a829c607ee17b2fea2785cd2a4c68a62 authortomholford <tomholford@users.noreply.github.com> dateThu 7 Oct 2021, 01:50 (5 years ago) parentd2d22cf
3 files changed+38−16
src/style/index.scss+2−1 src/style/pulsating-circle-bg.scss+18 src/views/Activate/PointPresenter.tsx+18−15
src/style/index.scss+2−1
@@ -13,5 +13,6 @@
1313/* Bridge Styles */
1414@import './bridge.scss';
1515
16−/* Fade animations */
16+/* Animations */
1717@import './fadeable.scss';
18+@import './pulsating-circle-bg.scss';
src/style/pulsating-circle-bg.scssnew file+18
@@ -0,0 +1,18 @@
1+@keyframes pulsating-circular-bg {
2+ 0% {
3+ box-shadow: 0 0 3.3em 0.2em #00DD66;
4+ }
5+ 50% {
6+ box-shadow: 0 0 3.3em 2em #00DD66;
7+ }
8+ 100% {
9+ box-shadow: 0 0 3.3em 0.2em #00DD66;
10+ }
11+}
12+
13+div.pulsating-background {
14+ &.enter {
15+ border-radius: 50%;
16+ animation: pulsating-circular-bg 6000ms ease-in-out infinite;
17+ }
18+}
src/views/Activate/PointPresenter.tsx+18−15
@@ -1,4 +1,5 @@
11import { Box, Text } from '@tlon/indigo-react';
2+import cn from 'classnames';
23import Sigil from 'components/Sigil';
34import withFadeable from './withFadeable';
45
@@ -25,23 +26,25 @@ const PointPresenter = ({
2526 justifyContent="center"
2627 alignItems="center"
2728 background="white"
28− className={className}>
29− <Box
30− background={success ? '#009F65' : 'black'}
31− borderRadius={5}
32− padding={24}
33− mb={3}
34− width={64}
35− height={64}>
36− <Sigil
37− patp={patp}
38− colors={[success ? '#009F65' : 'black', 'white']}
39− size={64}
40− display="block"
41− padding={32}
29+ className={cn(['point-presenter', className])}>
30+ <Box className={cn(['pulsating-background', success && 'enter'])} mb={3}>
31+ <Box
32+ background={success ? '#009F65' : 'black'}
4233 borderRadius={5}
43− />
34+ padding={24}
35+ width={64}
36+ height={64}>
37+ <Sigil
38+ patp={patp}
39+ colors={[success ? '#009F65' : 'black', 'white']}
40+ size={64}
41+ display="block"
42+ padding={32}
43+ borderRadius={5}
44+ />
45+ </Box>
4446 </Box>
47+
4548 {showLabel && (
4649 <Box>
4750 <Text