-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added trasnaction confirmation logic and loader/spinner on the UI side.
Closes #59
- Loading branch information
Showing
7 changed files
with
219 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<script lang="ts"> | ||
export let message = ""; | ||
</script> | ||
|
||
<container> | ||
<loader /> | ||
<i>{message}</i> | ||
</container> | ||
|
||
<style> | ||
container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 5px; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
} | ||
loader { | ||
width: 48px; | ||
height: 48px; | ||
border-radius: 50%; | ||
display: inline-block; | ||
position: relative; | ||
border: 3px solid; | ||
border-color: transparent #64b3f4 transparent #c2e59c; | ||
box-sizing: border-box; | ||
animation: rotation 1s linear infinite; | ||
} | ||
loader::after, | ||
loader::before { | ||
content: ''; | ||
box-sizing: border-box; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
margin: auto; | ||
border: 3px solid; | ||
border-color: #64b3f4 transparent transparent transparent; | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 50%; | ||
box-sizing: border-box; | ||
animation: rotationBack 0.5s linear infinite; | ||
transform-origin: center center; | ||
} | ||
loader::before { | ||
width: 32px; | ||
height: 32px; | ||
border-color: #FFF #FFF transparent transparent; | ||
animation: rotation 1.5s linear infinite; | ||
} | ||
@keyframes rotation { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes rotationBack { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(-360deg); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.