Skip to content

Commit 52ac8f0

Browse files
author
Dev
committed
Connected Firestore, Storage
1 parent f2c978d commit 52ac8f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+5305
-4898
lines changed

components/Loader.jsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
export default function Loader({ children, size }) {
2+
return (
3+
<span className="loading">
4+
{children}
5+
<span>.</span>
6+
<span>.</span>
7+
<span>.</span>
8+
<style jsx>{`
9+
.loading{
10+
color: #fff;
11+
display: block;
12+
text-align: center;
13+
margin: 0px 10px;
14+
font-size: ${size ? size : 20}px;
15+
}
16+
@keyframes blink {
17+
0% {
18+
opacity: 0.2;
19+
}
20+
20% {
21+
opacity: 1;
22+
}
23+
100% {
24+
opacity: 0.2;
25+
}
26+
}
27+
.loading span {
28+
animation-name: blink;
29+
animation-duration: 1.4s;
30+
animation-iteration-count: infinite;
31+
animation-fill-mode: both;
32+
}
33+
.loading span:nth-child(2) {
34+
animation-delay: 0.2s;
35+
}
36+
.loading span:nth-child(3) {
37+
animation-delay: 0.4s;
38+
}
39+
`}</style>
40+
</span>
41+
);
42+
}

components/LoaderWrapper.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Loader from "./Loader";
2+
3+
export default function LoaderWrapper(){
4+
return <div className="wrapper">
5+
<Loader/>
6+
<style jsx>{`
7+
8+
.wrapper{
9+
padding: 20vh 0;
10+
}
11+
`}</style>
12+
</div>
13+
}

0 commit comments

Comments
 (0)