Improve shine effect
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@
|
||||
@keyframes shine {
|
||||
0%,
|
||||
100% {
|
||||
background-size: 200% 200%;
|
||||
background-size: 100% 100%;
|
||||
background-position: left center;
|
||||
}
|
||||
50% {
|
||||
|
||||
@@ -229,9 +229,9 @@ defmodule MusicLibraryWeb.StatsComponents do
|
||||
"text-xs leading-5",
|
||||
normal_year?(@years) && "text-zinc-500 dark:text-zinc-400",
|
||||
gold_year?(@years) &&
|
||||
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-200 via-yellow-500 to-yellow-700 animate-shine",
|
||||
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-yellow-500 via-yellow-200 to-yellow-700 animate-shine",
|
||||
silver_year?(@years) &&
|
||||
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-gray-200 via-gray-500 to-gray-700 animate-shine"
|
||||
"font-semibold bg-gradient-to-r bg-clip-text text-transparent from-gray-500 via-gray-200 to-gray-700 animate-shine"
|
||||
]}>
|
||||
{ngettext(
|
||||
"1 year ago",
|
||||
|
||||
Reference in New Issue
Block a user