Skip to content

Commit a86ba4a

Browse files
committed
Add new loading animation
1 parent fb4a6a0 commit a86ba4a

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"react-dropzone": "^11.3.1",
1616
"react-router-dom": "^5.2.0",
1717
"react-scripts": "4.0.3",
18-
"react-spinners": "^0.10.6",
1918
"sass": "^1.32.8",
2019
"sweetalert2": "^10.15.6",
2120
"web-vitals": "^1.1.0"

frontend/public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<noscript>You need to enable JavaScript to run this app.</noscript>
2626
<script src="sweetalert2/dist/sweetalert2.min.js"></script>
2727
<script src="%PUBLIC_URL%/env-config.js"></script>
28+
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
2829

2930
<div id="root"></div>
3031
</body>

frontend/src/App.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
}
77

88
.loading {
9-
margin-top: 40vh;
9+
margin-top: 20vh;
1010
display: block;
1111
margin-left: auto;
1212
margin-right: auto;
13-
width: 0%;
14-
13+
width: 43%;
1514
}
1615

1716
body {
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
import { HashLoader } from 'react-spinners';
2-
31
import '../../App.css'
42

53

64
export default function Loading() {
75
return (
86
<div className="loading">
9-
<HashLoader
10-
color={'#fff'}
11-
size={100}
12-
/>
7+
<lottie-player src="https://assets7.lottiefiles.com/datafiles/9jPPC5ogUyD6oQq/data.json" background="transparent" speed="1" style={{width: "500px", height: "500px"}} loop autoplay></lottie-player>
8+
139
</div>
1410
)
1511
}

0 commit comments

Comments
 (0)