Skip to content

Changed the loader and make it looks good. #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
5 changes: 4 additions & 1 deletion apps/frontend/src/components/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
//TODO: Make prettier
import './styles/Loader.css';
export const Loader = () => {
return <div>Loading..</div>;
return (
<div className="loader ease-linear rounded-full border-8 border-t-8 border-gray-200 h-24 w-24"></div>
);
};
14 changes: 14 additions & 0 deletions apps/frontend/src/components/styles/Loader.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

.loader {
border-top-color: #34D399;
border-left-color: #34D399;
border-bottom-color: #34D399;
border-right-color: #34D399;
animation: spin 1.5s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

Loading