diff --git a/src/widgets/CardList/CardList.module.scss b/src/widgets/CardList/CardList.module.scss index 778cba5..110b88c 100644 --- a/src/widgets/CardList/CardList.module.scss +++ b/src/widgets/CardList/CardList.module.scss @@ -15,3 +15,19 @@ margin-top: 0; } } + +.skeletonGrid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 32px; + width: 100%; + margin: 0 auto; + + @media (max-width: 768px) { + grid-template-columns: repeat(1, 1fr); + } + + @media (min-width: 769px) and (max-width: 1024px) { + grid-template-columns: repeat(2, 1fr); + } +} \ No newline at end of file diff --git a/src/widgets/CardList/CardList.tsx b/src/widgets/CardList/CardList.tsx index be7135c..9584745 100644 --- a/src/widgets/CardList/CardList.tsx +++ b/src/widgets/CardList/CardList.tsx @@ -9,6 +9,7 @@ import { transformPostsToCardData, } from "@/widgets/CardList/CardListFunctions"; import { usePostProjects } from "@/modules/posts/hooks/usePostProjects"; +import CardSkeleton from "./ui/CardSkeleton"; interface ListProps { gridConfig?: GridConfig; @@ -24,11 +25,16 @@ const NewsList = ({ return (