mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:29:45 +00:00
реализовала сшимер для новостей, проектов, лабораторий
This commit is contained in:
1 parent
a1d09975b9
commit
28d09678aa
4 files changed
+220
No files matched your search
@@ -0,0 +1,24 @@
|
||||
// shared/ui/CardSkeleton/CardSkeleton.tsx
|
||||
import styles from "./CardSkeleton.module.scss";
|
||||
|
||||
interface CardSkeletonProps {
|
||||
variant?: "default" | "lab";
|
||||
}
|
||||
|
||||
const CardSkeleton = ({ variant = "default" }: CardSkeletonProps) => {
|
||||
const cardClass =
|
||||
variant === "lab"
|
||||
? `${styles.card} ${styles.labsCard}`
|
||||
: styles.card;
|
||||
|
||||
return (
|
||||
<div className={cardClass}>
|
||||
<div className={styles.pic}>
|
||||
<div className={styles.shimmer}></div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default CardSkeleton;
|
||||
|
||||
Reference in new issue
Block a user