mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
feat: add skeleton masthead and generic loading page (#182)
* feat: add skeleton masthead and generic loading page * add generic loader to picker page * smooth out spinner, add no-motion state
This commit is contained in:
parent
fa85b30cf0
commit
e0fcfc310e
28 changed files with 380 additions and 30 deletions
27
packages/design-system/organisms/masthead/Skeleton.tsx
Normal file
27
packages/design-system/organisms/masthead/Skeleton.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import { Logotype } from '@roleypoly/design-system/atoms/branding';
|
||||
import { palette } from '@roleypoly/design-system/atoms/colors';
|
||||
import { UserAvatarGroupSkeleton } from '@roleypoly/design-system/molecules/user-avatar-group';
|
||||
import {
|
||||
MastheadAlignment,
|
||||
MastheadBase,
|
||||
MastheadLeft,
|
||||
MastheadRight,
|
||||
} from './Masthead.styled';
|
||||
|
||||
export const Skeleton = () => (
|
||||
<MastheadBase>
|
||||
<MastheadAlignment>
|
||||
<MastheadLeft>
|
||||
<Logotype
|
||||
height={30}
|
||||
circleFill={palette.taupe300}
|
||||
circleOuterFill={palette.taupe200}
|
||||
typeFill={palette.taupe300}
|
||||
/>
|
||||
</MastheadLeft>
|
||||
<MastheadRight>
|
||||
<UserAvatarGroupSkeleton />
|
||||
</MastheadRight>
|
||||
</MastheadAlignment>
|
||||
</MastheadBase>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue