Skip to content
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

Added Terminal Loader #882

Merged
merged 4 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
31 changes: 31 additions & 0 deletions Components/Loaders/Terminal-Loader/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Terminal Loader</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div
class="mx-auto w-[500px] mt-9 bg-gray-950 rounded-xl overflow-hidden drop-shadow-xl"
>
<div class="bg-[#333] flex items-center p-[5px] text-whitec relative">
<div class="flex absolute left-3">
<span class="h-3.5 w-3.5 bg-[#ff605c] rounded-xl mr-2"></span>
<span class="h-3.5 w-3.5 bg-[#ffbd44] rounded-xl mr-2"></span>
<span class="h-3.5 w-3.5 bg-[#00ca4e] rounded-xl"></span>
</div>
<div class="flex-1 text-center text-white">status</div>
</div>
<div class="p-2.5 text-[#0f0]">
<div>
<span class="mr-2">Loading</span>
<span class="animate-[ping_1.5s_0.5s_ease-in-out_infinite]">.</span>
<span class="animate-[ping_1.5s_0.7s_ease-in-out_infinite]">.</span>
<span class="animate-[ping_1.5s_0.9s_ease-in-out_infinite]">.</span>
</div>
</div>
</div>
</body>
</html>
88 changes: 88 additions & 0 deletions Components/Loaders/Terminal-Loader/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
.container {
margin: auto;
width: 500px;
background-color: #2d2d2d; /* Adjust to match bg-gray-950 */
border-radius: 1rem;
overflow: hidden;
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); /* Similar to drop-shadow-xl */
}

.status-bar {
background-color: #333;
display: flex;
align-items: center;
padding: 5px;
color: white;
position: relative;
}

.status-indicators {
position: absolute;
left: 10px; /* Adjust to match left-3 */
}

.indicator {
height: 7px; /* Adjust to match h-3.5 */
width: 7px; /* Adjust to match w-3.5 */
border-radius: 50%;
margin-right: 5px; /* Adjust to match mr-2 */
}

.indicator-red {
background-color: #ff605c;
}

.indicator-yellow {
background-color: #ffbd44;
}

.indicator-green {
background-color: #00ca4e;
}

.status-text {
flex: 1;
text-align: center;
}

.loading-text {
padding: 10px; /* Adjust to match p-2.5 */
color: #0f0;
}

.loading {
margin-right: 5px; /* Adjust to match mr-2 */
}

.dot {
display: inline-block;
width: 5px; /* Adjust size as needed */
height: 5px; /* Adjust size as needed */
border-radius: 50%;
margin: 0 2px; /* Adjust spacing as needed */
animation: ping 1.5s infinite ease-in-out;
}

.dot-1 {
animation-delay: 0.5s;
}

.dot-2 {
animation-delay: 0.7s;
}

.dot-3 {
animation-delay: 0.9s;
}

@keyframes ping {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
Loading