Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,19 @@ html[data-theme="dark"] .welcome p {
.loading-spinner {
width: 40px;
height: 40px;
max-width: 100%;
flex-shrink: 0;
border: 4px solid #f3f3f3;
border-top: 4px solid #8e8dd3;
border-radius: 50%;
animation: spin 1s linear infinite;
}

html[data-theme="dark"] .loading-spinner {
border-color: #333;
border-top-color: #8e8dd3;
}

@keyframes spin {
to {
transform: rotate(360deg);
Expand Down
10 changes: 0 additions & 10 deletions src/components/Loading.jsx

This file was deleted.

9 changes: 9 additions & 0 deletions src/components/LoadingSpinner.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function LoadingSpinner() {
return (
<div className="loading-container" role="status" aria-label="Loading">
<div className="loading-spinner" aria-hidden="true"></div>
</div>
);
}

export default LoadingSpinner;