Skip to content

Commit 7e15e58

Browse files
authored
Merge pull request #123 from CodeSpace-Academy/implement-loading-state-#84
Implement loading state #84
2 parents d29aaa5 + 7603533 commit 7e15e58

File tree

2 files changed

+61
-1
lines changed

2 files changed

+61
-1
lines changed

app/components/Loader.js

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/globals.css

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,44 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
45
:root {
56
--background: #ffffff;
67
--foreground: #171717;
78
}
9+
810
@media (prefers-color-scheme: dark) {
911
:root {
1012
--background: #0a0a0a;
1113
--foreground: #ededed;
1214
}
1315
}
16+
1417
body {
1518
color: var(--foreground);
1619
background: var(--background);
1720
font-family: Arial, Helvetica, sans-serif;
1821
}
22+
1923
@layer utilities {
2024
.text-balance {
2125
text-wrap: balance;
2226
}
23-
}
27+
28+
.pulse {
29+
@apply animate-pulse;
30+
}
31+
32+
@keyframes pulse {
33+
0%, 100% {
34+
transform: scale(1);
35+
}
36+
50% {
37+
transform: scale(1.3);
38+
}
39+
}
40+
41+
.animate-pulse {
42+
animation: pulse 1.5s infinite;
43+
}
44+
}

0 commit comments

Comments
 (0)