OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(public): improve mobile experiance #3
Carl-Gerhard Lindesvärd4e8afb4eeaa4
diff --git a/apps/public/components/hero-carousel.tsx b/apps/public/components/hero-carousel.tsxindex cc7f08285..5df4aeffd 100644--- a/apps/public/components/hero-carousel.tsx+++ b/apps/public/components/hero-carousel.tsx@@ -134,26 +134,16 @@ export function HeroCarousel() {<divclassName={cn('relative w-full h-[750px]',- activeFrame.id !== 'overview' && 'h-auto aspect-[4/3]',+ activeFrame.id !== 'overview' && 'h-auto aspect-[5/3]',)}>- <AnimatePresence mode="popLayout" initial={false}>- {activeFrames.slice(-2).map((frame) => (- <motion.div- key={frame.key}- layout- className="absolute inset-0 w-full h-full"- initial={{ opacity: 0 }}- animate={{ opacity: 1 }}- exit={{ opacity: 0 }}- transition={{ duration: 0.5, ease: 'easeIn' }}- >- <div className="bg-background rounded-xl h-full w-full">- <frame.Component />- </div>- </motion.div>- ))}- </AnimatePresence>+ {activeFrames.slice(-1).map((frame) => (+ <div key={frame.key} className="absolute inset-0 w-full h-full">+ <div className="bg-background rounded-xl h-full w-full">+ <frame.Component />+ </div>+ </div>+ ))}</div></div></div>