Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
f5de7178
Unverified
Commit
f5de7178
authored
Dec 01, 2022
by
Jack Short
Committed by
GitHub
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: updating details loader to match design (#5504)
parent
6c203cc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
34 deletions
+49
-34
AssetDetailsLoading.tsx
src/nft/components/details/AssetDetailsLoading.tsx
+49
-34
No files found.
src/nft/components/details/AssetDetailsLoading.tsx
View file @
f5de7178
...
...
@@ -14,7 +14,22 @@ const Title = styled(LoadingBubble)`
const
SubTitle
=
styled
(
LoadingBubble
)
`
height: 40px;
width: 200px;
margin-top: 12px;
margin-top: 8px;
@media (max-width:
${
BREAKPOINT
}
) {
width: 100%;
}
`
const
Seller
=
styled
(
LoadingBubble
)
`
height: 16px;
width: 40px;
`
const
SellerAddress
=
styled
(
LoadingBubble
)
`
margin-top: 4px;
height: 24px;
width: 95px;
`
const
PrimaryBody
=
styled
(
LoadingBubble
)
`
...
...
@@ -22,22 +37,22 @@ const PrimaryBody = styled(LoadingBubble)`
height: 260px;
`
const
ActivityLoader
=
styled
(
LoadingBubble
)
`
width: 100%;
height: 428px;
`
const
PrimaryContent
=
styled
(
Column
)
`
max-width: 780px;
margin-top: 28px;
width: 100%;
gap: 28px;
@media (max-width:
${
BREAKPOINT
}
) {
max-width: 100%;
}
`
const
SecondaryContent
=
styled
(
LoadingBubble
)
`
width: 100%;
height: 60px;
margin-top: 28px;
`
const
LoaderContainer
=
styled
.
div
`
width: 100%;
padding-top: 200px;
...
...
@@ -51,22 +66,12 @@ const LoaderContainer = styled.div`
const
BuyNowContainer
=
styled
(
LoadingBubble
)
`
height: 180px;
width: 360px;
margin-top: 28px;
@media (max-width:
${
BREAKPOINT
}
) {
width: 100%;
}
`
const
PriceContainer
=
styled
(
LoadingBubble
)
`
height: 16px;
width: 136px;
@media (max-width:
${
BREAKPOINT
}
) {
margin-top: 20px;
}
`
const
LoadingContainer
=
styled
.
div
`
display: flex;
margin-top: 48px;
...
...
@@ -92,30 +97,26 @@ const StyledColumn = styled(Column)`
}
`
const
BuyNowLoadingDesktop
=
styled
.
div
`
const
BuyNowLoadingDesktop
=
styled
(
Column
)
`
margin-top: 20px;
padding-left: 60px;
gap: 24px;
@media (max-width:
${
BREAKPOINT
}
) {
display: none;
}
`
const
BuyNowLoadingMobile
=
styled
.
div
`
const
BuyNowLoadingMobile
=
styled
(
Column
)
`
display: none;
margin-top: 16px;
gap: 24px;
@media (max-width:
${
BREAKPOINT
}
) {
display:
block
;
display:
flex
;
}
`
const
BuyNowLoading
=
()
=>
(
<>
<
PriceContainer
/>
<
BuyNowContainer
/>
</>
)
export
const
AssetDetailsLoading
=
()
=>
{
const
theme
=
useTheme
()
...
...
@@ -125,20 +126,34 @@ export const AssetDetailsLoading = () => {
<
LoaderContainer
>
<
Loader
stroke=
{
theme
.
accentAction
}
size=
"40px"
/>
</
LoaderContainer
>
<
Title
/>
<
SubTitle
/>
<
BuyNowLoadingMobile
>
<
BuyNowLoading
/>
<
Column
>
<
Title
/>
<
SubTitle
/>
</
Column
>
<
BuyNowContainer
/>
<
Column
>
<
Seller
/>
<
SellerAddress
/>
</
Column
>
</
BuyNowLoadingMobile
>
<
PrimaryContent
>
<
PrimaryBody
/>
<
SecondaryContent
/>
<
SecondaryContent
/>
<
SecondaryContent
/>
<
ActivityLoader
/>
<
PrimaryBody
/>
<
PrimaryBody
/>
</
PrimaryContent
>
</
StyledColumn
>
<
BuyNowLoadingDesktop
>
<
BuyNowLoading
/>
<
Column
>
<
Title
/>
<
SubTitle
/>
</
Column
>
<
BuyNowContainer
/>
<
Column
>
<
Seller
/>
<
SellerAddress
/>
</
Column
>
</
BuyNowLoadingDesktop
>
</
LoadingContainer
>
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment