diff --git a/src/@images/algorithm.svg b/src/@images/algorithm.svg new file mode 100644 index 000000000..118461a18 --- /dev/null +++ b/src/@images/algorithm.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/@images/dataset.svg b/src/@images/dataset.svg new file mode 100644 index 000000000..6ac80c577 --- /dev/null +++ b/src/@images/dataset.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/@shared/Form/FormFields/Datatoken/index.module.css b/src/components/@shared/Form/FormFields/Datatoken/index.module.css index 2e227b493..50dc11e18 100644 --- a/src/components/@shared/Form/FormFields/Datatoken/index.module.css +++ b/src/components/@shared/Form/FormFields/Datatoken/index.module.css @@ -1,7 +1,7 @@ .datatoken { display: grid; - gap: calc(var(--spacer) / 2); - grid-template-columns: 1fr 4fr; + gap: var(--spacer); + grid-template-columns: 1fr 11fr; margin-bottom: var(--spacer); align-items: center; } @@ -16,7 +16,8 @@ width: 128px; height: 128px; padding: var(--spacer); - background: var(--brand-black); + background: var(--background-body); + border: 1px solid var(--border-color); fill: var(--brand-violet); border-radius: 50%; } diff --git a/src/components/@shared/Form/FormFields/Nft/index.module.css b/src/components/@shared/Form/FormFields/Nft/index.module.css index cdfa369ef..e4f2da8a1 100644 --- a/src/components/@shared/Form/FormFields/Nft/index.module.css +++ b/src/components/@shared/Form/FormFields/Nft/index.module.css @@ -1,7 +1,7 @@ .nft { display: grid; - gap: calc(var(--spacer) / 2); - grid-template-columns: 1fr 4fr; + gap: var(--spacer); + grid-template-columns: 1fr 11fr; margin-bottom: var(--spacer); align-items: center; } @@ -13,6 +13,9 @@ } .image { + display: block; + width: 128px; + height: 128px; border-radius: var(--border-radius); border: 1px solid var(--border-color); } diff --git a/src/components/@shared/Form/FormFields/Nft/index.tsx b/src/components/@shared/Form/FormFields/Nft/index.tsx index f9fd708ee..6db50fb62 100644 --- a/src/components/@shared/Form/FormFields/Nft/index.tsx +++ b/src/components/@shared/Form/FormFields/Nft/index.tsx @@ -17,12 +17,10 @@ export default function Nft(props: InputProps): ReactElement { return (
- +
+ +
+
{field?.value?.name} —{' '} {field?.value?.symbol} diff --git a/src/components/@shared/Form/Input/index.module.css b/src/components/@shared/Form/Input/index.module.css index e5224f71d..5ea9fb86f 100644 --- a/src/components/@shared/Form/Input/index.module.css +++ b/src/components/@shared/Form/Input/index.module.css @@ -1,5 +1,5 @@ .field { - margin-bottom: var(--spacer); + margin-bottom: calc(var(--spacer) * var(--line-height)); position: relative; } diff --git a/src/components/Publish/Metadata/index.tsx b/src/components/Publish/Metadata/index.tsx index db67580b1..36aaa1940 100644 --- a/src/components/Publish/Metadata/index.tsx +++ b/src/components/Publish/Metadata/index.tsx @@ -1,9 +1,12 @@ +import { BoxSelectionOption } from '@shared/Form/FormFields/BoxSelection' import Input from '@shared/Form/Input' import { Field, useFormikContext } from 'formik' import React, { ReactElement } from 'react' import content from '../../../../content/publish/form.json' import { FormPublishData } from '../_types' import { getFieldContent } from '../_utils' +import IconDataset from '@images/dataset.svg' +import IconAlgorithm from '@images/algorithm.svg' const assetTypeOptionsTitles = getFieldContent( 'type', @@ -26,16 +29,18 @@ export default function MetadataFields(): ReactElement { // BoxSelection component is not a Formik component // so we need to handle checked state manually. - const assetTypeOptions = [ + const assetTypeOptions: BoxSelectionOption[] = [ { name: assetTypeOptionsTitles[0].toLowerCase(), title: assetTypeOptionsTitles[0], - checked: values.metadata.type === assetTypeOptionsTitles[0].toLowerCase() + checked: values.metadata.type === assetTypeOptionsTitles[0].toLowerCase(), + icon: }, { name: assetTypeOptionsTitles[1].toLowerCase(), title: assetTypeOptionsTitles[1], - checked: values.metadata.type === assetTypeOptionsTitles[1].toLowerCase() + checked: values.metadata.type === assetTypeOptionsTitles[1].toLowerCase(), + icon: } ] @@ -61,6 +66,7 @@ export default function MetadataFields(): ReactElement { {...getFieldContent('description', content.metadata.fields)} component={Input} name="metadata.description" + rows={7} /> - }, - { - name: accessTypeOptionsTitles[1].toLowerCase(), - title: accessTypeOptionsTitles[1], - icon: - } -] - export default function ServicesFields(): ReactElement { // connect with Form state, use for conditional field rendering const { values, setFieldValue } = useFormikContext()