Skip to content

Commit

Permalink
feat: new designs item detail page (#1512)
Browse files Browse the repository at this point in the history
* feat: new designs item detail page

* feat: some styles fixes and issuedId fic

* feat: removed localhost on dev env

* fix: tests

* fix: values in mana and usd

* fix: issuedId always rendering
  • Loading branch information
flobarreto authored and juanmahidalgo committed Jun 1, 2023
1 parent f0519fa commit abee489
Show file tree
Hide file tree
Showing 26 changed files with 378 additions and 119 deletions.
15 changes: 15 additions & 0 deletions webapp/src/components/AssetPage/AssetPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,18 @@
.AssetPage .asset-container {
width: 100%;
}

.AssetPage .backText {
margin-left: 45px;
margin-top: 10px;
}

@media (max-width: 768px) {
.AssetPage .backText {
margin-top: -20px;
}

.AssetPage .ui.container .dcl.back.absolute {
position: absolute;
}
}
2 changes: 1 addition & 1 deletion webapp/src/components/AssetPage/AssetPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { Page, Section, Column } from 'decentraland-ui'
import { mapAsset } from '../../modules/asset/utils'
import { Page, Section, Column } from 'decentraland-ui'
import { AssetProviderPage } from '../AssetProviderPage'
import { Navbar } from '../Navbar'
import { Navigation } from '../Navigation'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
.BestBuyingOption {
border: 2px solid var(--secondary);
border-radius: 12px;
border-radius: 10px;
display: flex;
padding: 24px;
width: 100%;
background-color: var(--secondary);
}

.BestBuyingOption .cardTitle {
font-weight: 800;
font-weight: 400;
font-size: 14px;
align-items: center;
display: flex;
}

.BestBuyingOption .emptyCardTitle {
font-weight: 600;
font-size: 18px;
}

Expand All @@ -16,15 +24,48 @@
display: flex;
flex-direction: column;
font-weight: 400;
font-size: 15px;
font-size: 14px;
gap: 10px;
}

.BestBuyingOption .nolistingsImage {
height: 40px;
align-self: center;
}

.BestBuyingOption .checkTheOwners {
padding: 0px 5px;
text-decoration: underline;
cursor: pointer;
}

.BestBuyingOption .mintingStockContainer {
color: var(--primary-text);
display: flex;
flex-direction: column;
font-weight: 400;
font-size: 15px;
justify-content: space-between;
}

.BestBuyingOption .fullWidth {
width: 100%;
}

.BestBuyingOption .containerRow {
display: flex;
flex-direction: row;
gap: 10px;
align-items: flex-end;
}

.BestBuyingOption .emptyCardContainer {
display: flex;
flex-direction: row;
gap: 10px;
padding: 9px;
justify-content: center;
width: 100%;
}

.BestBuyingOption .informationContainer {
Expand All @@ -35,22 +76,72 @@
width: 100%;
}

.BestBuyingOption .mintingContainer {
display: flex;
justify-content: space-between;
flex-grow: 1;
width: 100%;
}

.BestBuyingOption .informationBold {
color: white;
font-size: 16px;
font-weight: 500;
font-size: 30px;
font-weight: 600;
margin: unset;
}

.BestBuyingOption .stockText {
color: white;
font-size: 18px;
font-weight: 600;
display: flex;
align-items: flex-end;
margin-bottom: 7px;
}

.BestBuyingOption .informationBold :global(.ui.header.large) {
font-size: 30px;
font-weight: 600;
}

.BestBuyingOption .informationBold :global(.dcl.mana .matic) {
margin-bottom: 5px;
width: 22px;
height: 22px;
}

.BestBuyingOption .informationText {
color: var(--secondary-text);
font-size: 15px;
margin-top: 3px;
color: white;
font-size: 24px;
line-height: 1.7;
}

.BestBuyingOption .informationListingText {
color: white;
font-size: 14px;
line-height: 1.5;
}

.BestBuyingOption .centerItems {
align-items: center;
gap: 0px;
}

.BestBuyingOption .informationTitle {
font-size: 15px;
font-size: 14px;
color: var(--secondary-text);
font-weight: 600;
display: flex;
align-items: center;
}

.BestBuyingOption .informationTooltip {
width: 14px;
height: 14px;
}

.BestBuyingOption .mintingIcon {
height: 19px;
}

.BestBuyingOption :global(.ui.header.medium) {
Expand All @@ -60,3 +151,39 @@
.BestBuyingOption :global(.ui.button + .ui.button) {
margin-left: unset;
}

.BestBuyingOption .buyWithCardClassName {
background-color: white !important;
color: black !important;
}

.BestBuyingOption .expiresAt {
display: flex;
align-items: center;
font-size: 14px;
}

.BestBuyingOption .listingMana :global(.ui.header.small) {
font-size: 14px;
display: flex;
align-items: center;
}

.BestBuyingOption .columnListing {
color: var(--primary-text);
display: flex;
flex-direction: column;
font-weight: 400;
font-size: 14px;
justify-content: space-between;
}

@media (max-width: 768px) {
.BestBuyingOption {
padding: 24px 15px;
}

.BestBuyingOption .informationContainer {
gap: 10px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ describe('Best Buying Option', () => {
createdAt: 1671033414000,
updatedAt: 0,
network: Network.MATIC,
chainId: ChainId.ETHEREUM_GOERLI
chainId: ChainId.ETHEREUM_GOERLI,
issuedId: '1'
}

let bid: Bid = {
Expand Down
Loading

0 comments on commit abee489

Please sign in to comment.