-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improves the loader for logs (#3404)
- Loading branch information
Showing
6 changed files
with
81 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<template> | ||
<div class="animate-background h-1 w-1/2 bg-gradient-radial to-transparent to-75%" :class="colorClass"></div> | ||
</template> | ||
<script setup lang="ts"> | ||
const { color = "primary" } = defineProps<{ color: "primary" | "error" | "secondary" }>(); | ||
const colorClass = computed(() => { | ||
switch (color) { | ||
case "primary": | ||
return "from-primary"; | ||
case "error": | ||
return "from-error"; | ||
case "secondary": | ||
return "from-secondary"; | ||
} | ||
}); | ||
</script> | ||
|
||
<style scoped lang="postcss"> | ||
.animate-background { | ||
animation: gradient-animation 3s ease-out infinite; | ||
} | ||
@keyframes gradient-animation { | ||
0%, | ||
100% { | ||
transform: translateX(0%); | ||
} | ||
50% { | ||
transform: translateX(100%); | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters