fix-lottie

This commit is contained in:
gofnnp 2024-06-29 15:21:04 +04:00
parent 7652b17e80
commit bc8bed6b44
3 changed files with 15 additions and 8 deletions

BIN
public/satisfied-no.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

View File

@ -42,7 +42,7 @@ function Satisfied() {
<section
className={`${styles.page} page`}
style={{
backgroundImage: `url(/satisfied-${satisfied}.png)`,
backgroundImage: `url(/satisfied-${satisfied}.webp)`,
}}
>
<Header
@ -50,12 +50,13 @@ function Satisfied() {
isBackButtonVisible={false}
/>
{satisfied === "yes" && (
<div
style={{
width: "100%",
aspectRatio: "337 / 406",
}}
>
// <div
// style={{
// width: "100%",
// aspectRatio: "337 / 406",
// }}
// >
<>
{animationSun && (
<DotLottieReact
className={`${styles["lottie-animation"]} ym-hide-content`}
@ -64,7 +65,8 @@ function Satisfied() {
loop={false}
/>
)}
</div>
</>
// </div>
)}
{satisfied === "no" && (
<div

View File

@ -75,3 +75,8 @@
background-color: #fff;
color: #0f1323;
}
.lottie-animation {
width: 100%;
aspect-ratio: 337 / 406;
}