Initial commit
This commit is contained in:
9
src/components/Loader/Loader.tsx
Normal file
9
src/components/Loader/Loader.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import "./styles.css";
|
||||
|
||||
export const Loader = () => {
|
||||
return (
|
||||
<div className="loader-container">
|
||||
<div className="loader"></div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
32
src/components/Loader/styles.css
Normal file
32
src/components/Loader/styles.css
Normal file
@@ -0,0 +1,32 @@
|
||||
.loader-container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.loader {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 3px solid #fff;
|
||||
border-bottom-color: var(--primary);
|
||||
border-radius: 50%;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
animation: rotation 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes rotation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user