Improved code

This commit is contained in:
2026-05-11 19:07:51 +02:00
parent d21e6c33d3
commit 0edb821c74
+13 -7
View File
@@ -200,17 +200,22 @@ export default function HomePage() {
const [currentText, setCurrentText] = useState(mistShowcase[0]?.code || ""); const [currentText, setCurrentText] = useState(mistShowcase[0]?.code || "");
return ( return (
<div className="flex w-full flex-col md:flex-row"> <div className="flex w-full flex-col xl:flex-row">
<div className="order-1 md:order-2 w-full md:w-[40vw] md:h-svh sticky top-20 md:top-0 flex items-center justify-center z-10 bg-background pb-4 md:pb-0"> <div className="flex fixed xl:top-0 xl:right-0 w-svw xl:w-[40vw] h-svh xl:items-center mt-10 justify-center z-50 pointer-events-none">
<div className="md:w-full md:pl-14 overflow-hidden"> <div className="xl:w-full overflow-hidden">
<div className="w-max h-auto border border-fd-border p-5 rounded-xl min-h-24 backdrop-blur bg-black dark:bg-black/20"> <motion.div
className="w-max h-auto border border-fd-border p-5 rounded-xl min-h-24 backdrop-blur bg-black dark:bg-black/20"
variants={item}
initial="hidden"
animate="show"
>
<MorphCode code={currentText} /> <MorphCode code={currentText} />
</div> </motion.div>
</div> </div>
</div> </div>
<div className="flex-1 order-2 md:order-1"> <div className="flex-1">
<div className="-mt-30 md:mt-0"> <div className="mt-10 xl:mt-0">
{mistShowcase.map((show) => ( {mistShowcase.map((show) => (
<ShowSection <ShowSection
key={show.title} key={show.title}
@@ -220,6 +225,7 @@ export default function HomePage() {
))} ))}
</div> </div>
</div> </div>
<div className="xl:w-[40vw]" />
</div> </div>
); );
} }