mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
visual cleanup, make more use of space
This commit is contained in:
parent
011a87e6b8
commit
a6d612a1b2
@ -30,15 +30,27 @@
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
color: var(--color-secondary);
|
color: var(--color-secondary);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid var(--brand-grey-lighter);
|
padding-bottom: calc(var(--spacer) / 3);
|
||||||
border-bottom: 0;
|
|
||||||
border-top-right-radius: var(--border-radius);
|
|
||||||
border-top-left-radius: var(--border-radius);
|
|
||||||
padding: calc(var(--spacer) / 3);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tokens {
|
.tokens {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
margin-bottom: -2rem;
|
||||||
margin-bottom: calc(var(--spacer) / 2);
|
margin-left: -3rem;
|
||||||
|
margin-right: -3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 40rem) {
|
||||||
|
.tokens {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.alertArea {
|
||||||
|
margin-left: -3rem;
|
||||||
|
margin-right: -3rem;
|
||||||
|
padding: var(--spacer) calc(var(--spacer) / 2);
|
||||||
|
padding-bottom: 0;
|
||||||
|
margin-top: var(--spacer);
|
||||||
|
border-top: 1px solid var(--brand-grey-lighter);
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,11 @@ export default function Advanced(props: InputProps): ReactElement {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{error && <Alert text={error} state="error" />}
|
{error && (
|
||||||
|
<div className={styles.alertArea}>
|
||||||
|
<Alert text={error} state="error" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Hidden to fields to actually collect form values for Formik state */}
|
{/* Hidden to fields to actually collect form values for Formik state */}
|
||||||
|
@ -1,18 +1,10 @@
|
|||||||
.coin {
|
.coin {
|
||||||
border: 1px solid var(--brand-grey-lighter);
|
padding: var(--spacer) calc(var(--spacer) / 2);
|
||||||
border-radius: var(--border-radius);
|
border-top: 1px solid var(--brand-grey-lighter);
|
||||||
padding: calc(var(--spacer) / 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.coin:first-child {
|
|
||||||
border-top-right-radius: 0;
|
|
||||||
border-bottom-right-radius: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.coin:last-child {
|
.coin:last-child {
|
||||||
border-top-left-radius: 0;
|
border-left: 1px solid var(--brand-grey-lighter);
|
||||||
border-bottom-left-radius: 0;
|
|
||||||
margin-left: -1px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
@ -26,7 +18,7 @@
|
|||||||
border: 1px solid var(--brand-grey-lighter);
|
border: 1px solid var(--brand-grey-lighter);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: var(--brand-white);
|
background-color: var(--brand-white);
|
||||||
margin-bottom: calc(var(--spacer) / 2);
|
margin-bottom: var(--spacer);
|
||||||
}
|
}
|
||||||
|
|
||||||
.coin:last-child .icon path {
|
.coin:last-child .icon path {
|
||||||
@ -36,14 +28,8 @@
|
|||||||
stroke-linejoin: round;
|
stroke-linejoin: round;
|
||||||
}
|
}
|
||||||
|
|
||||||
.symbol {
|
|
||||||
text-align: center;
|
|
||||||
display: block;
|
|
||||||
font-size: var(--font-size-base);
|
|
||||||
margin-bottom: calc(var(--spacer) / 4);
|
|
||||||
}
|
|
||||||
|
|
||||||
.data {
|
.data {
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -51,14 +37,18 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.max {
|
||||||
|
position: absolute;
|
||||||
|
right: var(--spacer);
|
||||||
|
top: calc(var(--spacer) / 2.5);
|
||||||
|
}
|
||||||
|
|
||||||
.weight {
|
.weight {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--spacer) / 2);
|
margin-top: var(--spacer);
|
||||||
padding-top: calc(var(--spacer) / 2);
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: var(--font-size-small);
|
font-size: var(--font-size-small);
|
||||||
color: var(--color-secondary);
|
color: var(--color-secondary);
|
||||||
border-top: 1px solid var(--brand-grey-lighter);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.weight strong {
|
.weight strong {
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.conversion {
|
.conversion {
|
||||||
|
width: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: calc(var(--spacer) / 6);
|
margin-top: calc(var(--spacer) / 6);
|
||||||
|
@ -40,11 +40,9 @@ export default function PublishPage({
|
|||||||
`)
|
`)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const ddo = await publish(
|
const ddo = await publish(metadata as any, tokensToMint.toString(), [
|
||||||
metadata as any,
|
{ serviceType, cost: cost.toString() }
|
||||||
tokensToMint.toString(),
|
])
|
||||||
[{ serviceType, cost: cost.toString() }]
|
|
||||||
)
|
|
||||||
|
|
||||||
if (publishError) {
|
if (publishError) {
|
||||||
toast.error(publishError)
|
toast.error(publishError)
|
||||||
|
Loading…
Reference in New Issue
Block a user