diff --git a/src/app.css b/src/app.css index 7e86435..5f5f1ca 100644 --- a/src/app.css +++ b/src/app.css @@ -147,6 +147,9 @@ --shadow-lg: var(--shadow-lg); --shadow-xl: var(--shadow-xl); --shadow-2xl: var(--shadow-2xl); + + /* For shiny text */ + --animate-shimmer: shimmer 1.5s infinite; } @theme inline { @@ -584,3 +587,13 @@ pre button.copy { opacity: 1; } } + +/* For shiny text */ +@keyframes shimmer { + 0% { + background-position: calc(-100% - var(--shimmer-width)) 0; + } + 100% { + background-position: calc(100% + var(--shimmer-width)) 0; + } +} diff --git a/src/lib/components/animations/shiny-text.svelte b/src/lib/components/animations/shiny-text.svelte new file mode 100644 index 0000000..5dcd114 --- /dev/null +++ b/src/lib/components/animations/shiny-text.svelte @@ -0,0 +1,31 @@ + + + + +
+ {@render children?.()} +
diff --git a/src/lib/components/ui/sidebar/sidebar-sidebar.svelte b/src/lib/components/ui/sidebar/sidebar-sidebar.svelte index d24f83a..acac6a6 100644 --- a/src/lib/components/ui/sidebar/sidebar-sidebar.svelte +++ b/src/lib/components/ui/sidebar/sidebar-sidebar.svelte @@ -12,7 +12,7 @@Add image
+Drop an image here to attach it to your message.
+