-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Add skeleton loading
- Loading branch information
Showing
4 changed files
with
169 additions
and
109 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
33 changes: 33 additions & 0 deletions
33
instances/treasury-devdao.near/widget/pages/dashboard/Loading.jsx
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,33 @@ | ||
const Skeleton = styled.div` | ||
background: #efefef; | ||
animation: pulse 1.5s ease-in-out infinite; | ||
@keyframes pulse { | ||
0%, | ||
100% { | ||
opacity: 1; | ||
} | ||
50% { | ||
opacity: 0.4; | ||
} | ||
} | ||
`; | ||
|
||
return ( | ||
<div className="d-flex align-items-center gap-2 w-100"> | ||
<Skeleton | ||
style={{ height: "48px", width: "48px" }} | ||
className="rounded-circle" | ||
/> | ||
<div className="d-flex flex-column gap-1 w-75"> | ||
<Skeleton | ||
style={{ height: "16px", width: "100%" }} | ||
className="rounded-1" | ||
/> | ||
<Skeleton | ||
style={{ height: "24px", width: "90%" }} | ||
className="rounded-2" | ||
/> | ||
</div> | ||
</div> | ||
); |
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