|
@@ -17,7 +17,7 @@ const Layout: FC<PropsWithChildren<Props>> = (props) => {
|
|
|
const [mounted, setMounted] = useState(false);
|
|
|
|
|
|
useEffect(() => {
|
|
|
- setMounted(true)
|
|
|
+ setMounted(true);
|
|
|
}, []);
|
|
|
|
|
|
const startHandler = () => {
|
|
@@ -51,14 +51,15 @@ const Layout: FC<PropsWithChildren<Props>> = (props) => {
|
|
|
swiperRef.current = swiper;
|
|
|
}}
|
|
|
allowTouchMove={false}
|
|
|
- >
|
|
|
- <SwiperSlide style={{ width: `${!mounted ? '0' : '70%'}`,overflow:'hidden' }} className={"mx-w-[2.2222rem] bg-[rgb(31,31,31)]"}>
|
|
|
- <section className="relative h-[100vh]">
|
|
|
- <Sidebar></Sidebar>
|
|
|
- </section>
|
|
|
+ >
|
|
|
+ <SwiperSlide
|
|
|
+ style={{ width: `${!mounted ? "0" : "70%"}`, overflow: "hidden" }}
|
|
|
+ className={"mx-w-[2.2222rem] bg-[rgb(31,31,31)]"}
|
|
|
+ >
|
|
|
+ <section className="relative h-[100vh]">
|
|
|
+ <Sidebar></Sidebar>
|
|
|
+ </section>
|
|
|
</SwiperSlide>
|
|
|
-
|
|
|
-
|
|
|
|
|
|
<SwiperSlide style={{ width: "100%" }}>
|
|
|
<div className="relative h-[100vh]" ref={homeContainerRef}>
|