@@ -13,7 +13,7 @@ export function LatestContentPreview() {
1313 const [ isLoading , setIsLoading ] = useState ( true )
1414 const [ fetchError , setFetchError ] = useState < string | null > ( null )
1515
16- useEffect ( ( ) => {
16+ useEffect ( ( ) => {
1717 const fetchLatestBlogs = async ( ) => {
1818 setIsLoading ( true )
1919 setFetchError ( null )
@@ -83,10 +83,18 @@ export function LatestContentPreview() {
8383 animate = { { scale : 1 , opacity : 1 } }
8484 transition = { { duration : 0.6 , delay : 0.2 } }
8585 >
86- < Badge variant = "outline" className = "px-4 py-2 rounded-full hover:scale-105 transition-all duration-300 bg-gradient-to-r from-primary/15 to-purple-500/15 border-primary/30 backdrop-blur-sm shadow-lg" >
87- < Sparkles className = "w-3 h-3 mr-2 animate-pulse" />
88- Latest Articles
89- </ Badge >
86+ < div className = "flex flex-col items-start gap-2" >
87+ < button className = "bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block" >
88+ < span className = "absolute inset-0 overflow-hidden rounded-full" >
89+ < span className = "absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" />
90+ </ span >
91+ < div className = "relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10 cursor-default" >
92+ < span > Latest Articles</ span >
93+ < Sparkles className = "w-3 h-3" />
94+ </ div >
95+ < span className = "absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" />
96+ </ button >
97+ </ div >
9098 </ motion . div >
9199 < motion . h3
92100 initial = { { opacity : 0 , x : - 20 } }
@@ -181,10 +189,18 @@ export function LatestContentPreview() {
181189 animate = { { scale : 1 , opacity : 1 } }
182190 transition = { { duration : 0.6 , delay : 0.5 } }
183191 >
184- < Badge variant = "outline" className = "px-4 py-2 hover:scale-105 rounded-full transition-all duration-300 bg-gradient-to-r from-primary/15 to-purple-500/15 border-primary/30 backdrop-blur-sm shadow-lg" >
185- < Sparkles className = "w-3 h-3 mr-2 animate-pulse" />
186- Upcoming Events
187- </ Badge >
192+ < div className = "flex flex-col items-start gap-2" >
193+ < button className = "bg-slate-800 no-underline group relative shadow-2xl shadow-zinc-900 rounded-full p-px text-sm font-semibold leading-6 text-white inline-block" >
194+ < span className = "absolute inset-0 overflow-hidden rounded-full" >
195+ < span className = "absolute inset-0 rounded-full bg-[image:radial-gradient(75%_100%_at_50%_0%,rgba(56,189,248,0.6)_0%,rgba(56,189,248,0)_75%)] opacity-0 transition-opacity duration-500 group-hover:opacity-100" />
196+ </ span >
197+ < div className = "relative flex space-x-2 items-center z-10 rounded-full bg-zinc-950 py-0.5 px-4 ring-1 ring-white/10 cursor-default" >
198+ < span > Upcoming Events</ span >
199+ < Sparkles className = "w-3 h-3" />
200+ </ div >
201+ < span className = "absolute -bottom-0 left-[1.125rem] h-px w-[calc(100%-2.25rem)] bg-gradient-to-r from-emerald-400/0 via-emerald-400/90 to-emerald-400/0 transition-opacity duration-500 group-hover:opacity-40" />
202+ </ button >
203+ </ div >
188204 </ motion . div >
189205 < motion . h3
190206 initial = { { opacity : 0 , x : - 20 } }
0 commit comments