Commit fd5aa1b5 authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: use padding component (#6579)

* fix: rm unused const

* use component

* update snapshot

---------
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>
Co-authored-by: default avatarCharles Bachmeier <charlie@genie.xyz>
parent a6e1a7e6
...@@ -52,6 +52,7 @@ const LeftColumn = styled(Column)` ...@@ -52,6 +52,7 @@ const LeftColumn = styled(Column)`
export const DataPage = ({ asset }: { asset: GenieAsset }) => { export const DataPage = ({ asset }: { asset: GenieAsset }) => {
return ( return (
<DataPagePaddingContainer>
<DataPageContainer> <DataPageContainer>
<DataPageHeader asset={asset} /> <DataPageHeader asset={asset} />
<ContentContainer> <ContentContainer>
...@@ -62,5 +63,6 @@ export const DataPage = ({ asset }: { asset: GenieAsset }) => { ...@@ -62,5 +63,6 @@ export const DataPage = ({ asset }: { asset: GenieAsset }) => {
<DataPageTable asset={asset} /> <DataPageTable asset={asset} />
</ContentContainer> </ContentContainer>
</DataPageContainer> </DataPageContainer>
</DataPagePaddingContainer>
) )
} }
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
exports[`placeholder containers load 1`] = ` exports[`placeholder containers load 1`] = `
<DocumentFragment> <DocumentFragment>
.c2 { .c3 {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
} }
.c10 { .c11 {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
...@@ -18,7 +18,7 @@ exports[`placeholder containers load 1`] = ` ...@@ -18,7 +18,7 @@ exports[`placeholder containers load 1`] = `
width: min-content; width: min-content;
} }
.c12 { .c13 {
box-sizing: border-box; box-sizing: border-box;
margin: 0; margin: 0;
min-width: 0; min-width: 0;
...@@ -41,7 +41,7 @@ exports[`placeholder containers load 1`] = ` ...@@ -41,7 +41,7 @@ exports[`placeholder containers load 1`] = `
border-radius: 4px; border-radius: 4px;
} }
.c3 { .c4 {
width: 100%; width: 100%;
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
...@@ -58,7 +58,7 @@ exports[`placeholder containers load 1`] = ` ...@@ -58,7 +58,7 @@ exports[`placeholder containers load 1`] = `
justify-content: flex-start; justify-content: flex-start;
} }
.c7 { .c8 {
width: 100%; width: 100%;
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
...@@ -76,7 +76,7 @@ exports[`placeholder containers load 1`] = ` ...@@ -76,7 +76,7 @@ exports[`placeholder containers load 1`] = `
gap: 4px; gap: 4px;
} }
.c11 { .c12 {
width: -webkit-min-content; width: -webkit-min-content;
width: -moz-min-content; width: -moz-min-content;
width: min-content; width: min-content;
...@@ -96,7 +96,7 @@ exports[`placeholder containers load 1`] = ` ...@@ -96,7 +96,7 @@ exports[`placeholder containers load 1`] = `
gap: 12px; gap: 12px;
} }
.c21 { .c22 {
width: 100%; width: 100%;
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
...@@ -114,15 +114,15 @@ exports[`placeholder containers load 1`] = ` ...@@ -114,15 +114,15 @@ exports[`placeholder containers load 1`] = `
gap: 8px; gap: 8px;
} }
.c8 { .c9 {
color: #7780A0; color: #7780A0;
} }
.c9 { .c10 {
color: #0D111C; color: #0D111C;
} }
.c0 { .c1 {
display: -webkit-box; display: -webkit-box;
display: -webkit-flex; display: -webkit-flex;
display: -ms-flexbox; display: -ms-flexbox;
...@@ -136,11 +136,11 @@ exports[`placeholder containers load 1`] = ` ...@@ -136,11 +136,11 @@ exports[`placeholder containers load 1`] = `
justify-content: flex-start; justify-content: flex-start;
} }
.c25 { .c26 {
height: 568px; height: 568px;
} }
.c18 { .c19 {
background: #FFFFFF; background: #FFFFFF;
border: 1px solid #D2D9EE; border: 1px solid #D2D9EE;
border-radius: 16px; border-radius: 16px;
...@@ -151,33 +151,33 @@ exports[`placeholder containers load 1`] = ` ...@@ -151,33 +151,33 @@ exports[`placeholder containers load 1`] = `
align-self: flex-start; align-self: flex-start;
} }
.c19 { .c20 {
gap: 32px; gap: 32px;
margin-bottom: 12px; margin-bottom: 12px;
width: 100; width: 100;
} }
.c20 { .c21 {
color: #0D111C; color: #0D111C;
line-height: 24px; line-height: 24px;
cursor: pointer; cursor: pointer;
} }
.c20:hover { .c21:hover {
opacity: 0.6; opacity: 0.6;
} }
.c22 { .c23 {
color: #98A1C0; color: #98A1C0;
line-height: 24px; line-height: 24px;
cursor: pointer; cursor: pointer;
} }
.c22:hover { .c23:hover {
opacity: 0.6; opacity: 0.6;
} }
.c24 { .c25 {
background: #D2D9EE; background: #D2D9EE;
border-radius: 4px; border-radius: 4px;
padding: 2px 4px; padding: 2px 4px;
...@@ -185,11 +185,11 @@ exports[`placeholder containers load 1`] = ` ...@@ -185,11 +185,11 @@ exports[`placeholder containers load 1`] = `
line-height: 12px; line-height: 12px;
} }
.c23 { .c24 {
height: 252px; height: 252px;
} }
.c13 { .c14 {
padding: 16px; padding: 16px;
width: 100%; width: 100%;
font-weight: 500; font-weight: 500;
...@@ -227,56 +227,56 @@ exports[`placeholder containers load 1`] = ` ...@@ -227,56 +227,56 @@ exports[`placeholder containers load 1`] = `
transform: perspective(1px) translateZ(0); transform: perspective(1px) translateZ(0);
} }
.c13:disabled { .c14:disabled {
opacity: 50%; opacity: 50%;
cursor: auto; cursor: auto;
pointer-events: none; pointer-events: none;
} }
.c13 > * { .c14 > * {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }
.c13 > a { .c14 > a {
-webkit-text-decoration: none; -webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
} }
.c14 { .c15 {
background-color: #F5F6FC; background-color: #F5F6FC;
color: #7780A0; color: #7780A0;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
} }
.c14:hover { .c15:hover {
background-color: #d2daf7; background-color: #d2daf7;
} }
.c14:active { .c15:active {
background-color: #bdc8f3; background-color: #bdc8f3;
} }
.c4 { .c5 {
gap: 24px; gap: 24px;
} }
.c5 { .c6 {
width: 96px; width: 96px;
height: 96px; height: 96px;
border-radius: 20px; border-radius: 20px;
object-fit: cover; object-fit: cover;
} }
.c6 { .c7 {
gap: 4px; gap: 4px;
margin-right: auto; margin-right: auto;
} }
.c15 { .c16 {
white-space: nowrap; white-space: nowrap;
width: -webkit-min-content; width: -webkit-min-content;
width: -moz-min-content; width: -moz-min-content;
...@@ -287,7 +287,13 @@ exports[`placeholder containers load 1`] = ` ...@@ -287,7 +287,13 @@ exports[`placeholder containers load 1`] = `
border-radius: 16px; border-radius: 16px;
} }
.c1 { .c0 {
padding: 24px 64px;
height: 100vh;
width: 100%;
}
.c2 {
height: 100%; height: 100%;
width: 100%; width: 100%;
gap: 36px; gap: 36px;
...@@ -295,12 +301,12 @@ exports[`placeholder containers load 1`] = ` ...@@ -295,12 +301,12 @@ exports[`placeholder containers load 1`] = `
margin: 0 auto; margin: 0 auto;
} }
.c16 { .c17 {
gap: 24px; gap: 24px;
padding-bottom: 45px; padding-bottom: 45px;
} }
.c17 { .c18 {
gap: 24px; gap: 24px;
width: 100%; width: 100%;
-webkit-align-self: flex-start; -webkit-align-self: flex-start;
...@@ -309,19 +315,37 @@ exports[`placeholder containers load 1`] = ` ...@@ -309,19 +315,37 @@ exports[`placeholder containers load 1`] = `
} }
@media screen and (max-width:768px) { @media screen and (max-width:768px) {
.c4 { .c5 {
display: none; display: none;
} }
} }
@media screen and (max-width:1024px) { @media screen and (max-width:1024px) {
.c5 { .c6 {
display: none; display: none;
} }
} }
@media screen and (max-width:768px) {
.c0 {
height: 100%;
}
}
@media screen and (max-width:640px) {
.c0 {
padding: 24px 48px;
}
}
@media screen and (max-width:396px) {
.c0 {
padding: 24px 20px;
}
}
@media screen and (max-width:1024px) { @media screen and (max-width:1024px) {
.c16 { .c17 {
-webkit-flex-wrap: wrap; -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap; -ms-flex-wrap: wrap;
flex-wrap: wrap; flex-wrap: wrap;
...@@ -329,23 +353,26 @@ exports[`placeholder containers load 1`] = ` ...@@ -329,23 +353,26 @@ exports[`placeholder containers load 1`] = `
} }
<div <div
class="c0 c1" class="c0"
>
<div
class="c1 c2"
> >
<div <div
class="c2 c3 c4" class="c3 c4 c5"
> >
<img <img
class="c5" class="c6"
src="https://cdn.center.app/1/0xED5AF388653567Af2F388E6224dC7C4b3241C544/3318/50ed67ad647d0aa0cad0b830d136a677efc2fb72a44587bc35f2a5fb334a7fdf.png" src="https://cdn.center.app/1/0xED5AF388653567Af2F388E6224dC7C4b3241C544/3318/50ed67ad647d0aa0cad0b830d136a677efc2fb72a44587bc35f2a5fb334a7fdf.png"
/> />
<div <div
class="c0 c6" class="c1 c7"
> >
<div <div
class="c2 c7" class="c3 c8"
> >
<div <div
class="c8 css-1aekuku" class="c9 css-1aekuku"
> >
Azuki Azuki
</div> </div>
...@@ -367,106 +394,107 @@ exports[`placeholder containers load 1`] = ` ...@@ -367,106 +394,107 @@ exports[`placeholder containers load 1`] = `
</svg> </svg>
</div> </div>
<div <div
class="c9 css-1tiu9da" class="c10 css-1tiu9da"
> >
Azuki #3318 Azuki #3318
</div> </div>
</div> </div>
<div <div
class="c10 c11" class="c11 c12"
width="min-content" width="min-content"
> >
<button <button
class="c12 c13 c14 c15" class="c13 c14 c15 c16"
> >
Make an offer Make an offer
</button> </button>
</div> </div>
</div> </div>
<div <div
class="c2 c3 c16" class="c3 c4 c17"
> >
<div <div
class="c0 c17" class="c1 c18"
> >
<div <div
class="c18" class="c19"
> >
<div <div
class="c2 c3 c19" class="c3 c4 c20"
> >
<div <div
class="c9 c20 css-rjqmed" class="c10 c21 css-rjqmed"
> >
<div <div
class="c2 c21" class="c3 c22"
> >
Description Description
</div> </div>
</div> </div>
<div <div
class="c9 c22 css-rjqmed" class="c10 c23 css-rjqmed"
> >
<div <div
class="c2 c21" class="c3 c22"
> >
Details Details
</div> </div>
</div> </div>
</div> </div>
<div <div
class="c23" class="c24"
> >
Description Content Description Content
</div> </div>
</div> </div>
</div> </div>
<div <div
class="c18" class="c19"
> >
<div <div
class="c2 c3 c19" class="c3 c4 c20"
> >
<div <div
class="c9 c20 css-rjqmed" class="c10 c21 css-rjqmed"
> >
<div <div
class="c2 c21" class="c3 c22"
> >
Activity Activity
</div> </div>
</div> </div>
<div <div
class="c9 c22 css-rjqmed" class="c10 c23 css-rjqmed"
> >
<div <div
class="c2 c21" class="c3 c22"
> >
Offers Offers
<div <div
class="c24 css-f8aq60" class="c25 css-f8aq60"
> >
10+ 10+
</div> </div>
</div> </div>
</div> </div>
<div <div
class="c9 c22 css-rjqmed" class="c10 c23 css-rjqmed"
> >
<div <div
class="c2 c21" class="c3 c22"
> >
Listings Listings
</div> </div>
</div> </div>
</div> </div>
<div <div
class="c25" class="c26"
> >
Activity Content Activity Content
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
</DocumentFragment> </DocumentFragment>
`; `;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment