mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
prepare submission screen, nav layout updates
This commit is contained in:
parent
155d65eb58
commit
8e9cb3acad
@ -152,5 +152,8 @@
|
|||||||
},
|
},
|
||||||
"preview": {
|
"preview": {
|
||||||
"title": "Preview"
|
"title": "Preview"
|
||||||
|
},
|
||||||
|
"submission": {
|
||||||
|
"title": "Submit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,30 +1,43 @@
|
|||||||
.navigation {
|
.navigation {
|
||||||
margin-bottom: var(--spacer);
|
margin: -1.3rem calc(var(--spacer) / -1.5) var(--spacer)
|
||||||
margin-top: -1rem;
|
calc(var(--spacer) / -1.5);
|
||||||
padding: calc(var(--spacer) / 2) 0;
|
padding: calc(var(--spacer) / 2) 0;
|
||||||
|
scrollbar-width: none;
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
background-color: var(--background-highlight);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 40rem) {
|
@media (min-width: 40rem) {
|
||||||
.navigation {
|
.navigation {
|
||||||
margin-top: -2rem;
|
margin-top: -2rem;
|
||||||
|
margin-left: calc(var(--spacer) * -2);
|
||||||
|
margin-right: calc(var(--spacer) * -2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 60rem) {
|
||||||
|
.navigation {
|
||||||
padding: var(--spacer) 0;
|
padding: var(--spacer) 0;
|
||||||
|
margin-left: calc(var(--spacer) * -4);
|
||||||
|
margin-right: calc(var(--spacer) * -4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation ol {
|
.navigation ol {
|
||||||
display: flex;
|
white-space: nowrap;
|
||||||
justify-content: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
counter-reset: list-number;
|
counter-reset: list-number;
|
||||||
overflow-y: auto;
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation li {
|
.navigation li {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: block;
|
display: inline-block;
|
||||||
margin: 0 var(--spacer);
|
margin: 0 var(--spacer);
|
||||||
padding: 0 calc(var(--spacer) / 2);
|
padding: 0 calc(var(--spacer) / 2);
|
||||||
counter-increment: list-number;
|
counter-increment: list-number;
|
||||||
|
0
src/components/Publish/Submission/index.module.css
Normal file
0
src/components/Publish/Submission/index.module.css
Normal file
17
src/components/Publish/Submission/index.tsx
Normal file
17
src/components/Publish/Submission/index.tsx
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import React, { ReactElement } from 'react'
|
||||||
|
import styles from './index.module.css'
|
||||||
|
import { FormPublishData } from '../_types'
|
||||||
|
import { useFormikContext } from 'formik'
|
||||||
|
|
||||||
|
export default function Submission(): ReactElement {
|
||||||
|
const { values } = useFormikContext<FormPublishData>()
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.submission}>
|
||||||
|
<h3>Submission</h3>
|
||||||
|
Place to teach about what happens next, output all the steps in background
|
||||||
|
in some list, after submission continously update this list with the
|
||||||
|
status of the submission.
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
@ -6,6 +6,7 @@ import PricingFields from './Pricing'
|
|||||||
import MetadataFields from './Metadata'
|
import MetadataFields from './Metadata'
|
||||||
import ServicesFields from './Services'
|
import ServicesFields from './Services'
|
||||||
import Preview from './Preview'
|
import Preview from './Preview'
|
||||||
|
import Submission from './Submission'
|
||||||
|
|
||||||
export const wizardSteps: StepContent[] = [
|
export const wizardSteps: StepContent[] = [
|
||||||
{
|
{
|
||||||
@ -27,6 +28,11 @@ export const wizardSteps: StepContent[] = [
|
|||||||
step: 4,
|
step: 4,
|
||||||
title: content.preview.title,
|
title: content.preview.title,
|
||||||
component: <Preview />
|
component: <Preview />
|
||||||
|
},
|
||||||
|
{
|
||||||
|
step: 5,
|
||||||
|
title: content.submission.title,
|
||||||
|
component: <Submission />
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
margin-bottom: var(--spacer);
|
margin-bottom: var(--spacer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 45rem) {
|
@media (min-width: 40rem) {
|
||||||
.form {
|
.form {
|
||||||
padding-left: calc(var(--spacer) * 2);
|
padding-left: calc(var(--spacer) * 2);
|
||||||
padding-right: calc(var(--spacer) * 2);
|
padding-right: calc(var(--spacer) * 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user