-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from readyplayerme/feature/suspense-loader
Feature/suspense loader
- Loading branch information
Showing
12 changed files
with
157 additions
and
76 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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,62 @@ | ||
html, | ||
body, | ||
#root, | ||
.app { | ||
margin: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.app { | ||
position: relative; | ||
margin: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
height: 100%; | ||
} | ||
|
||
.card { | ||
width: 100%; | ||
} | ||
|
||
.settings { | ||
z-index: 2; | ||
position: fixed; | ||
top: 24px; | ||
right: 24px; | ||
width: 100%; | ||
max-width: 320px; | ||
background-color: rgba(243, 243, 243, 0.9); | ||
border: 1px solid #b9b9b9; | ||
border-radius: 4px; | ||
overflow: hidden; | ||
} | ||
|
||
.wrapper { | ||
position: relative; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.title { | ||
font-size: 18px; | ||
font-weight: 600; | ||
font-family: Arial, sans-serif; | ||
color: black; | ||
display: block; | ||
padding: 8px; | ||
margin: 0; | ||
border-bottom: 1px solid #b9b9b9; | ||
} | ||
|
||
.content { | ||
position: relative; | ||
padding: 8px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 12px; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { FC } from 'react'; | ||
|
||
import styles from './Loader.module.scss'; | ||
|
||
const Loader: FC = () => ( | ||
<div className={styles.loader}> | ||
<div className={styles.dots}> | ||
{[1, 2, 3].map((it) => ( | ||
<div key={it} className={styles.dot} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
|
||
export { Loader }; |
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,54 @@ | ||
.loader { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
.dots { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.dot { | ||
background-color: rgb(236, 236, 236); | ||
width: 8px; | ||
height: 8px; | ||
margin: 2px; | ||
border-radius: 100%; | ||
display: inline-block; | ||
|
||
&:nth-child(1) { | ||
animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.12s infinite normal both running glowing; | ||
} | ||
|
||
&:nth-child(2) { | ||
animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.24s infinite normal both running glowing; | ||
} | ||
|
||
&:nth-child(3) { | ||
animation: 0.75s cubic-bezier(0.2, 0.68, 0.18, 1.08) 0.36s infinite normal both running glowing; | ||
} | ||
} | ||
|
||
@keyframes glowing { | ||
0% { | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
|
||
45% { | ||
transform: scale(0.1); | ||
opacity: 0.7; | ||
} | ||
|
||
80% { | ||
transform: scale(1); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
|
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,3 @@ | ||
import { Loader } from './Loader.component'; | ||
|
||
export default Loader; |