File tree Expand file tree Collapse file tree 2 files changed +42
-5
lines changed
Expand file tree Collapse file tree 2 files changed +42
-5
lines changed Original file line number Diff line number Diff line change 124124 @apply bg-background text-foreground;
125125 }
126126}
127+
128+ /* Flowing gradient animation for featured section */
129+ @keyframes gradient-flow {
130+ 0% ,
131+ 100% {
132+ background-position : 0% 50% ;
133+ }
134+ 50% {
135+ background-position : 100% 50% ;
136+ }
137+ }
138+
139+ .animate-gradient-flow {
140+ background : linear-gradient (
141+ 135deg ,
142+ oklch (0.96 0.04 85 ) 0% ,
143+ oklch (0.98 0.025 70 ) 25% ,
144+ oklch (0.97 0.035 80 ) 50% ,
145+ oklch (0.99 0.015 95 ) 75% ,
146+ oklch (0.96 0.04 85 ) 100%
147+ );
148+ background-size : 200% 200% ;
149+ animation : gradient-flow 8s ease infinite;
150+ }
151+
152+ .dark .animate-gradient-flow {
153+ background : linear-gradient (
154+ 135deg ,
155+ oklch (0.25 0.03 55 ) 0% ,
156+ oklch (0.22 0.02 45 ) 25% ,
157+ oklch (0.24 0.025 50 ) 50% ,
158+ oklch (0.21 0.015 40 ) 75% ,
159+ oklch (0.25 0.03 55 ) 100%
160+ );
161+ background-size : 200% 200% ;
162+ animation : gradient-flow 8s ease infinite;
163+ }
Original file line number Diff line number Diff line change @@ -58,16 +58,16 @@ export default function FeaturedJargonCarousel({
5858 return (
5959 < div
6060 className = { cn (
61- "relative rounded-xl border border-stone-300/50 bg-stone-100/30 p-4 dark:border-stone-700/40 dark:bg-stone-800/20 " ,
61+ "animate-gradient-flow relative overflow-hidden rounded-xl p-4 shadow-sm " ,
6262 className ,
6363 ) }
6464 >
6565 < div className = "flex flex-col gap-3" >
6666 < h2 className = "flex items-center gap-2 text-lg font-bold" >
67- < span className = "text-stone -500 dark:text-stone -400" >
67+ < span className = "text-amber -500 dark:text-amber -400" >
6868 < Sparkles className = "h-4 w-4" />
6969 </ span >
70- < span className = "text-stone -800 dark:text-stone -100" > 하이라이트</ span >
70+ < span className = "text-amber -800 dark:text-amber -100" > 하이라이트</ span >
7171 </ h2 >
7272 < Carousel
7373 setApi = { setApi }
@@ -78,11 +78,11 @@ export default function FeaturedJargonCarousel({
7878 >
7979 { /* Left fade overlay */ }
8080 { canScrollPrev && (
81- < div className = "pointer-events-none absolute top-0 left-0 z-10 h-full w-16 bg-gradient-to-r from-[#F6F1E9]/75 to-transparent dark:from-[#1E1B1A] " />
81+ < div className = "pointer-events-none absolute top-0 left-0 z-10 h-full w-16 bg-gradient-to-r from-amber-50/90 to-transparent dark:from-amber-950/60 " />
8282 ) }
8383 { /* Right fade overlay */ }
8484 { canScrollNext && (
85- < div className = "pointer-events-none absolute top-0 right-0 z-10 h-full w-16 bg-gradient-to-l from-[#F6F1E9]/75 to-transparent dark:from-[#1E1B1A] " />
85+ < div className = "pointer-events-none absolute top-0 right-0 z-10 h-full w-16 bg-gradient-to-l from-yellow-50/90 to-transparent dark:from-stone-900/60 " />
8686 ) }
8787 < CarouselContent className = "-ml-3" >
8888 { featuredJargons . length > 0
You can’t perform that action at this time.
0 commit comments