diff --git a/src/interface/pages/Store.tsx b/src/interface/pages/Store.tsx index 685bd319..eca384c0 100644 --- a/src/interface/pages/Store.tsx +++ b/src/interface/pages/Store.tsx @@ -167,7 +167,7 @@ const Store = () => { }} > { coverThemes.map((theme, index) => ( - setDisplayTheme(theme)} key={index}> + setDisplayTheme(theme)} key={index}> Theme Preview { - - {displayTheme && ( - setDisplayTheme(null)} - > +
+ + {displayTheme && ( e.stopPropagation()} - className="w-full max-w-xl h-[95%] p-8 pt-5 bg-white rounded-t-2xl dark:bg-zinc-800 overflow-scroll" - exit={{ y: "100vh" }} - transition={{ type: 'spring', stiffness: 300, damping: 30 }} - variants={containerVariants} - initial="hidden" - animate="visible" + className={`fixed inset-0 z-50 flex items-end justify-center bg-black bg-opacity-70`} + initial={{ opacity: 0 }} + animate={{ opacity: 1 }} + exit={{ opacity: 0 }} + onClick={() => setDisplayTheme(null)} > - - setDisplayTheme(null)} - variants={textVariants} - > - {'\ued8a'} - - - {displayTheme.name} - - - - {displayTheme.description} - - downloadTheme(displayTheme.id)} - className="flex px-4 py-2 mt-4 ml-auto rounded-full dark:text-white bg-zinc-300 dark:bg-zinc-700 dark:hover:bg-zinc-600/50 hover:bg-zinc-200 focus:outline-none focus:ring-2 focus:ring-zinc-800 focus:ring-offset-2" - variants={textVariants} - > - { installingThemes.includes(displayTheme.id) ? - <> - - Installing... - : - <> Install - } - + e.stopPropagation()} + className="w-full max-w-xl h-[95%] p-8 pt-5 bg-white rounded-t-2xl dark:bg-zinc-800 overflow-scroll" + exit={{ y: "100vh" }} + transition={{ type: 'spring', stiffness: 300, damping: 30 }} + variants={containerVariants} + initial="hidden" + animate="visible" + > + + setDisplayTheme(null)} + variants={textVariants} + > + {'\ued8a'} + + + {displayTheme.name} + + + + {displayTheme.description} + + downloadTheme(displayTheme.id)} + className="flex px-4 py-2 mt-4 ml-auto rounded-full dark:text-white bg-zinc-300 dark:bg-zinc-700 dark:hover:bg-zinc-600/50 hover:bg-zinc-200 focus:outline-none focus:ring-2 focus:ring-zinc-800 focus:ring-offset-2" + variants={textVariants} + > + { installingThemes.includes(displayTheme.id) ? + <> + + Installing... + : + <> Install + } + - + - - More Themes - -
- {gridThemes.filter(theme => theme.id !== displayTheme.id).map((theme, index) => ( - { setDisplayTheme(null); setDisplayTheme(theme); }} className='w-full cursor-pointer' variants={textVariants}> -
-
-
- {theme.name} -
-

- {theme.description} -

+ + More Themes + +
+ {gridThemes.filter(theme => theme.id !== displayTheme.id).map((theme, index) => ( + { setDisplayTheme(null); setDisplayTheme(theme); }} className='w-full cursor-pointer' variants={textVariants}> +
+
+
+ {theme.name} +
+

+ {theme.description} +

+
+
+ Theme Preview
-
- Theme Preview -
- - ))} -
+
+ ))} +
+ - - )} - + )} + +
{/* pagination */}
@@ -283,7 +285,7 @@ const Store = () => {
{filteredThemes.map((theme, index) => ( -
+
setDisplayTheme(theme)} key={index} className='w-full cursor-pointer'>