в моб версии 1 карточка шиммера

This commit is contained in:
xomimishka committed 2025-07-11 11:36:08 +03:00
1 parent 1622a1bc50
commit 9fc9755a74
2 files changed
+4 -2

No files matched your search

@@ -3,7 +3,6 @@
margin: 0 10%;
text-align: left;
display: block;
@media (max-width: $mobile-xs-width) {
margin: 0 5%;
}
@@ -15,6 +14,7 @@
background-color: #e0e0e0;
border-radius: 4px;
margin-bottom: 16px;
margin-top: 20px;
position: relative;
overflow: hidden;
@@ -1,10 +1,12 @@
import styles from "./SkeletonSlider.module.scss";
export const SkeletonSlider = () => {
const skeletonCount = window.innerWidth > 768 ? 2 : 1;
return (
<div className={styles.sliderSkeleton}>
<div className={styles.slideContainer}>
{[...Array(2)].map((_, index) => (
{[...Array(skeletonCount)].map((_, index) => (
<div key={index} className={styles.slide}>
<div className={styles.image}></div>
</div>