Skip to content

Commit

Permalink
fix(frontend): style loading-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Oct 4, 2024
1 parent 264473d commit c4812a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
16 changes: 6 additions & 10 deletions frontend/app/components/loading-icon/template.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<div class="loading-icon">
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<span class="loading-dot"></span>
<div class="loading-icon grid grid-cols-3 gap-0.5 w-60 h-60">
{{#each (range 0 9)}}
<div
class="odd:bg-primary odd:animate-[loading_2s_ease-in-out_infinite] even:bg-secondary even:animate-[loading_1.5s_ease-in-out_infinite] rounded-3xl"
/>
{{/each}}
</div>
6 changes: 6 additions & 0 deletions frontend/config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ module.exports = {
sans: ["Source Sans Pro", "sans-serif"],
mono: ["Menlo", "Monaco", "Consolas", "Courier New", "monospace"],
},
keyframes: {
loading: {
"0%, 100%": { transform: "scale(0.1)", opacity: "1" },
"50%": { transform: "scale(0.9)", opacity: "0" },
},
},
fontSize: {
"2xs": [
"0.65rem",
Expand Down

0 comments on commit c4812a0

Please sign in to comment.