2022-12-09 11:59:52 +00:00
|
|
|
import styled from "styled-components";
|
|
|
|
import color from "../../styles/color";
|
|
|
|
|
|
|
|
import { FunctionComponent } from "react";
|
|
|
|
|
|
|
|
import { SkeletonAnimation } from "./skeleton-animation";
|
|
|
|
import { SkeletonCircle } from "./skeleton-circle";
|
|
|
|
import { SkeletonText } from "./skeleton-text";
|
|
|
|
import {
|
|
|
|
ChainListTitleContainer,
|
|
|
|
ContentContainer,
|
|
|
|
ButtonContainer,
|
|
|
|
} from "../../pages/verification";
|
|
|
|
|
|
|
|
import {
|
|
|
|
ProfileContainer,
|
|
|
|
ProfileContentContainer,
|
|
|
|
ProfileFollowContainer,
|
|
|
|
ProfileNameContainer,
|
|
|
|
ProfileUserNameContainer,
|
|
|
|
} from "../twitter-profile";
|
|
|
|
import {
|
|
|
|
ChainContainer,
|
|
|
|
ChainImageContainer,
|
|
|
|
ChainInfoContainer,
|
|
|
|
ChainItemContainer,
|
|
|
|
} from "../chain-list";
|
|
|
|
|
|
|
|
export const SkeletonChainList: FunctionComponent = () => (
|
2022-12-16 09:21:35 +00:00
|
|
|
<ContentContainer>
|
|
|
|
<SkeletonContainer>
|
2022-12-17 07:48:35 +00:00
|
|
|
<ProfileContainer color={color.grey["800"]}>
|
2022-12-15 15:43:18 +00:00
|
|
|
<SkeletonCircle width="5.5rem" height="5.5rem" />
|
|
|
|
|
|
|
|
<ProfileContentContainer>
|
|
|
|
<ProfileNameContainer>
|
|
|
|
<SkeletonText width="5rem" height="1.5rem" />
|
|
|
|
</ProfileNameContainer>
|
|
|
|
<ProfileUserNameContainer>
|
|
|
|
<SkeletonText width="5rem" height="1rem" />
|
|
|
|
</ProfileUserNameContainer>
|
|
|
|
|
|
|
|
<ProfileFollowContainer>
|
|
|
|
<SkeletonText width="8rem" height="1rem" />
|
|
|
|
<SkeletonText width="8rem" height="1rem" />
|
|
|
|
</ProfileFollowContainer>
|
|
|
|
|
|
|
|
<SkeletonText width="20rem" height="1rem" />
|
|
|
|
</ProfileContentContainer>
|
|
|
|
</ProfileContainer>
|
2022-12-16 09:21:35 +00:00
|
|
|
</SkeletonContainer>
|
|
|
|
|
|
|
|
<ChainListTitleContainer>
|
|
|
|
<SkeletonTitle />
|
|
|
|
</ChainListTitleContainer>
|
|
|
|
|
2022-12-17 07:48:35 +00:00
|
|
|
<ChainContainer color={color.grey["800"]}>
|
|
|
|
{Array(10)
|
|
|
|
.fill("")
|
|
|
|
.map((_, index) => (
|
|
|
|
<div key={index}>
|
|
|
|
<ChainItemContainer isLoading={true} isSkeleton={true}>
|
|
|
|
<ChainImageContainer width="3rem" height="3rem">
|
|
|
|
<SkeletonCircle width="3rem" height="3rem" />
|
|
|
|
</ChainImageContainer>
|
|
|
|
<ChainInfoContainer>
|
|
|
|
<SkeletonText width="4rem" height="1rem" />
|
|
|
|
<SkeletonText width="12rem" height="1rem" />
|
|
|
|
</ChainInfoContainer>
|
|
|
|
</ChainItemContainer>
|
|
|
|
|
|
|
|
<SkeletonDivider />
|
|
|
|
</div>
|
|
|
|
))}
|
2022-12-16 09:21:35 +00:00
|
|
|
</ChainContainer>
|
|
|
|
|
|
|
|
<SkeletonButtonContainer>
|
|
|
|
<ButtonContainer>
|
|
|
|
<SkeletonButton />
|
|
|
|
</ButtonContainer>
|
|
|
|
</SkeletonButtonContainer>
|
|
|
|
</ContentContainer>
|
2022-12-09 11:59:52 +00:00
|
|
|
);
|
|
|
|
|
2022-12-15 15:43:18 +00:00
|
|
|
const SkeletonContainer = styled.div`
|
2022-12-16 09:21:35 +00:00
|
|
|
width: 100%;
|
|
|
|
padding-top: 2.4rem;
|
2022-12-15 15:43:18 +00:00
|
|
|
`;
|
|
|
|
|
2022-12-09 11:59:52 +00:00
|
|
|
const SkeletonTitle = styled.div`
|
|
|
|
width: 8rem;
|
|
|
|
height: 1.5rem;
|
2022-12-17 07:48:35 +00:00
|
|
|
background-color: ${color.grey["800"]};
|
2022-12-09 11:59:52 +00:00
|
|
|
`;
|
|
|
|
|
2022-12-16 06:55:31 +00:00
|
|
|
const SkeletonButtonContainer = styled.div`
|
|
|
|
margin-top: 1.5rem;
|
|
|
|
`;
|
|
|
|
|
2022-12-09 11:59:52 +00:00
|
|
|
const SkeletonButton = styled.div`
|
|
|
|
width: 12rem;
|
|
|
|
height: 4rem;
|
|
|
|
|
2022-12-16 06:55:31 +00:00
|
|
|
padding-top: 1.5rem;
|
|
|
|
|
2022-12-17 07:48:35 +00:00
|
|
|
background-color: ${color.grey["800"]};
|
2022-12-09 11:59:52 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const SkeletonDivider = styled(SkeletonAnimation)`
|
|
|
|
width: 100%;
|
|
|
|
height: 1px;
|
2022-12-17 07:48:35 +00:00
|
|
|
background-color: ${color.grey["600"]};
|
2022-12-09 11:59:52 +00:00
|
|
|
`;
|