Files
web/apps/scandic-web/components/Blocks/CampaignHotelListing/HotelListingItem/HotelListingItemSkeleton.tsx
Anton Gunnarsson 7ff8fee20e Merged in chore/sw-3145-move-skeleton-shimmer (pull request #2509)
chore(SW-3145): Move SkeletonShimmer to design-system

* Move SkeletonShimmer to design-system


Approved-by: Joakim Jäderberg
2025-07-03 13:10:23 +00:00

59 lines
2.0 KiB
TypeScript

import { Divider } from "@scandic-hotels/design-system/Divider"
import SkeletonShimmer from "@scandic-hotels/design-system/SkeletonShimmer"
import { Typography } from "@scandic-hotels/design-system/Typography"
import styles from "./hotelListingItem.module.css"
export default function HotelListingItemSkeleton() {
return (
<article className={styles.hotelListingItem}>
<div className={styles.imageWrapper}>
<SkeletonShimmer width="100%" height="220px" />
</div>
<div className={styles.content}>
<div className={styles.intro}>
<SkeletonShimmer width="20ch" height="30px" />
<Typography variant="Title/Subtitle/md">
<SkeletonShimmer width="25ch" />
</Typography>
<Typography variant="Body/Supporting text (caption)/smRegular">
<div className={styles.captions}>
<SkeletonShimmer width="10ch" />
<span>
<Divider
className={styles.divider}
variant="vertical"
color="Border/Divider/Default"
/>
</span>
<SkeletonShimmer width="20ch" />
</div>
</Typography>
</div>
<Typography variant="Body/Paragraph/mdRegular">
<p>
<SkeletonShimmer width="100%" />
<SkeletonShimmer width="70%" />
<SkeletonShimmer width="35%" />
</p>
</Typography>
<Typography variant="Body/Supporting text (caption)/smRegular">
<ul className={styles.amenityList}>
{Array.from({ length: 5 }).map((_, index) => {
return (
<li className={styles.amenityItem} key={index}>
<SkeletonShimmer width="20px" height="20px" />
<SkeletonShimmer width="15ch" />
</li>
)
})}
</ul>
</Typography>
</div>
<div className={styles.ctaWrapper}>
<SkeletonShimmer width="100%" height="40px" />
</div>
</article>
)
}