mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-26 06:19:36 +02:00
Apps actions and reducer
This commit is contained in:
parent
2acc3b72ec
commit
78acede8ab
15 changed files with 230 additions and 27 deletions
54
client/src/components/UI/Spinner/Spinner.module.css
Normal file
54
client/src/components/UI/Spinner/Spinner.module.css
Normal file
|
@ -0,0 +1,54 @@
|
|||
.Spinner,
|
||||
.Spinner:before,
|
||||
.Spinner:after {
|
||||
background: var(--color-primary);
|
||||
animation: load1 1s infinite ease-in-out;
|
||||
width: 1em;
|
||||
height: 4em;
|
||||
}
|
||||
|
||||
.Spinner {
|
||||
color: var(--color-primary);
|
||||
text-indent: -9999em;
|
||||
margin: 88px auto;
|
||||
position: relative;
|
||||
font-size: 11px;
|
||||
transform: translateZ(0);
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
|
||||
.Spinner:before,
|
||||
.Spinner:after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
content: '';
|
||||
}
|
||||
|
||||
.Spinner:before {
|
||||
left: -1.5em;
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
.Spinner:after {
|
||||
left: 1.5em;
|
||||
}
|
||||
|
||||
@keyframes load1 {
|
||||
0%,
|
||||
80%,
|
||||
100% {
|
||||
box-shadow: 0 0;
|
||||
height: 4em;
|
||||
}
|
||||
40% {
|
||||
box-shadow: 0 -2em;
|
||||
height: 5em;
|
||||
}
|
||||
}
|
||||
|
||||
.SpinnerWrapper {
|
||||
height: 150px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
11
client/src/components/UI/Spinner/Spinner.tsx
Normal file
11
client/src/components/UI/Spinner/Spinner.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import classes from './Spinner.module.css';
|
||||
|
||||
const Spinner = (): JSX.Element => {
|
||||
return (
|
||||
<div className={classes.SpinnerWrapper}>
|
||||
<div className={classes.Spinner}>Loading...</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Spinner;
|
Loading…
Add table
Add a link
Reference in a new issue