Skip to content

Commit

Permalink
added README for redirect-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lwin-kyaw committed Apr 18, 2024
1 parent 4232114 commit 79ebf35
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
18 changes: 18 additions & 0 deletions demo/redirect-flow-example/src/components/LoadingIndicator.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import "./styles.css";

const LoadingSpinner = () => {
return (
<div className="lds-wrapper">
<div className="lds-container">
<div className="lds-ring">
<div />
<div />
<div />
<div />
</div>
</div>
</div>
);
}

export default LoadingSpinner;
54 changes: 54 additions & 0 deletions demo/redirect-flow-example/src/components/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.lds-wrapper {
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0, 0, 0, 0.2);
}

.lds-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.lds-ring {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 64px;
height: 64px;
margin: 8px;
border: 5px solid #0346ff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #0346ff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

0 comments on commit 79ebf35

Please sign in to comment.