feat: native carousel
This commit is contained in:
1 parent
4ddaa89032
commit
5733bc0af0
20 files changed
+918
-491
No files matched your search
+91
-50
@@ -1,15 +1,14 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useEffect, useMemo, useRef } from 'react';
|
import { forwardRef, ReactNode, UIEvent, useEffect, useRef, useState } from 'react';
|
||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
|
import { Virtuoso, VirtuosoProps } from 'react-virtuoso';
|
||||||
import { useAtom } from 'jotai';
|
import { useAtom } from 'jotai';
|
||||||
import { atomWithStorage } from 'jotai/utils';
|
import { atomWithStorage } from 'jotai/utils';
|
||||||
import { ArrowLeft, ArrowRight, SlidersHorizontal } from 'lucide-react';
|
import { SlidersHorizontal } from 'lucide-react';
|
||||||
import { EffectCoverflow, Virtual } from 'swiper/modules';
|
|
||||||
import { Swiper, SwiperProps, SwiperSlide } from 'swiper/react';
|
|
||||||
|
|
||||||
import Card from '@/components/Movie/Card';
|
import Card from '@/components/Movie/Card';
|
||||||
import Movie from '@/components/Movie/Preview';
|
import Preview from '@/components/Movie/Preview';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import useMounted from '@/hooks/useMounted';
|
import useMounted from '@/hooks/useMounted';
|
||||||
import useUrlToMagnet from '@/hooks/useUrlToMagnet';
|
import useUrlToMagnet from '@/hooks/useUrlToMagnet';
|
||||||
@@ -21,22 +20,88 @@ import useRandomMovie from './useRandomMovie';
|
|||||||
|
|
||||||
const isShowFilterAtom = atomWithStorage('is-show-filters', false);
|
const isShowFilterAtom = atomWithStorage('is-show-filters', false);
|
||||||
|
|
||||||
const slideEffectProps: SwiperProps = {
|
const components: VirtuosoProps<Movie, number>['components'] = {
|
||||||
effect: 'coverflow',
|
Item: (props) => <div {...props} className='shrink-0' style={{ ...props.style, width: props.context }} />,
|
||||||
coverflowEffect: {
|
List: forwardRef(function List(props, ref) {
|
||||||
slideShadows: false,
|
return (
|
||||||
depth: 200
|
<div {...props} ref={ref} className='gap-2' style={{ ...props.style, display: 'flex', width: props.context }} />
|
||||||
},
|
);
|
||||||
virtual: {
|
}),
|
||||||
addSlidesAfter: 3,
|
Scroller: forwardRef(function Scroller(props, ref) {
|
||||||
addSlidesBefore: 3
|
return <div {...props} ref={ref} className='overflow-hidden no-scrollbar snap-mandatory snap-x rounded-lg' />;
|
||||||
},
|
})
|
||||||
modules: [EffectCoverflow, Virtual]
|
};
|
||||||
|
|
||||||
|
const Measurer = ({ children }: { children: (width: number) => ReactNode }) => {
|
||||||
|
const [ref, setRef] = useState<HTMLDivElement | null>(null);
|
||||||
|
const width = ref?.offsetWidth;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div ref={setRef} />
|
||||||
|
{children(width || 0)}
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const Carousel = ({
|
||||||
|
movies,
|
||||||
|
index = 0,
|
||||||
|
width: initialWidth,
|
||||||
|
onIndexChange
|
||||||
|
}: {
|
||||||
|
movies?: Movie[];
|
||||||
|
width: number;
|
||||||
|
index: number;
|
||||||
|
onIndexChange: (index: number) => void;
|
||||||
|
}) => {
|
||||||
|
const timeout = useRef<NodeJS.Timeout>();
|
||||||
|
const isMobile = matchMedia('(max-width: 500px)').matches;
|
||||||
|
|
||||||
|
const width = isMobile ? initialWidth : 300;
|
||||||
|
const height = isMobile ? (width * 3) / 2 : 450;
|
||||||
|
|
||||||
|
const handleScroll = (event: UIEvent) => {
|
||||||
|
clearTimeout(timeout.current);
|
||||||
|
|
||||||
|
timeout.current = setTimeout(() => {
|
||||||
|
const gap = 8;
|
||||||
|
const item = event.target as HTMLDivElement;
|
||||||
|
const itemWidth = item?.clientWidth + gap;
|
||||||
|
const scrollPosition = item?.scrollLeft;
|
||||||
|
|
||||||
|
const index = Math.round(scrollPosition / itemWidth);
|
||||||
|
|
||||||
|
onIndexChange(index);
|
||||||
|
}, 50);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Virtuoso
|
||||||
|
data={movies}
|
||||||
|
firstItemIndex={index}
|
||||||
|
style={{ width, height, flexShrink: 0 }}
|
||||||
|
totalCount={movies?.length}
|
||||||
|
horizontalDirection
|
||||||
|
context={width}
|
||||||
|
// onScroll={handleScroll}
|
||||||
|
components={components}
|
||||||
|
itemContent={(index) => {
|
||||||
|
clearTimeout(timeout.current);
|
||||||
|
|
||||||
|
timeout.current = setTimeout(() => {
|
||||||
|
console.log(index);
|
||||||
|
// onIndexChange(index);
|
||||||
|
}, 100);
|
||||||
|
return <Card className='snap-start' movie={movies?.[index]} />;
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Container() {
|
export default function Container() {
|
||||||
const [isShowFilter, setIsShowFilter] = useAtom(isShowFilterAtom);
|
const [isShowFilter, setIsShowFilter] = useAtom(isShowFilterAtom);
|
||||||
const { ref, hasPrevious, movies, movie, next, previous, index, onDrag, onIndexChange } = useRandomMovie();
|
const { movies, movie, index, onIndexChange } = useRandomMovie();
|
||||||
const isMounted = useMounted();
|
const isMounted = useMounted();
|
||||||
const initialIndex = useRef(index);
|
const initialIndex = useRef(index);
|
||||||
|
|
||||||
@@ -48,29 +113,6 @@ export default function Container() {
|
|||||||
queryClient.prefetchQuery({ queryKey: ['genres'], queryFn: () => genres() });
|
queryClient.prefetchQuery({ queryKey: ['genres'], queryFn: () => genres() });
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const slides = useMemo(
|
|
||||||
() => (
|
|
||||||
<Swiper
|
|
||||||
onSwiper={(instance) => (ref.current = instance)}
|
|
||||||
lazyPreloadPrevNext={3}
|
|
||||||
longSwipesRatio={0.2}
|
|
||||||
speed={500}
|
|
||||||
initialSlide={initialIndex.current}
|
|
||||||
onActiveIndexChange={onIndexChange}
|
|
||||||
onTouchMove={(swiper) => onDrag(swiper)}
|
|
||||||
className='xs:w-[300px] w-full shrink-0'
|
|
||||||
{...slideEffectProps}
|
|
||||||
>
|
|
||||||
{movies?.map((movie, index) => (
|
|
||||||
<SwiperSlide key={movie.id} virtualIndex={index} className='cursor-grab active:cursor-grabbing'>
|
|
||||||
<Card fit movie={movie} />
|
|
||||||
</SwiperSlide>
|
|
||||||
))}
|
|
||||||
</Swiper>
|
|
||||||
),
|
|
||||||
[movies, onDrag, onIndexChange, ref]
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isShowFilter && <Filter />}
|
{isShowFilter && <Filter />}
|
||||||
@@ -86,16 +128,15 @@ export default function Container() {
|
|||||||
</Button>,
|
</Button>,
|
||||||
document.getElementById('actions')!
|
document.getElementById('actions')!
|
||||||
)}
|
)}
|
||||||
<Movie movie={movie} className='bg-background rounded-md' card={slides}>
|
<Measurer>
|
||||||
<div className='gap-2 flex w-full bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 lg:static max-sm:z-10 max-sm:fixed max-sm:bottom-0 max-sm:left-0 max-sm:w-full max-sm:p-2 max-sm:px-2 max-sm:mb-0'>
|
{(width) => (
|
||||||
<Button className='grow h-8' onClick={previous} disabled={!hasPrevious} title='Previous movie'>
|
<Preview
|
||||||
<ArrowLeft size={24} />
|
movie={movie}
|
||||||
</Button>
|
className='bg-background rounded-md'
|
||||||
<Button className='grow h-8' onClick={next} title='Next movie'>
|
card={<Carousel index={initialIndex.current} width={width} movies={movies} onIndexChange={onIndexChange} />}
|
||||||
<ArrowRight size={24} />
|
/>
|
||||||
</Button>
|
)}
|
||||||
</div>
|
</Measurer>
|
||||||
</Movie>
|
|
||||||
<div className='w-full h-2 max-sm:h-12' />
|
<div className='w-full h-2 max-sm:h-12' />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
import { useCallback, useEffect, useState } from 'react';
|
||||||
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
||||||
import { Swiper } from 'swiper/types';
|
|
||||||
|
|
||||||
import useFilters from '@/app/(site)/useFilters';
|
import useFilters from '@/app/(site)/useFilters';
|
||||||
import { randomMovies } from '@/lib/api';
|
import { randomMovies } from '@/lib/api';
|
||||||
@@ -16,8 +15,6 @@ const useRandomMovie = () => {
|
|||||||
const { filters } = useFilters();
|
const { filters } = useFilters();
|
||||||
const indexByFilter = previousIndexes[JSON.stringify(filters)];
|
const indexByFilter = previousIndexes[JSON.stringify(filters)];
|
||||||
const [index, setIndex] = useState(indexByFilter);
|
const [index, setIndex] = useState(indexByFilter);
|
||||||
const ref = useRef<Swiper>();
|
|
||||||
const timeout = useRef<NodeJS.Timeout>();
|
|
||||||
|
|
||||||
const { data: movies, refetch } = useQuery({
|
const { data: movies, refetch } = useQuery({
|
||||||
queryKey: ['random-movie', filters],
|
queryKey: ['random-movie', filters],
|
||||||
@@ -42,42 +39,21 @@ const useRandomMovie = () => {
|
|||||||
setIndex(indexByFilter || 0);
|
setIndex(indexByFilter || 0);
|
||||||
}, [indexByFilter]);
|
}, [indexByFilter]);
|
||||||
|
|
||||||
const previous = () => ref.current?.slidePrev();
|
|
||||||
|
|
||||||
const next = () => ref.current?.slideNext();
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
movies,
|
movies,
|
||||||
movie: movies?.[index],
|
movie: movies?.[index],
|
||||||
hasPrevious: index > 0,
|
hasPrevious: index > 0,
|
||||||
onIndexChange: useCallback(
|
onIndexChange: useCallback(
|
||||||
({ activeIndex }: Swiper) => {
|
(index: number) => {
|
||||||
if ((activeIndex && activeIndex % UPDATE_RATE === 0) || movies!.length < UPDATE_RATE) {
|
if ((index && index % UPDATE_RATE === 0) || movies!.length < UPDATE_RATE) {
|
||||||
refetch();
|
refetch();
|
||||||
}
|
}
|
||||||
clearTimeout(timeout.current);
|
previousIndexes[JSON.stringify(filters)] = index;
|
||||||
previousIndexes[JSON.stringify(filters)] = activeIndex;
|
setIndex(index);
|
||||||
timeout.current = setTimeout(() => {
|
|
||||||
setIndex(activeIndex);
|
|
||||||
}, 100);
|
|
||||||
},
|
},
|
||||||
[movies, filters]
|
[movies, filters]
|
||||||
),
|
),
|
||||||
onDrag: useCallback(
|
index
|
||||||
({ activeIndex }: Swiper) => {
|
|
||||||
clearTimeout(timeout.current);
|
|
||||||
timeout.current = setTimeout(() => {
|
|
||||||
if (index === activeIndex) return;
|
|
||||||
|
|
||||||
setIndex(activeIndex);
|
|
||||||
}, 100);
|
|
||||||
},
|
|
||||||
[index]
|
|
||||||
),
|
|
||||||
next,
|
|
||||||
previous,
|
|
||||||
index,
|
|
||||||
ref
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,15 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
|||||||
<html lang='en' className={theme}>
|
<html lang='en' className={theme}>
|
||||||
<head>
|
<head>
|
||||||
<meta name='theme-color' content='black' />
|
<meta name='theme-color' content='black' />
|
||||||
|
<link rel='preconnect' href='https://fonts.googleapis.com' />
|
||||||
|
<link rel='preconnect' href='https://fonts.gstatic.com' crossOrigin='' />
|
||||||
|
<link href='https://fonts.googleapis.com/css2?family=Moderustic&family=Poppins&display=swap' rel='stylesheet' />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<Providers theme={theme}>
|
<Providers theme={theme}>
|
||||||
|
<div className='sticky top-0 z-20'>
|
||||||
<Header />
|
<Header />
|
||||||
|
</div>
|
||||||
<main className='px-2 max-w-[1252px] mx-auto'>{children}</main>
|
<main className='px-2 max-w-[1252px] mx-auto'>{children}</main>
|
||||||
</Providers>
|
</Providers>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -1,25 +1,20 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useState } from 'react';
|
|
||||||
import { Menu } from 'lucide-react';
|
import { Menu } from 'lucide-react';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
|
|
||||||
|
import { Badge } from '@/components/ui/badge';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
Drawer,
|
||||||
DropdownMenuContent,
|
DrawerClose,
|
||||||
DropdownMenuRadioGroup,
|
DrawerContent,
|
||||||
DropdownMenuRadioItem,
|
DrawerDescription,
|
||||||
DropdownMenuTrigger
|
DrawerHeader,
|
||||||
} from '@/components/ui/dropdown-menu';
|
DrawerTitle,
|
||||||
import {
|
DrawerTrigger
|
||||||
NavigationMenu,
|
} from '@/components/ui/drawer';
|
||||||
NavigationMenuItem,
|
|
||||||
NavigationMenuLink,
|
|
||||||
NavigationMenuList,
|
|
||||||
navigationMenuTriggerStyle
|
|
||||||
} from '@/components/ui/navigation-menu';
|
|
||||||
|
|
||||||
const paths = [
|
const paths = [
|
||||||
{ path: '/popular', title: 'Popular' },
|
{ path: '/popular', title: 'Popular' },
|
||||||
@@ -27,54 +22,61 @@ const paths = [
|
|||||||
{ path: '/favorites', title: 'Favorites' }
|
{ path: '/favorites', title: 'Favorites' }
|
||||||
];
|
];
|
||||||
|
|
||||||
interface Props {
|
export function MobileNavigation() {
|
||||||
className?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function NavigationSmall({ className }: Props) {
|
|
||||||
const [isOpen, setIsOpen] = useState(false);
|
|
||||||
const currentPath = usePathname();
|
const currentPath = usePathname();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={className}>
|
<div className='flex xs:hidden'>
|
||||||
<DropdownMenu open={isOpen} onOpenChange={setIsOpen}>
|
<Drawer>
|
||||||
<DropdownMenuTrigger asChild>
|
<DrawerTrigger asChild>
|
||||||
<Button variant='ghost' size='icon'>
|
<Button variant='ghost' size='icon'>
|
||||||
<Menu size={19} />
|
<Menu size={19} />
|
||||||
</Button>
|
</Button>
|
||||||
</DropdownMenuTrigger>
|
</DrawerTrigger>
|
||||||
<DropdownMenuContent>
|
<DrawerContent>
|
||||||
<DropdownMenuRadioGroup value={currentPath}>
|
<DrawerHeader className='pointer-events-none absolute'>
|
||||||
|
<DrawerTitle />
|
||||||
|
<DrawerDescription />
|
||||||
|
</DrawerHeader>
|
||||||
|
<ul className='flex flex-col gap-2 p-2'>
|
||||||
{paths.map(({ path, title }) => (
|
{paths.map(({ path, title }) => (
|
||||||
<Link href={path} legacyBehavior shallow key={path}>
|
<li key={path}>
|
||||||
<DropdownMenuRadioItem value={path} onClick={() => setIsOpen(false)}>
|
<DrawerClose asChild>
|
||||||
|
<Button className='w-full relative' variant={currentPath === path ? 'default' : 'outline'}>
|
||||||
|
<Link href={path} className='absolute flex items-center justify-center w-full h-full top-0 left-0'>
|
||||||
{title}
|
{title}
|
||||||
</DropdownMenuRadioItem>
|
|
||||||
</Link>
|
</Link>
|
||||||
|
</Button>
|
||||||
|
</DrawerClose>
|
||||||
|
</li>
|
||||||
))}
|
))}
|
||||||
</DropdownMenuRadioGroup>
|
</ul>
|
||||||
</DropdownMenuContent>
|
</DrawerContent>
|
||||||
</DropdownMenu>
|
</Drawer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Navigation({ className }: Props) {
|
export function DesktopNavigation() {
|
||||||
const currentPath = usePathname();
|
const currentPath = usePathname();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<NavigationMenu className={className}>
|
<ul className='hidden xs:flex items-center whitespace-nowrap text-sm gap-3'>
|
||||||
<NavigationMenuList>
|
|
||||||
{paths.map(({ path, title }) => (
|
{paths.map(({ path, title }) => (
|
||||||
<NavigationMenuItem key={path}>
|
<li key={path} className={currentPath === path ? undefined : 'cursor-pointer'}>
|
||||||
<Link href={path} shallow passHref legacyBehavior>
|
<Link href={path} shallow passHref legacyBehavior>
|
||||||
<NavigationMenuLink active={path === currentPath} className={navigationMenuTriggerStyle()}>
|
<div>
|
||||||
|
{currentPath === path ? (
|
||||||
|
<Badge className='text-sm font-normal pointer-events-none' variant='secondary'>
|
||||||
{title}
|
{title}
|
||||||
</NavigationMenuLink>
|
</Badge>
|
||||||
|
) : (
|
||||||
|
title
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</NavigationMenuItem>
|
</li>
|
||||||
))}
|
))}
|
||||||
</NavigationMenuList>
|
</ul>
|
||||||
</NavigationMenu>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -3,23 +3,23 @@ import Link from 'next/link';
|
|||||||
|
|
||||||
import { Badge } from '@/components/ui/badge';
|
import { Badge } from '@/components/ui/badge';
|
||||||
|
|
||||||
import Navigation, { NavigationSmall } from './components/Navigation';
|
import { DesktopNavigation, MobileNavigation } from './components/Navigation';
|
||||||
import ToggleSearch from './components/Search';
|
import ToggleSearch from './components/Search';
|
||||||
import ToggleTheme from './components/ThemeToggle';
|
import ToggleTheme from './components/ThemeToggle';
|
||||||
|
|
||||||
const Header: FC = () => (
|
const Header: FC = () => (
|
||||||
<header className='flex justify-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky py-2 top-0 z-20'>
|
<header className='flex justify-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 py-2'>
|
||||||
<div className='max-w-[1252px] w-full px-2'>
|
<div className='max-w-[1252px] w-full px-2'>
|
||||||
<div className='flex items-center justify-between gap-2 md:flex-nowrap'>
|
<div className='flex items-center justify-between gap-2 xs:flex-nowrap'>
|
||||||
<Link href='/' shallow legacyBehavior>
|
<Link href='/' shallow legacyBehavior>
|
||||||
<Badge className='whitespace-nowrap cursor-pointer'>Movie advisor</Badge>
|
<Badge className='whitespace-nowrap cursor-pointer font-normal'>Movie advisor</Badge>
|
||||||
</Link>
|
</Link>
|
||||||
<Navigation className='hidden sm:flex' />
|
<DesktopNavigation />
|
||||||
<div className='flex items-center gap-2'>
|
<div className='flex items-center gap-2'>
|
||||||
|
<div id='actions' className='empty:hidden' />
|
||||||
<ToggleTheme />
|
<ToggleTheme />
|
||||||
<ToggleSearch />
|
<ToggleSearch />
|
||||||
<div id='actions' className='empty:hidden' />
|
<MobileNavigation />
|
||||||
<NavigationSmall className='flex sm:hidden' />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+18
-19
@@ -1,19 +1,19 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { motion } from 'framer-motion';
|
|
||||||
|
|
||||||
import useFavorites, { useFavoritesMutation } from '@/app/(site)/favorites/useFavorites';
|
import useFavorites, { useFavoritesMutation } from '@/app/(site)/favorites/useFavorites';
|
||||||
import Poster from '@/components/Movie/components/Poster';
|
import Poster from '@/components/Movie/components/Poster';
|
||||||
import Rating from '@/components/Movie/components/Rating';
|
import Rating from '@/components/Movie/components/Rating';
|
||||||
import Title from '@/components/Movie/components/Title';
|
import Title from '@/components/Movie/components/Title';
|
||||||
|
import { AspectRatio } from '@/components/ui/aspect-ratio';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
movie?: Movie;
|
movie?: Movie;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
fit?: boolean;
|
className?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Card: FC<Props> = ({ movie, onClick, fit }) => {
|
const Card: FC<Props> = ({ movie, onClick, className }) => {
|
||||||
const { add, remove } = useFavoritesMutation();
|
const { add, remove } = useFavoritesMutation();
|
||||||
const { map } = useFavorites();
|
const { map } = useFavorites();
|
||||||
|
|
||||||
@@ -24,30 +24,27 @@ const Card: FC<Props> = ({ movie, onClick, fit }) => {
|
|||||||
const handleToggleFavorite = () => (isFavorite ? remove(movie.id) : add(movie));
|
const handleToggleFavorite = () => (isFavorite ? remove(movie.id) : add(movie));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className='xs:w-[300px] xs:h-[450px] w-full h-full shrink-0'>
|
||||||
|
<AspectRatio ratio={2 / 3}>
|
||||||
<div
|
<div
|
||||||
|
onClick={onClick}
|
||||||
onDoubleClick={handleToggleFavorite}
|
onDoubleClick={handleToggleFavorite}
|
||||||
className={cn(
|
className={cn(
|
||||||
'w-[300px] h-[450px] shrink-0 mx-auto relative',
|
'h-full relative bg-card text-card-foreground shadow-sm transition-shadow hover:shadow-lg overflow-hidden rounded-lg',
|
||||||
fit ? 'xs:w-[300px] xs:h-[450px] w-full h-full aspect-w-2 aspect-h-3' : undefined
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<motion.div className='absolute top-0 left-0 flex flex-col w-full h-full mx-auto bg-card text-card-foreground shadow-sm transition-shadow hover:shadow-lg overflow-hidden rounded-lg'>
|
<div className='flex w-full h-full'>
|
||||||
<motion.div onTap={onClick} className='flex w-full h-full'>
|
<Poster title={movie?.name || movie.title} poster={movie.poster_path} />
|
||||||
<Poster title={movie?.name || movie.title} size={100} poster={movie.poster_path} />
|
</div>
|
||||||
</motion.div>
|
<div className='text-white absolute w-full h-full top-0 left-0 rounded-md flex flex-col justify-between p-2 card-gradient'>
|
||||||
<div className='absolute left-0 top-0 w-full h-20 bg-gradient-to-t from-transparent to-black opacity-75 rounded-t-lg'>
|
<div className='grid items-center grid-cols-[1fr_50px] mt-[-5px] opacity-75'>
|
||||||
<div className='h-full w-full mx-auto pt-1 px-3 text-white'>
|
|
||||||
<div className='grid items-center grid-cols-[1fr_50px]'>
|
|
||||||
<Title key={movie?.name || movie.title} title={movie?.name || movie.title} />
|
<Title key={movie?.name || movie.title} title={movie?.name || movie.title} />
|
||||||
{movie.release_date && (
|
{movie.release_date && (
|
||||||
<span className='flex justify-end text-lg font-semibold'>
|
<span className='flex justify-end text-lg'>{new Date(movie.release_date).getFullYear()}</span>
|
||||||
{new Date(movie.release_date).getFullYear()}
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div className='opacity-75 mb-[-5px]'>
|
||||||
</div>
|
|
||||||
<div className='absolute left-0 bottom-0 w-full bg-gradient-to-t from-black to-transparent h-20 text-white p-3 pb-2 flex flex-col justify-end opacity-75'>
|
|
||||||
<Rating
|
<Rating
|
||||||
isFavorite={isFavorite}
|
isFavorite={isFavorite}
|
||||||
toggleFavorite={handleToggleFavorite}
|
toggleFavorite={handleToggleFavorite}
|
||||||
@@ -55,7 +52,9 @@ const Card: FC<Props> = ({ movie, onClick, fit }) => {
|
|||||||
iconsFillColor='fill-white'
|
iconsFillColor='fill-white'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</motion.div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</AspectRatio>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
+32
-44
@@ -1,5 +1,5 @@
|
|||||||
import { FC, Fragment, useLayoutEffect, useMemo, useState } from 'react';
|
import { FC, forwardRef, useMemo } from 'react';
|
||||||
import { motion } from 'framer-motion';
|
import { VirtuosoGrid, VirtuosoGridProps } from 'react-virtuoso';
|
||||||
|
|
||||||
import Card from '@/components/Movie/Card';
|
import Card from '@/components/Movie/Card';
|
||||||
import { showPreviewModal } from '@/components/Movie/Preview';
|
import { showPreviewModal } from '@/components/Movie/Preview';
|
||||||
@@ -31,6 +31,18 @@ const item = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const components: VirtuosoGridProps<Movie, { shows: Movie[]; onClick: (movie: Movie) => void }>['components'] = {
|
||||||
|
List: forwardRef(function List(props, ref) {
|
||||||
|
return <div {...props} className='flex gap-3 flex-wrap justify-center grow empty:hidden' ref={ref} />;
|
||||||
|
}),
|
||||||
|
Item: ({ context, 'data-index': index }) => {
|
||||||
|
const { shows, onClick } = context || {};
|
||||||
|
const movie = shows?.[index];
|
||||||
|
|
||||||
|
return <Card movie={movie} onClick={() => onClick?.(movie!)} />;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
const List: FC<Props> = ({
|
const List: FC<Props> = ({
|
||||||
pages,
|
pages,
|
||||||
hasNextPage,
|
hasNextPage,
|
||||||
@@ -39,27 +51,6 @@ const List: FC<Props> = ({
|
|||||||
onPreviewClose,
|
onPreviewClose,
|
||||||
type = 'movie'
|
type = 'movie'
|
||||||
}) => {
|
}) => {
|
||||||
const [loader, setLoader] = useState<HTMLLIElement>();
|
|
||||||
|
|
||||||
useLayoutEffect(() => {
|
|
||||||
if (!loader || !hasNextPage) return;
|
|
||||||
|
|
||||||
const observer = new IntersectionObserver(
|
|
||||||
([{ isIntersecting }]) => {
|
|
||||||
if (!isIntersecting) return;
|
|
||||||
|
|
||||||
fetchNextPage?.();
|
|
||||||
},
|
|
||||||
{
|
|
||||||
threshold: 1
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
observer.observe(loader);
|
|
||||||
|
|
||||||
return () => observer.disconnect();
|
|
||||||
}, [fetchNextPage, loader, hasNextPage]);
|
|
||||||
|
|
||||||
const shows = useMemo(
|
const shows = useMemo(
|
||||||
() =>
|
() =>
|
||||||
pages?.reduce((shows, page) => {
|
pages?.reduce((shows, page) => {
|
||||||
@@ -71,29 +62,26 @@ const List: FC<Props> = ({
|
|||||||
|
|
||||||
if (!shows.length) return null;
|
if (!shows.length) return null;
|
||||||
|
|
||||||
return (
|
const context = {
|
||||||
<>
|
shows,
|
||||||
<motion.ul
|
onClick: (movie: Movie) => showPreviewModal({ movie, onClose: onPreviewClose, type })
|
||||||
className='flex gap-3 flex-wrap justify-center grow empty:hidden'
|
};
|
||||||
variants={container}
|
|
||||||
initial={pages.length === 1 ? 'hidden' : false}
|
const handleFetchMore = () => {
|
||||||
animate='visible'
|
if (!hasNextPage) return;
|
||||||
>
|
fetchNextPage?.();
|
||||||
{shows?.map((movie, index, array) => {
|
};
|
||||||
const isAnchor = Math.round(array.length / 2) === index;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<motion.li
|
<>
|
||||||
key={movie.id}
|
<VirtuosoGrid
|
||||||
variants={item}
|
useWindowScroll
|
||||||
className='flex xs:w-auto w-full cursor-pointer'
|
totalCount={shows.length}
|
||||||
ref={isAnchor ? (element) => setLoader(element!) : undefined}
|
endReached={handleFetchMore}
|
||||||
>
|
data={shows}
|
||||||
<Card fit movie={movie} onClick={() => showPreviewModal({ movie, onClose: onPreviewClose, type })} />
|
context={context}
|
||||||
</motion.li>
|
components={components}
|
||||||
);
|
/>
|
||||||
})}
|
|
||||||
</motion.ul>
|
|
||||||
{withBottomGap && <div className='h-2 w-full' />}
|
{withBottomGap && <div className='h-2 w-full' />}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import Card from '../Card';
|
|||||||
import Actions from './components/Actions';
|
import Actions from './components/Actions';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
fit?: boolean;
|
|
||||||
movie?: Movie;
|
movie?: Movie;
|
||||||
className?: string;
|
className?: string;
|
||||||
onClose?: () => void;
|
onClose?: () => void;
|
||||||
@@ -22,37 +21,34 @@ interface Props {
|
|||||||
type?: ShowType;
|
type?: ShowType;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Preview: FC<Props> = ({ movie, className, onClose, children, card, fit, type = 'movie' }) => {
|
const Preview: FC<Props> = ({ movie, className, onClose, children, card, type = 'movie' }) => {
|
||||||
if (!movie) return null;
|
if (!movie) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn('rounded-xl text-card-foreground', { 'p-2': Boolean(onClose) }, className)}>
|
<div className={cn('rounded-xl text-card-foreground', { 'p-2': Boolean(onClose) }, className)}>
|
||||||
<div className='flex flex-col lg:flex-row max-w-[100%] gap-2'>
|
<div className='flex flex-col md:flex-row max-w-[100%] gap-2'>
|
||||||
{card || (
|
{card || <Card className='mx-auto' movie={movie} />}
|
||||||
<div className='xs:w-[300px] w-full shrink-0 mx-auto'>
|
|
||||||
<Card fit={fit} movie={movie} />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
<div className='flex flex-col grow'>
|
<div className='flex flex-col grow'>
|
||||||
{children && <div className='flex hover-none:hidden w-full max-sm:mb-0 mb-2 gap-2'>{children}</div>}
|
{children && <div className='flex hover-none:hidden w-full max-sm:mb-0 mb-2 gap-2'>{children}</div>}
|
||||||
<div className='flex w-full gap-2'>
|
<div className='flex w-full gap-2'>
|
||||||
<Actions type={type} movie={movie} onClose={onClose} />
|
<Actions type={type} movie={movie} onClose={onClose} />
|
||||||
</div>
|
</div>
|
||||||
<Separator className='my-2' />
|
<Separator className='my-2' />
|
||||||
<p key={movie.id} className='leading-7'>
|
<p key={movie.id} className='leading-7 mb-3'>
|
||||||
{movie.overview}
|
{movie.overview}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
<div className='mt-auto grid grid-cols-1 rounded-lg'>
|
||||||
</div>
|
|
||||||
<Credits type={type} movieId={movie.id} onPersonClick={onClose} />
|
<Credits type={type} movieId={movie.id} onPersonClick={onClose} />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const showPreviewModal = create(({ onResolve, onClose, movie, type = 'movie' }: Props & InstanceProps<void>) => (
|
export const showPreviewModal = create(({ onResolve, onClose, movie, type = 'movie' }: Props & InstanceProps<void>) => (
|
||||||
<Modal className='block p-0' onClose={onResolve}>
|
<Modal className='block p-0' onClose={onResolve}>
|
||||||
<Preview
|
<Preview
|
||||||
fit
|
|
||||||
type={type}
|
type={type}
|
||||||
movie={movie}
|
movie={movie}
|
||||||
className='border-none'
|
className='border-none'
|
||||||
|
|||||||
@@ -37,8 +37,13 @@ const Credits: FC<Props> = ({ movieId, onPersonClick, type = 'movie' }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
Boolean(credits?.length) && (
|
Boolean(credits?.length) && (
|
||||||
<div className='overflow-auto no-scrollbar max-w-[100%] py-2 pb-3 mb-[-0.75rem]'>
|
<motion.ul
|
||||||
<motion.ul className='flex gap-3' variants={container} initial='hidden' animate='visible' whileInView='visible'>
|
className='flex gap-2 no-scrollbar overflow-auto rounded-lg snap-mandatory snap-x'
|
||||||
|
variants={container}
|
||||||
|
initial='hidden'
|
||||||
|
animate='visible'
|
||||||
|
whileInView='visible'
|
||||||
|
>
|
||||||
{credits?.map((actor) => (
|
{credits?.map((actor) => (
|
||||||
<motion.li
|
<motion.li
|
||||||
variants={item}
|
variants={item}
|
||||||
@@ -48,31 +53,32 @@ const Credits: FC<Props> = ({ movieId, onPersonClick, type = 'movie' }) => {
|
|||||||
router.push(`/starring?actorId=${actor.id}&title=${encodeURIComponent(actor.name)}`);
|
router.push(`/starring?actorId=${actor.id}&title=${encodeURIComponent(actor.name)}`);
|
||||||
onPersonClick?.(actor.id.toString());
|
onPersonClick?.(actor.id.toString());
|
||||||
}}
|
}}
|
||||||
className='p-2 rounded-lg border bg-card text-card-foreground self-end max-w-[150px] w-full shrink-0 cursor-pointer transition-shadow hover:shadow-lg'
|
className='bg-card text-card-foreground self-end max-w-[120px] w-full shrink-0 cursor-pointer transition-shadow hover:shadow-lg relative snap-start'
|
||||||
>
|
>
|
||||||
{Boolean(actor.character) && (
|
<div className='rounded-lg overflow-hidden'>
|
||||||
<p className='pb-2 overflow-ellipsis whitespace-nowrap overflow-hidden'>{actor.character}</p>
|
|
||||||
)}
|
|
||||||
<div className='rounded-md overflow-hidden'>
|
|
||||||
{actor.profile_path ? (
|
{actor.profile_path ? (
|
||||||
<Image
|
<Image
|
||||||
unoptimized
|
unoptimized
|
||||||
height={225}
|
height={180}
|
||||||
width={150}
|
width={120}
|
||||||
src={`https://image.tmdb.org/t/p/w500/${actor.profile_path}`}
|
src={`https://image.tmdb.org/t/p/w500/${actor.profile_path}`}
|
||||||
alt={actor.name}
|
alt={actor.name}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className='w-[132px] h-[198px] flex items-center justify-center rounded-lg border'>
|
<div className='h-[180px] w-[120px] flex items-center justify-center rounded-lg'>
|
||||||
<User2 size={120} strokeWidth={1} />
|
<User2 size={120} strokeWidth={1} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<p className='pt-2 overflow-ellipsis whitespace-nowrap overflow-hidden'>{actor.name}</p>
|
<div className='text-white text-sm absolute w-full h-full top-0 left-0 rounded-md flex flex-col justify-between p-2 py-1 card-gradient'>
|
||||||
|
<p className=' overflow-ellipsis whitespace-nowrap overflow-hidden'>{actor.name}</p>
|
||||||
|
{Boolean(actor.character) && (
|
||||||
|
<p className='overflow-ellipsis whitespace-nowrap overflow-hidden'>{actor.character}</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</motion.li>
|
</motion.li>
|
||||||
))}
|
))}
|
||||||
</motion.ul>
|
</motion.ul>
|
||||||
</div>
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -4,19 +4,18 @@ import { ImageOff } from 'lucide-react';
|
|||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
poster: string;
|
poster: string;
|
||||||
size: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Poster: FC<Props> = ({ title, poster, size = 250 }) => {
|
const Poster: FC<Props> = ({ title, poster }) => {
|
||||||
return poster ? (
|
return poster ? (
|
||||||
<img
|
<img
|
||||||
className='rounded-lg w-full h-full object-fill'
|
className='rounded-lg w-full h-full object-cover'
|
||||||
src={`https://image.tmdb.org/t/p/w500/${poster}`}
|
src={`https://image.tmdb.org/t/p/w500/${poster}`}
|
||||||
alt={title}
|
alt={title}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className={'w-full flex items-center justify-center rounded-lg grow'}>
|
<div className={'w-full flex items-center justify-center rounded-lg grow'}>
|
||||||
<ImageOff size={size} strokeWidth={1} color='hsl(215.4 16.3% 46.9%)' />
|
<ImageOff size={100} strokeWidth={1} color='hsl(215.4 16.3% 46.9%)' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const Rating: FC<Props> = ({ isFavorite, rating, toggleFavorite, iconsFillColor
|
|||||||
</motion.span>
|
</motion.span>
|
||||||
<span className='flex items-center'>
|
<span className='flex items-center'>
|
||||||
<Star size={18} className={`mr-1 ${iconsFillColor}`} />
|
<Star size={18} className={`mr-1 ${iconsFillColor}`} />
|
||||||
<span className='font-semibold'>{rating?.toFixed(1)}</span>
|
<p className='mt-[3px]'>{rating?.toFixed(1)}</p>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
||||||
|
|
||||||
|
const AspectRatio = AspectRatioPrimitive.Root;
|
||||||
|
|
||||||
|
export { AspectRatio };
|
||||||
@@ -154,6 +154,9 @@ const Modal: React.FC<{
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={handleClose}>
|
<Dialog open={open} onOpenChange={handleClose}>
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle />
|
||||||
|
</DialogHeader>
|
||||||
<DialogContent forceMount onClose={handleClose} className={className}>
|
<DialogContent forceMount onClose={handleClose} className={className}>
|
||||||
{children}
|
{children}
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
|
|||||||
@@ -0,0 +1,89 @@
|
|||||||
|
'use client';
|
||||||
|
|
||||||
|
import * as React from 'react';
|
||||||
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
||||||
|
|
||||||
|
import { cn } from '@/lib/utils';
|
||||||
|
|
||||||
|
const Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
|
||||||
|
<DrawerPrimitive.Root shouldScaleBackground={shouldScaleBackground} {...props} />
|
||||||
|
);
|
||||||
|
Drawer.displayName = 'Drawer';
|
||||||
|
|
||||||
|
const DrawerTrigger = DrawerPrimitive.Trigger;
|
||||||
|
|
||||||
|
const DrawerPortal = DrawerPrimitive.Portal;
|
||||||
|
|
||||||
|
const DrawerClose = DrawerPrimitive.Close;
|
||||||
|
|
||||||
|
const DrawerOverlay = React.forwardRef<
|
||||||
|
React.ElementRef<typeof DrawerPrimitive.Overlay>,
|
||||||
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
|
||||||
|
>(({ className, ...props }, ref) => (
|
||||||
|
<DrawerPrimitive.Overlay ref={ref} className={cn('fixed inset-0 z-50 bg-black/80', className)} {...props} />
|
||||||
|
));
|
||||||
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
||||||
|
|
||||||
|
const DrawerContent = React.forwardRef<
|
||||||
|
React.ElementRef<typeof DrawerPrimitive.Content>,
|
||||||
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
|
||||||
|
>(({ className, children, ...props }, ref) => (
|
||||||
|
<DrawerPortal>
|
||||||
|
<DrawerOverlay />
|
||||||
|
<DrawerPrimitive.Content
|
||||||
|
ref={ref}
|
||||||
|
className={cn(
|
||||||
|
'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background',
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
<div className='mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted' />
|
||||||
|
{children}
|
||||||
|
</DrawerPrimitive.Content>
|
||||||
|
</DrawerPortal>
|
||||||
|
));
|
||||||
|
DrawerContent.displayName = 'DrawerContent';
|
||||||
|
|
||||||
|
const DrawerHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
||||||
|
<div className={cn('grid gap-1.5 p-4 text-center sm:text-left', className)} {...props} />
|
||||||
|
);
|
||||||
|
DrawerHeader.displayName = 'DrawerHeader';
|
||||||
|
|
||||||
|
const DrawerFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
|
||||||
|
<div className={cn('mt-auto flex flex-col gap-2 p-4', className)} {...props} />
|
||||||
|
);
|
||||||
|
DrawerFooter.displayName = 'DrawerFooter';
|
||||||
|
|
||||||
|
const DrawerTitle = React.forwardRef<
|
||||||
|
React.ElementRef<typeof DrawerPrimitive.Title>,
|
||||||
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
|
||||||
|
>(({ className, ...props }, ref) => (
|
||||||
|
<DrawerPrimitive.Title
|
||||||
|
ref={ref}
|
||||||
|
className={cn('text-lg font-semibold leading-none tracking-tight', className)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
));
|
||||||
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
||||||
|
|
||||||
|
const DrawerDescription = React.forwardRef<
|
||||||
|
React.ElementRef<typeof DrawerPrimitive.Description>,
|
||||||
|
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
|
||||||
|
>(({ className, ...props }, ref) => (
|
||||||
|
<DrawerPrimitive.Description ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />
|
||||||
|
));
|
||||||
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
||||||
|
|
||||||
|
export {
|
||||||
|
Drawer,
|
||||||
|
DrawerClose,
|
||||||
|
DrawerContent,
|
||||||
|
DrawerDescription,
|
||||||
|
DrawerFooter,
|
||||||
|
DrawerHeader,
|
||||||
|
DrawerOverlay,
|
||||||
|
DrawerPortal,
|
||||||
|
DrawerTitle,
|
||||||
|
DrawerTrigger
|
||||||
|
};
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
import * as React from 'react';
|
|
||||||
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
||||||
import { cva } from 'class-variance-authority';
|
|
||||||
import { ChevronDown } from 'lucide-react';
|
|
||||||
|
|
||||||
import { cn } from '@/lib/utils';
|
|
||||||
|
|
||||||
const NavigationMenu = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.Root>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Root>
|
|
||||||
>(({ className, children, ...props }, ref) => (
|
|
||||||
<NavigationMenuPrimitive.Root
|
|
||||||
ref={ref}
|
|
||||||
className={cn('relative z-10 flex max-w-max flex-1 items-center justify-center', className)}
|
|
||||||
{...props}
|
|
||||||
>
|
|
||||||
{children}
|
|
||||||
<NavigationMenuViewport />
|
|
||||||
</NavigationMenuPrimitive.Root>
|
|
||||||
));
|
|
||||||
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
||||||
|
|
||||||
const NavigationMenuList = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.List>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.List>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<NavigationMenuPrimitive.List
|
|
||||||
ref={ref}
|
|
||||||
className={cn('group flex flex-1 list-none items-center justify-center space-x-1', className)}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
||||||
|
|
||||||
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
||||||
|
|
||||||
const navigationMenuTriggerStyle = cva(
|
|
||||||
'group inline-flex h-10 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/90 data-[state=open]:bg-accent/50'
|
|
||||||
);
|
|
||||||
|
|
||||||
const NavigationMenuTrigger = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.Trigger>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Trigger>
|
|
||||||
>(({ className, children, ...props }, ref) => (
|
|
||||||
<NavigationMenuPrimitive.Trigger
|
|
||||||
ref={ref}
|
|
||||||
className={cn(navigationMenuTriggerStyle(), 'group', className)}
|
|
||||||
{...props}
|
|
||||||
>
|
|
||||||
{children}{' '}
|
|
||||||
<ChevronDown
|
|
||||||
className='relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180'
|
|
||||||
aria-hidden='true'
|
|
||||||
/>
|
|
||||||
</NavigationMenuPrimitive.Trigger>
|
|
||||||
));
|
|
||||||
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
||||||
|
|
||||||
const NavigationMenuContent = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.Content>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Content>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<NavigationMenuPrimitive.Content
|
|
||||||
ref={ref}
|
|
||||||
className={cn(
|
|
||||||
'left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ',
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
));
|
|
||||||
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
||||||
|
|
||||||
const NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
||||||
|
|
||||||
const NavigationMenuViewport = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.Viewport>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Viewport>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<div className={cn('absolute left-0 top-full flex justify-center')}>
|
|
||||||
<NavigationMenuPrimitive.Viewport
|
|
||||||
className={cn(
|
|
||||||
'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
ref={ref}
|
|
||||||
{...props}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
));
|
|
||||||
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
||||||
|
|
||||||
const NavigationMenuIndicator = React.forwardRef<
|
|
||||||
React.ElementRef<typeof NavigationMenuPrimitive.Indicator>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof NavigationMenuPrimitive.Indicator>
|
|
||||||
>(({ className, ...props }, ref) => (
|
|
||||||
<NavigationMenuPrimitive.Indicator
|
|
||||||
ref={ref}
|
|
||||||
className={cn(
|
|
||||||
'top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in',
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...props}
|
|
||||||
>
|
|
||||||
<div className='relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md' />
|
|
||||||
</NavigationMenuPrimitive.Indicator>
|
|
||||||
));
|
|
||||||
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
||||||
|
|
||||||
export {
|
|
||||||
NavigationMenu,
|
|
||||||
NavigationMenuContent,
|
|
||||||
NavigationMenuIndicator,
|
|
||||||
NavigationMenuItem,
|
|
||||||
NavigationMenuLink,
|
|
||||||
NavigationMenuList,
|
|
||||||
NavigationMenuTrigger,
|
|
||||||
navigationMenuTriggerStyle,
|
|
||||||
NavigationMenuViewport
|
|
||||||
};
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
'use client'
|
|
||||||
|
|
||||||
import * as React from 'react'
|
|
||||||
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'
|
|
||||||
|
|
||||||
import { cn } from '@/lib/utils'
|
|
||||||
|
|
||||||
const ScrollArea = React.forwardRef<
|
|
||||||
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
|
|
||||||
>(({ className, children, ...props }, ref) => (
|
|
||||||
<ScrollAreaPrimitive.Root
|
|
||||||
ref={ref}
|
|
||||||
className={cn('relative overflow-hidden', className)}
|
|
||||||
{...props}
|
|
||||||
>
|
|
||||||
<ScrollAreaPrimitive.Viewport className="h-full w-full rounded-[inherit]">
|
|
||||||
{children}
|
|
||||||
</ScrollAreaPrimitive.Viewport>
|
|
||||||
<ScrollBar />
|
|
||||||
<ScrollAreaPrimitive.Corner />
|
|
||||||
</ScrollAreaPrimitive.Root>
|
|
||||||
))
|
|
||||||
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
|
|
||||||
|
|
||||||
const ScrollBar = React.forwardRef<
|
|
||||||
React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
||||||
React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
||||||
>(({ className, orientation = 'vertical', ...props }, ref) => (
|
|
||||||
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
||||||
ref={ref}
|
|
||||||
orientation={orientation}
|
|
||||||
className={cn(
|
|
||||||
'flex touch-none select-none transition-colors',
|
|
||||||
orientation === 'vertical' &&
|
|
||||||
'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
|
||||||
orientation === 'horizontal' &&
|
|
||||||
'h-2.5 border-t border-t-transparent p-[1px]',
|
|
||||||
className
|
|
||||||
)}
|
|
||||||
{...props}
|
|
||||||
>
|
|
||||||
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
|
|
||||||
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
||||||
))
|
|
||||||
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
|
|
||||||
|
|
||||||
export { ScrollArea, ScrollBar }
|
|
||||||
+16
-8
@@ -1,15 +1,23 @@
|
|||||||
import axios, { AxiosResponse } from 'axios';
|
class Server {
|
||||||
|
get<T>(url: string, {params}: { params?: Record<string, unknown> } = {}): Promise<T> {
|
||||||
|
const base = 'https://api.themoviedb.org/3';
|
||||||
|
|
||||||
export const server = axios.create({
|
const serializedParams = Object.entries(params || {}).reduce((params, [key, value]) => {
|
||||||
baseURL: 'https://api.themoviedb.org/3',
|
if (!['', undefined, null].includes(value as string)) {
|
||||||
|
params.set(key, value as string);
|
||||||
|
}
|
||||||
|
return params;
|
||||||
|
}, new URLSearchParams());
|
||||||
|
|
||||||
|
return fetch(`${base}${url}?${serializedParams}`, {
|
||||||
|
cache: 'force-cache',
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${process.env.MOVIE_DB_TOKEN}`,
|
Authorization: `Bearer ${process.env.MOVIE_DB_TOKEN}`,
|
||||||
accept: 'application/json'
|
|
||||||
}
|
}
|
||||||
});
|
}).then(response => response.json());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const handleResponse = (response: AxiosResponse): AxiosResponse['data'] => response.data;
|
export const server = new Server();
|
||||||
|
|
||||||
server.interceptors.response.use(handleResponse);
|
|
||||||
|
|
||||||
export default server;
|
export default server;
|
||||||
Generated
+521
-92
@@ -8,7 +8,8 @@
|
|||||||
"name": "movie-advisor",
|
"name": "movie-advisor",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-dialog": "^1.0.5",
|
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
||||||
|
"@radix-ui/react-dialog": "^1.1.1",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
||||||
"@radix-ui/react-hover-card": "^1.0.7",
|
"@radix-ui/react-hover-card": "^1.0.7",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
@@ -43,11 +44,12 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-fast-marquee": "^1.6.0",
|
"react-fast-marquee": "^1.6.0",
|
||||||
"react-modal-promise": "^1.0.2",
|
"react-modal-promise": "^1.0.2",
|
||||||
|
"react-virtuoso": "^4.10.1",
|
||||||
"swiper": "^11.0.7",
|
"swiper": "^11.0.7",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss-animate": "^1.0.6",
|
"tailwindcss-animate": "^1.0.6",
|
||||||
"typescript": "5.1.6",
|
"typescript": "5.1.6",
|
||||||
"vaul": "^0.8.0"
|
"vaul": "^0.8.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/aspect-ratio": "^0.4.2",
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
||||||
@@ -589,6 +591,81 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@radix-ui/react-aspect-ratio": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-dP87DM/Y7jFlPgUZTlhx6FF5CEzOiaxp2rBCKlaXlpH5Ip/9Fg5zZ9lDOQ5o/MOfUlf36eak14zoWYpgcgGoOg==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-primitive": "2.0.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"@types/react-dom": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/react-dom": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-aspect-ratio/node_modules/@radix-ui/react-compose-refs": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-aspect-ratio/node_modules/@radix-ui/react-primitive": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-slot": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"@types/react-dom": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/react-dom": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-aspect-ratio/node_modules/@radix-ui/react-slot": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@radix-ui/react-collection": {
|
"node_modules/@radix-ui/react-collection": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",
|
||||||
@@ -650,31 +727,30 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@radix-ui/react-dialog": {
|
"node_modules/@radix-ui/react-dialog": {
|
||||||
"version": "1.0.5",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.1.tgz",
|
||||||
"integrity": "sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==",
|
"integrity": "sha512-zysS+iU4YP3STKNS6USvFVqI4qqx8EpiwmT5TuCApVEBca+eRCbONi4EgzfNSuVnOXvC5UPHHMjs8RXO6DH9Bg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/primitive": "1.1.0",
|
||||||
"@radix-ui/primitive": "1.0.1",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-context": "1.1.0",
|
||||||
"@radix-ui/react-context": "1.0.1",
|
"@radix-ui/react-dismissable-layer": "1.1.0",
|
||||||
"@radix-ui/react-dismissable-layer": "1.0.5",
|
"@radix-ui/react-focus-guards": "1.1.0",
|
||||||
"@radix-ui/react-focus-guards": "1.0.1",
|
"@radix-ui/react-focus-scope": "1.1.0",
|
||||||
"@radix-ui/react-focus-scope": "1.0.4",
|
"@radix-ui/react-id": "1.1.0",
|
||||||
"@radix-ui/react-id": "1.0.1",
|
"@radix-ui/react-portal": "1.1.1",
|
||||||
"@radix-ui/react-portal": "1.0.4",
|
"@radix-ui/react-presence": "1.1.0",
|
||||||
"@radix-ui/react-presence": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-slot": "1.1.0",
|
||||||
"@radix-ui/react-slot": "1.0.2",
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
||||||
"@radix-ui/react-use-controllable-state": "1.0.1",
|
|
||||||
"aria-hidden": "^1.1.1",
|
"aria-hidden": "^1.1.1",
|
||||||
"react-remove-scroll": "2.5.5"
|
"react-remove-scroll": "2.5.7"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/react-dom": "*",
|
"@types/react-dom": "*",
|
||||||
"react": "^16.8 || ^17.0 || ^18.0",
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@types/react": {
|
"@types/react": {
|
||||||
@@ -685,23 +761,55 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA=="
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer": {
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer": {
|
||||||
"version": "1.0.5",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.0.tgz",
|
||||||
"integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==",
|
"integrity": "sha512-/UovfmmXGptwGcBQawLzvn2jOfM0t4z3/uKffoBlj724+n3FvBbZ7M0aaBOmkp6pqFYpO4yx8tSVJjx3Fl2jig==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/primitive": "1.1.0",
|
||||||
"@radix-ui/primitive": "1.0.1",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-use-callback-ref": "1.1.0",
|
||||||
"@radix-ui/react-use-callback-ref": "1.0.1",
|
"@radix-ui/react-use-escape-keydown": "1.1.0"
|
||||||
"@radix-ui/react-use-escape-keydown": "1.0.3"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/react-dom": "*",
|
"@types/react-dom": "*",
|
||||||
"react": "^16.8 || ^17.0 || ^18.0",
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@types/react": {
|
"@types/react": {
|
||||||
@@ -712,21 +820,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-w6XZNUPVv6xCpZUqb/yN9DL6auvpGX3C/ee6Hdi16v2UUy25HV2Q5bcflsiDyT/g5RwbPQ/GIT1vLkeRb+ITBw==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope": {
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope": {
|
||||||
"version": "1.0.4",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.0.tgz",
|
||||||
"integrity": "sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==",
|
"integrity": "sha512-200UD8zylvEyL8Bx+z76RJnASR2gRMuxlgFCPAe/Q/679a/r0eK3MBVYMb7vZODZcffZBdob1EGnky78xmVvcA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
"@radix-ui/react-use-callback-ref": "1.0.1"
|
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/react-dom": "*",
|
"@types/react-dom": "*",
|
||||||
"react": "^16.8 || ^17.0 || ^18.0",
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@types/react": {
|
"@types/react": {
|
||||||
@@ -737,19 +858,36 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal": {
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal": {
|
||||||
"version": "1.0.4",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.1.tgz",
|
||||||
"integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==",
|
"integrity": "sha512-A3UtLk85UtqhzFqtoC8Q0KvR2GbXF3mtPgACSazajqq6A41mEQgo53iPzY4i6BwDxlIFqWIhiQ2G729n+2aw/g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3"
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/react-dom": "*",
|
"@types/react-dom": "*",
|
||||||
"react": "^16.8 || ^17.0 || ^18.0",
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
"react-dom": "^16.8 || ^17.0 || ^18.0"
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@types/react": {
|
"@types/react": {
|
||||||
@@ -760,6 +898,154 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"@types/react-dom": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/react-dom": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-slot": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"@types/react-dom": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
|
||||||
|
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"@types/react-dom": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-escape-keydown": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==",
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==",
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "*",
|
||||||
|
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll": {
|
||||||
|
"version": "2.5.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.7.tgz",
|
||||||
|
"integrity": "sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==",
|
||||||
|
"dependencies": {
|
||||||
|
"react-remove-scroll-bar": "^2.3.4",
|
||||||
|
"react-style-singleton": "^2.2.1",
|
||||||
|
"tslib": "^2.1.0",
|
||||||
|
"use-callback-ref": "^1.3.0",
|
||||||
|
"use-sidecar": "^1.1.2"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||||
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||||
|
},
|
||||||
|
"peerDependenciesMeta": {
|
||||||
|
"@types/react": {
|
||||||
|
"optional": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@radix-ui/react-direction": {
|
"node_modules/@radix-ui/react-direction": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.1.tgz",
|
||||||
@@ -5882,6 +6168,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-virtuoso": {
|
||||||
|
"version": "4.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-4.10.1.tgz",
|
||||||
|
"integrity": "sha512-vDBt9AarmCjPNshw3VxPXW355ZQKSO0p9vrAJ0pi04TB6aXk+qHWTu8NuaQ3ppcd/Ub1r5ryRA4fJ2QGuH0H0g==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16 || >=17 || >= 18",
|
||||||
|
"react-dom": ">=16 || >=17 || >= 18"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/read-cache": {
|
"node_modules/read-cache": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
||||||
@@ -6904,9 +7202,9 @@
|
|||||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
||||||
},
|
},
|
||||||
"node_modules/vaul": {
|
"node_modules/vaul": {
|
||||||
"version": "0.8.0",
|
"version": "0.8.9",
|
||||||
"resolved": "https://registry.npmjs.org/vaul/-/vaul-0.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/vaul/-/vaul-0.8.9.tgz",
|
||||||
"integrity": "sha512-9nUU2jIObJvJZxeQU1oVr/syKo5XqbRoOMoTEt0hHlWify4QZFlqTh6QSN/yxoKzNrMeEQzxbc3XC/vkPLOIqw==",
|
"integrity": "sha512-gpmtmZRWDPP6niQh14JfRIFUYZVyfvAWyA/7rUINOfNlO/2K7uEvI5rLXEXkxZIRFyUZj+TPHLFMirkegPHjrw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-dialog": "^1.0.4"
|
"@radix-ui/react-dialog": "^1.0.4"
|
||||||
},
|
},
|
||||||
@@ -7453,6 +7751,38 @@
|
|||||||
"@radix-ui/react-primitive": "1.0.3"
|
"@radix-ui/react-primitive": "1.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@radix-ui/react-aspect-ratio": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-aspect-ratio/-/react-aspect-ratio-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-dP87DM/Y7jFlPgUZTlhx6FF5CEzOiaxp2rBCKlaXlpH5Ip/9Fg5zZ9lDOQ5o/MOfUlf36eak14zoWYpgcgGoOg==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-primitive": "2.0.0"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-compose-refs": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-primitive": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-slot": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-slot": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"@radix-ui/react-collection": {
|
"@radix-ui/react-collection": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.0.3.tgz",
|
||||||
@@ -7482,58 +7812,151 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@radix-ui/react-dialog": {
|
"@radix-ui/react-dialog": {
|
||||||
"version": "1.0.5",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-dialog/-/react-dialog-1.1.1.tgz",
|
||||||
"integrity": "sha512-GjWJX/AUpB703eEBanuBnIWdIXg6NvJFCXcNlSZk4xdszCdhrJgBoUd1cGk67vFO+WdA2pfI/plOpqz/5GUP6Q==",
|
"integrity": "sha512-zysS+iU4YP3STKNS6USvFVqI4qqx8EpiwmT5TuCApVEBca+eRCbONi4EgzfNSuVnOXvC5UPHHMjs8RXO6DH9Bg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/primitive": "1.1.0",
|
||||||
"@radix-ui/primitive": "1.0.1",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-context": "1.1.0",
|
||||||
"@radix-ui/react-context": "1.0.1",
|
"@radix-ui/react-dismissable-layer": "1.1.0",
|
||||||
"@radix-ui/react-dismissable-layer": "1.0.5",
|
"@radix-ui/react-focus-guards": "1.1.0",
|
||||||
"@radix-ui/react-focus-guards": "1.0.1",
|
"@radix-ui/react-focus-scope": "1.1.0",
|
||||||
"@radix-ui/react-focus-scope": "1.0.4",
|
"@radix-ui/react-id": "1.1.0",
|
||||||
"@radix-ui/react-id": "1.0.1",
|
"@radix-ui/react-portal": "1.1.1",
|
||||||
"@radix-ui/react-portal": "1.0.4",
|
"@radix-ui/react-presence": "1.1.0",
|
||||||
"@radix-ui/react-presence": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-slot": "1.1.0",
|
||||||
"@radix-ui/react-slot": "1.0.2",
|
"@radix-ui/react-use-controllable-state": "1.1.0",
|
||||||
"@radix-ui/react-use-controllable-state": "1.0.1",
|
|
||||||
"aria-hidden": "^1.1.1",
|
"aria-hidden": "^1.1.1",
|
||||||
"react-remove-scroll": "2.5.5"
|
"react-remove-scroll": "2.5.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@radix-ui/primitive": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-4Z8dn6Upk0qk4P74xBhZ6Hd/w0mPEzOOLxy4xiPXOXqjF7jZS0VAKk7/x/H6FyY2zCkYJqePf1G5KmkmNJ4RBA=="
|
||||||
|
},
|
||||||
|
"@radix-ui/react-compose-refs": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-b4inOtiaOnYf9KWyO3jAeeCG6FeyfY6ldiEPanbUjWd+xIk5wZeHa8yVwmrJ2vderhu/BQvzCrJI0lHd+wIiqw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-context": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-OKrckBy+sMEgYM/sMmqmErVn0kZqrHPJze+Ql3DzYsDDp0hl0L62nx/2122/Bvps1qz645jlcu2tD9lrRSdf8A==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"@radix-ui/react-dismissable-layer": {
|
"@radix-ui/react-dismissable-layer": {
|
||||||
"version": "1.0.5",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.1.0.tgz",
|
||||||
"integrity": "sha512-aJeDjQhywg9LBu2t/At58hCvr7pEm0o2Ke1x33B+MhjNmmZ17sy4KImo0KPLgsnc/zN7GPdce8Cnn0SWvwZO7g==",
|
"integrity": "sha512-/UovfmmXGptwGcBQawLzvn2jOfM0t4z3/uKffoBlj724+n3FvBbZ7M0aaBOmkp6pqFYpO4yx8tSVJjx3Fl2jig==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/primitive": "1.1.0",
|
||||||
"@radix-ui/primitive": "1.0.1",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-use-callback-ref": "1.1.0",
|
||||||
"@radix-ui/react-use-callback-ref": "1.0.1",
|
"@radix-ui/react-use-escape-keydown": "1.1.0"
|
||||||
"@radix-ui/react-use-escape-keydown": "1.0.3"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@radix-ui/react-focus-guards": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-guards/-/react-focus-guards-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-w6XZNUPVv6xCpZUqb/yN9DL6auvpGX3C/ee6Hdi16v2UUy25HV2Q5bcflsiDyT/g5RwbPQ/GIT1vLkeRb+ITBw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"@radix-ui/react-focus-scope": {
|
"@radix-ui/react-focus-scope": {
|
||||||
"version": "1.0.4",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-focus-scope/-/react-focus-scope-1.1.0.tgz",
|
||||||
"integrity": "sha512-sL04Mgvf+FmyvZeYfNu1EPAaaxD+aw7cYeIB9L9Fvq8+urhltTRaEo5ysKOpHuKPclsZcSUMKlN05x4u+CINpA==",
|
"integrity": "sha512-200UD8zylvEyL8Bx+z76RJnASR2gRMuxlgFCPAe/Q/679a/r0eK3MBVYMb7vZODZcffZBdob1EGnky78xmVvcA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
"@radix-ui/react-compose-refs": "1.0.1",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3",
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
"@radix-ui/react-use-callback-ref": "1.0.1"
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-id": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-EJUrI8yYh7WOjNOqpoJaf1jlFIH2LvtgAl+YcFqNCa+4hj64ZXmPkAKOFs/ukjz3byN6bdb/AVUqHkI8/uWWMA==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@radix-ui/react-portal": {
|
"@radix-ui/react-portal": {
|
||||||
"version": "1.0.4",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.0.4.tgz",
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-portal/-/react-portal-1.1.1.tgz",
|
||||||
"integrity": "sha512-Qki+C/EuGUVCQTOTD5vzJzJuMUlewbzuKyUy+/iHM2uwGiru9gZeBJtHAPKAEkB5KWGi9mP/CHKcY0wt1aW45Q==",
|
"integrity": "sha512-A3UtLk85UtqhzFqtoC8Q0KvR2GbXF3mtPgACSazajqq6A41mEQgo53iPzY4i6BwDxlIFqWIhiQ2G729n+2aw/g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/runtime": "^7.13.10",
|
"@radix-ui/react-primitive": "2.0.0",
|
||||||
"@radix-ui/react-primitive": "1.0.3"
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-presence": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-Gq6wuRN/asf9H/E/VzdKoUtT8GC9PQc9z40/vEr0VCJ4u5XvvhWIrSsCB6vD2/cH7ugTdSfYq9fLJCcM00acrQ==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0",
|
||||||
|
"@radix-ui/react-use-layout-effect": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-primitive": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.0.tgz",
|
||||||
|
"integrity": "sha512-ZSpFm0/uHa8zTvKBDjLFWLo8dkr4MBsiDLz0g3gMUwqgLHz9rTaRRGYDgvZPtBJgYCBKXkS9fzmoySgr8CO6Cw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-slot": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-slot": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-FUCf5XMfmW4dtYl69pdS4DbxKy8nj4M7SafBgPllysxmdachynNflAdp/gCsnYWNDnge6tI9onzMp5ARYc1KNw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-compose-refs": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-use-callback-ref": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-CasTfvsy+frcFkbXtSJ2Zu9JHpN8TYKxkgJGWbjiZhFivxaeW7rMeZt7QELGVLaYVfFMsKHjb7Ak0nMEe+2Vfw==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-use-controllable-state": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-MtfMVJiSr2NjzS0Aa90NPTnvTSg6C/JLCV7ma0W6+OMV78vd8OyRpID+Ng9LxzsPbLeuBnWBA1Nq30AtBIDChw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-use-escape-keydown": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-L7vwWlR1kTTQ3oh7g1O0CBF3YCyyTj8NmhLR+phShpyA50HCfBFKVJTpshm9PzLiKmehsrQzTYTpX9HvmC9rhw==",
|
||||||
|
"requires": {
|
||||||
|
"@radix-ui/react-use-callback-ref": "1.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"@radix-ui/react-use-layout-effect": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.0.tgz",
|
||||||
|
"integrity": "sha512-+FPE0rOdziWSrH9athwI1R0HDVbWlEhd+FR+aSDk4uWGmSJ9Z54sdZVDQPZAinJhJXwfT+qnj969mCsT2gfm5w==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
|
"react-remove-scroll": {
|
||||||
|
"version": "2.5.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.7.tgz",
|
||||||
|
"integrity": "sha512-FnrTWO4L7/Bhhf3CYBNArEG/yROV0tKmTv7/3h9QCFvH6sndeFf1wPqOcbFVu5VAulS5dV1wGT3GZZ/1GawqiA==",
|
||||||
|
"requires": {
|
||||||
|
"react-remove-scroll-bar": "^2.3.4",
|
||||||
|
"react-style-singleton": "^2.2.1",
|
||||||
|
"tslib": "^2.1.0",
|
||||||
|
"use-callback-ref": "^1.3.0",
|
||||||
|
"use-sidecar": "^1.1.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -10824,6 +11247,12 @@
|
|||||||
"tslib": "^2.0.0"
|
"tslib": "^2.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"react-virtuoso": {
|
||||||
|
"version": "4.10.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-4.10.1.tgz",
|
||||||
|
"integrity": "sha512-vDBt9AarmCjPNshw3VxPXW355ZQKSO0p9vrAJ0pi04TB6aXk+qHWTu8NuaQ3ppcd/Ub1r5ryRA4fJ2QGuH0H0g==",
|
||||||
|
"requires": {}
|
||||||
|
},
|
||||||
"read-cache": {
|
"read-cache": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
|
||||||
@@ -11493,9 +11922,9 @@
|
|||||||
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
||||||
},
|
},
|
||||||
"vaul": {
|
"vaul": {
|
||||||
"version": "0.8.0",
|
"version": "0.8.9",
|
||||||
"resolved": "https://registry.npmjs.org/vaul/-/vaul-0.8.0.tgz",
|
"resolved": "https://registry.npmjs.org/vaul/-/vaul-0.8.9.tgz",
|
||||||
"integrity": "sha512-9nUU2jIObJvJZxeQU1oVr/syKo5XqbRoOMoTEt0hHlWify4QZFlqTh6QSN/yxoKzNrMeEQzxbc3XC/vkPLOIqw==",
|
"integrity": "sha512-gpmtmZRWDPP6niQh14JfRIFUYZVyfvAWyA/7rUINOfNlO/2K7uEvI5rLXEXkxZIRFyUZj+TPHLFMirkegPHjrw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@radix-ui/react-dialog": "^1.0.4"
|
"@radix-ui/react-dialog": "^1.0.4"
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-3
@@ -9,7 +9,8 @@
|
|||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@radix-ui/react-dialog": "^1.0.5",
|
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
||||||
|
"@radix-ui/react-dialog": "^1.1.1",
|
||||||
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
||||||
"@radix-ui/react-hover-card": "^1.0.7",
|
"@radix-ui/react-hover-card": "^1.0.7",
|
||||||
"@radix-ui/react-icons": "^1.3.0",
|
"@radix-ui/react-icons": "^1.3.0",
|
||||||
@@ -44,11 +45,11 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-fast-marquee": "^1.6.0",
|
"react-fast-marquee": "^1.6.0",
|
||||||
"react-modal-promise": "^1.0.2",
|
"react-modal-promise": "^1.0.2",
|
||||||
"swiper": "^11.0.7",
|
"react-virtuoso": "^4.10.1",
|
||||||
"tailwind-merge": "^1.14.0",
|
"tailwind-merge": "^1.14.0",
|
||||||
"tailwindcss-animate": "^1.0.6",
|
"tailwindcss-animate": "^1.0.6",
|
||||||
"typescript": "5.1.6",
|
"typescript": "5.1.6",
|
||||||
"vaul": "^0.8.0"
|
"vaul": "^0.8.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/aspect-ratio": "^0.4.2",
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
||||||
|
|||||||
@@ -101,4 +101,50 @@
|
|||||||
-moz-user-select: none;
|
-moz-user-select: none;
|
||||||
-ms-user-select: none;
|
-ms-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* html {
|
||||||
|
scroll-padding-top: 62px;
|
||||||
|
scroll-snap-type: y mandatory;
|
||||||
|
} */
|
||||||
|
|
||||||
|
.card-gradient {
|
||||||
|
background: linear-gradient(
|
||||||
|
rgba(0, 0, 0, 0.4) 0%,
|
||||||
|
rgba(0, 0, 0, 0.396) 2.83%,
|
||||||
|
rgba(0, 0, 0, 0.384) 5.67%,
|
||||||
|
rgba(0, 0, 0, 0.37) 8.5%,
|
||||||
|
rgba(0, 0, 0, 0.34) 11.33%,
|
||||||
|
rgba(0, 0, 0, 0.306) 14.17%,
|
||||||
|
rgba(0, 0, 0, 0.267) 17%,
|
||||||
|
rgba(0, 0, 0, 0.224) 19.83%,
|
||||||
|
rgba(0, 0, 0, 0.176) 22.67%,
|
||||||
|
rgba(0, 0, 0, 0.133) 25.5%,
|
||||||
|
rgba(0, 0, 0, 0.094) 28.33%,
|
||||||
|
rgba(0, 0, 0, 0.06) 31.17%,
|
||||||
|
rgba(0, 0, 0, 0.03) 34%,
|
||||||
|
rgba(0, 0, 0, 0.016) 36.83%,
|
||||||
|
rgba(0, 0, 0, 0.004) 39.67%,
|
||||||
|
rgba(0, 0, 0, 0) 42.5%,
|
||||||
|
rgba(0, 0, 0, 0) 57.5%,
|
||||||
|
rgba(0, 0, 0, 0.004) 60.33%,
|
||||||
|
rgba(0, 0, 0, 0.016) 63.17%,
|
||||||
|
rgba(0, 0, 0, 0.03) 66%,
|
||||||
|
rgba(0, 0, 0, 0.06) 68.83%,
|
||||||
|
rgba(0, 0, 0, 0.094) 71.67%,
|
||||||
|
rgba(0, 0, 0, 0.133) 74.5%,
|
||||||
|
rgba(0, 0, 0, 0.176) 77.33%,
|
||||||
|
rgba(0, 0, 0, 0.224) 80.17%,
|
||||||
|
rgba(0, 0, 0, 0.267) 83%,
|
||||||
|
rgba(0, 0, 0, 0.306) 85.83%,
|
||||||
|
rgba(0, 0, 0, 0.34) 88.67%,
|
||||||
|
rgba(0, 0, 0, 0.37) 91.5%,
|
||||||
|
rgba(0, 0, 0, 0.384) 94.33%,
|
||||||
|
rgba(0, 0, 0, 0.396) 97.17%,
|
||||||
|
rgba(0, 0, 0, 0.4) 100%
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user