generated from defi-wonderland/web3-nextjs-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes ZKS-136
- Loading branch information
Showing
6 changed files
with
126 additions
and
21 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,43 @@ | ||
import { Box, Skeleton } from '@mui/material'; | ||
|
||
export const SkeletonChainDetail = () => { | ||
return ( | ||
<Box sx={{ padding: 4 }} width='100%'> | ||
{/* Breadcrumb Skeleton */} | ||
<Skeleton variant='text' width='20%' height={40} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
|
||
{/* Chain Metadata Skeleton */} | ||
<Skeleton variant='rectangular' width='100%' height={150} sx={{ borderRadius: 4, marginBottom: 4 }} /> | ||
|
||
{/* Chain Information Skeleton */} | ||
<Box sx={{ marginBottom: 4 }}> | ||
<Skeleton variant='text' width='40%' height={60} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
<Skeleton variant='rectangular' width='100%' height={80} sx={{ borderRadius: 4, marginBottom: 2 }} /> | ||
<Skeleton variant='rectangular' width='100%' height={80} sx={{ borderRadius: 4 }} /> | ||
</Box> | ||
|
||
{/* RPCs Skeleton */} | ||
<Box sx={{ marginBottom: 4 }}> | ||
<Skeleton variant='text' width='40%' height={60} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
<Skeleton variant='rectangular' width='100%' height={80} sx={{ borderRadius: 4, marginBottom: 2 }} /> | ||
</Box> | ||
|
||
{/* Fee Params Skeleton */} | ||
<Box sx={{ marginBottom: 4 }}> | ||
<Skeleton variant='text' width='40%' height={60} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
<Skeleton variant='rectangular' width='100%' height={80} sx={{ borderRadius: 4, marginBottom: 2 }} /> | ||
</Box> | ||
|
||
{/* ZKChain TVL Skeleton */} | ||
<Box> | ||
<Skeleton variant='text' width='40%' height={60} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
<Box> | ||
<Skeleton variant='rectangular' width='100%' height={50} sx={{ marginBottom: 2 }} /> | ||
{[...Array(5)].map((_, index) => ( | ||
<Skeleton key={index} variant='rectangular' width='100%' height={50} sx={{ marginBottom: 1 }} /> | ||
))} | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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,34 @@ | ||
import { Box } from '@mui/material'; | ||
import { Skeleton } from '@mui/material'; | ||
|
||
export const SkeletonLanding = () => { | ||
return ( | ||
<Box width='100%'> | ||
{/* Title Skeleton */} | ||
<Skeleton variant='text' width='40%' height={80} sx={{ marginBottom: 4, borderRadius: 4 }} /> | ||
|
||
{/* Sub-Title Skeleton */} | ||
<Skeleton variant='text' width='100%' height={60} sx={{ marginBottom: 4, borderRadius: 4 }} /> | ||
|
||
{/* Main Container Skeleton for Locked Assets */} | ||
<Skeleton variant='rectangular' width='100%' height={300} sx={{ borderRadius: 4, marginBottom: 12 }} /> | ||
|
||
{/* Secondary Title Skeleton for Chain List */} | ||
<Skeleton variant='text' width='30%' height={60} sx={{ marginBottom: 4, borderRadius: 4 }} /> | ||
|
||
{/* Table Skeleton */} | ||
<Box> | ||
<Skeleton variant='rectangular' width='100%' height={50} sx={{ marginBottom: 2, borderRadius: 4 }} /> | ||
{[...Array(6)].map((_, index) => ( | ||
<Skeleton | ||
key={index} | ||
variant='rectangular' | ||
width='100%' | ||
height={50} | ||
sx={{ marginBottom: 1, borderRadius: 4 }} | ||
/> | ||
))} | ||
</Box> | ||
</Box> | ||
); | ||
}; |
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