-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton' | ||
import { Col, Row } from '@iqss/dataverse-design-system' | ||
import { BreadcrumbsSkeleton } from '../shared/hierarchy/BreadcrumbsSkeleton' | ||
import 'react-loading-skeleton/dist/skeleton.css' | ||
import { SeparationLine } from '../shared/layout/SeparationLine/SeparationLine' | ||
|
||
export const NewCollectionSkeleton = () => ( | ||
<SkeletonTheme> | ||
<section data-testid="edit-dataset-metadata-skeleton"> | ||
<BreadcrumbsSkeleton /> | ||
<Skeleton height="40px" width="350px" style={{ marginBottom: 16 }} /> | ||
|
||
<SeparationLine /> | ||
|
||
<Skeleton height="24px" width="350px" style={{ marginBottom: 16 }} /> | ||
|
||
{/* Top fields section skeleton */} | ||
<Row style={{ marginBottom: 16 }}> | ||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
</Row> | ||
<Row style={{ marginBottom: 16 }}> | ||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
|
||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
</Row> | ||
<Row style={{ marginBottom: 16 }}> | ||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
|
||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
</Row> | ||
<Row style={{ marginBottom: 16 }}> | ||
<Col sm={6}> | ||
<Col style={{ marginBottom: 16 }}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={38} /> | ||
</Col> | ||
|
||
<Skeleton width={120} /> | ||
<Row> | ||
<Col md={9}> | ||
<Skeleton height={38} /> | ||
</Col> | ||
<Col md={3}> | ||
<Skeleton width={42} height={42} /> | ||
</Col> | ||
</Row> | ||
</Col> | ||
|
||
<Col sm={6}> | ||
<Skeleton width={120} /> | ||
<Skeleton width="100%" height={130} /> | ||
</Col> | ||
</Row> | ||
|
||
<SeparationLine /> | ||
|
||
<Skeleton height={145} width="100%" style={{ marginBottom: 16 }} /> | ||
<Skeleton height={145} width="100%" style={{ marginBottom: 16 }} /> | ||
</section> | ||
</SkeletonTheme> | ||
) |