22
33import { visitedCountries } from "@/app/data/travel" ;
44import { Slide } from "../../animation/Slide" ;
5- import { motion , useInView , AnimatePresence } from "framer-motion" ;
5+ import { motion , useInView , AnimatePresence , type Variants } from "framer-motion" ;
66import { useState , useRef , useEffect } from "react" ;
77import { BiWorld } from "react-icons/bi" ;
88import { FaPlane , FaChevronDown , FaChevronLeft , FaChevronRight } from "react-icons/fa" ;
@@ -18,7 +18,7 @@ const countryRegions: Record<string, string> = {
1818} ;
1919
2020// Animation variants for staggered children
21- const containerVariants = {
21+ const containerVariants : Variants = {
2222 hidden : { opacity : 0 } ,
2323 visible : {
2424 opacity : 1 ,
@@ -29,7 +29,7 @@ const containerVariants = {
2929 }
3030} ;
3131
32- const cardVariants = {
32+ const cardVariants : Variants = {
3333 hidden : {
3434 opacity : 0 ,
3535 y : 30 ,
@@ -50,7 +50,7 @@ const cardVariants = {
5050 }
5151} ;
5252
53- const statCardVariants = {
53+ const statCardVariants : Variants = {
5454 hidden : { opacity : 0 , y : 40 , scale : 0.8 } ,
5555 visible : ( i : number ) => ( {
5656 opacity : 1 ,
@@ -65,7 +65,7 @@ const statCardVariants = {
6565 } )
6666} ;
6767
68- const filterPillVariants = {
68+ const filterPillVariants : Variants = {
6969 idle : { scale : 1 } ,
7070 hover : {
7171 scale : 1.08 ,
@@ -201,7 +201,7 @@ export default function WorldMap() {
201201 } }
202202 transition = { { duration : 8 , repeat : Infinity , ease : "easeInOut" } }
203203 >
204- < div className = "absolute -top-24 -right-24 w-48 h-48 bg-gradient -to-br from-blue-500/10 to-purple-500/10 rounded-full blur-3xl" />
204+ < div className = "absolute -top-24 -right-24 w-48 h-48 bg-linear -to-br from-blue-500/10 to-purple-500/10 rounded-full blur-3xl" />
205205 </ motion . div >
206206 < motion . div
207207 animate = { {
@@ -211,7 +211,7 @@ export default function WorldMap() {
211211 } }
212212 transition = { { duration : 10 , repeat : Infinity , ease : "easeInOut" } }
213213 >
214- < div className = "absolute -bottom-24 -left-24 w-48 h-48 bg-gradient -to-br from-pink-500/10 to-orange-500/10 rounded-full blur-3xl" />
214+ < div className = "absolute -bottom-24 -left-24 w-48 h-48 bg-linear -to-br from-pink-500/10 to-orange-500/10 rounded-full blur-3xl" />
215215 </ motion . div >
216216
217217 { /* Stats Cards with animated counters */ }
@@ -327,7 +327,7 @@ export default function WorldMap() {
327327 >
328328 < button
329329 onClick = { ( ) => scrollGrid ( 'left' ) }
330- className = "absolute left-0 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-sm shadow-lg border dark:border-zinc-700 border-zinc-200 sm:hidden"
330+ className = "absolute left-0 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-xs shadow-lg border dark:border-zinc-700 border-zinc-200 sm:hidden"
331331 >
332332 < FaChevronLeft className = "text-zinc-600 dark:text-zinc-300" />
333333 </ button >
@@ -344,7 +344,7 @@ export default function WorldMap() {
344344 >
345345 < button
346346 onClick = { ( ) => scrollGrid ( 'right' ) }
347- className = "absolute right-0 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-sm shadow-lg border dark:border-zinc-700 border-zinc-200 sm:hidden"
347+ className = "absolute right-0 top-1/2 -translate-y-1/2 z-10 p-2 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-xs shadow-lg border dark:border-zinc-700 border-zinc-200 sm:hidden"
348348 >
349349 < FaChevronRight className = "text-zinc-600 dark:text-zinc-300" />
350350 </ button >
@@ -382,7 +382,7 @@ export default function WorldMap() {
382382 className = "group relative flex flex-col p-3 rounded-lg bg-zinc-50 dark:bg-zinc-800/50 border border-zinc-200 dark:border-zinc-700 hover:border-blue-400 dark:hover:border-blue-500 transition-colors"
383383 >
384384 < div className = "flex items-center gap-2 mb-2" >
385- < div className = "relative w-5 h-3.5 rounded-[2px] overflow-hidden shadow-sm " >
385+ < div className = "relative w-5 h-3.5 rounded-[2px] overflow-hidden shadow-xs " >
386386 < Image
387387 src = { `https://flagcdn.com/w40/${ country . code } .png` }
388388 alt = { country . name }
@@ -447,7 +447,7 @@ export default function WorldMap() {
447447 animate = { { opacity : [ 0.5 , 1 , 0.5 ] } }
448448 transition = { { duration : 2 , repeat : Infinity } }
449449 >
450- < span className = "text-xs text-zinc-500 dark:text-zinc-400 font-medium px-3 py-1 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-sm " >
450+ < span className = "text-xs text-zinc-500 dark:text-zinc-400 font-medium px-3 py-1 rounded-full bg-white/80 dark:bg-zinc-800/80 backdrop-blur-xs " >
451451 Scroll to explore
452452 </ span >
453453 </ motion . span >
@@ -459,7 +459,7 @@ export default function WorldMap() {
459459 ease : "easeInOut"
460460 } }
461461 >
462- < div className = "p-2 rounded-full bg-gradient -to-br from-blue-500/20 to-purple-500/20 backdrop-blur-sm border border-zinc-200/50 dark:border-zinc-700/50" >
462+ < div className = "p-2 rounded-full bg-linear -to-br from-blue-500/20 to-purple-500/20 backdrop-blur-xs border border-zinc-200/50 dark:border-zinc-700/50" >
463463 < motion . div
464464 animate = { {
465465 opacity : [ 0.5 , 1 , 0.5 ] ,
0 commit comments