|
@@ -109,6 +109,7 @@ const Layout = ({ children, themeProps }: ProvidersProps) => {
|
|
|
resistanceRatio={10}
|
|
|
initialSlide={2}
|
|
|
slidesPerView={"auto"}
|
|
|
+ style={{ width: "100%", height: "100%" }}
|
|
|
onSlidePrevTransitionStart={startHandler}
|
|
|
onSlideNextTransitionEnd={endHandler}
|
|
|
slideToClickedSlide
|
|
@@ -117,17 +118,20 @@ const Layout = ({ children, themeProps }: ProvidersProps) => {
|
|
|
}}
|
|
|
allowTouchMove={false}
|
|
|
>
|
|
|
- <SwiperSlide>
|
|
|
- <section className="relative flex h-[100vh] items-center justify-center">
|
|
|
+ <SwiperSlide style={{ width: "100%", height: "100%" }}>
|
|
|
+ <section className="relative flex h-[100%] items-center justify-center">
|
|
|
<Loading />
|
|
|
</section>
|
|
|
</SwiperSlide>
|
|
|
|
|
|
- <SwiperSlide style={{ width: "70%" }} className={"bg-[rgb(31,31,31)]"}>
|
|
|
- <section className="relative h-[100vh]">{<Sidebar></Sidebar>}</section>
|
|
|
+ <SwiperSlide
|
|
|
+ style={{ width: "70%", height: "100%" }}
|
|
|
+ className={"bg-[rgb(31,31,31)]"}
|
|
|
+ >
|
|
|
+ <section className="relative h-[100%]">{<Sidebar></Sidebar>}</section>
|
|
|
</SwiperSlide>
|
|
|
|
|
|
- <SwiperSlide style={{ width: "100%" }}>
|
|
|
+ <SwiperSlide style={{ width: "100%", height: "100%" }}>
|
|
|
<section className="relative h-[100%]" ref={homeContainerRef}>
|
|
|
{children}
|
|
|
</section>
|