Create Loading component

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2026-02-24 14:47:30 +01:00
parent d578be5bab
commit 1f6fb932b6
3 changed files with 50 additions and 0 deletions
@@ -0,0 +1,25 @@
.wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 200px;
}
.spinner {
width: 48px;
height: 48px;
border: 5px solid #e0e0e0;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
+12
View File
@@ -0,0 +1,12 @@
import React from "react";
import styles from "./loading.module.css";
const Loading: React.FC = () => {
return (
<div className={styles.wrapper}>
<div className={styles.spinner} />
</div>
);
};
export default Loading;