mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
svg to png
This commit is contained in:
parent
05ef55cb7a
commit
68d2e067d4
@ -1,12 +1,11 @@
|
||||
import React from 'react'
|
||||
import styles from './AreaButton.module.scss'
|
||||
|
||||
const AreaButton = ({ title, description, action }: { title: string; description: string, action: any }) => {
|
||||
|
||||
const AreaButton = ({ title, description, action, image }: { title: string; description: string, action: any, image: any }) => {
|
||||
return (
|
||||
<div className={styles.areaButton} onClick={action}>
|
||||
<div>
|
||||
<img src="https://placeimg.com/150/150/any" alt="{title}"/>
|
||||
<img src={image} alt=""/>
|
||||
<div className="text">
|
||||
<h1>{title}</h1>
|
||||
<>{description}</>
|
||||
|
BIN
client/src/routes/Publish/container.png
Normal file
BIN
client/src/routes/Publish/container.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
client/src/routes/Publish/dataset.png
Normal file
BIN
client/src/routes/Publish/dataset.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -12,7 +12,7 @@
|
||||
min-height: 235px;
|
||||
|
||||
img {
|
||||
width: 200px;
|
||||
width: 185px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,11 @@ import { User } from '../../context'
|
||||
import Loader from './loader'
|
||||
import styles from './index.module.scss'
|
||||
|
||||
import Container from './container.png';
|
||||
import Dataset from './dataset.png';
|
||||
import Script from './script.png';
|
||||
import Workflow from './workflow.png';
|
||||
|
||||
interface PublishState {
|
||||
type: string
|
||||
}
|
||||
@ -23,7 +28,7 @@ class Publish extends Component<{}, PublishState> {
|
||||
this.setState({ type: 'workflow' })
|
||||
}
|
||||
public publishAlgorithm = () => {
|
||||
this.setState({ type: 'algorithm' })
|
||||
this.setState({ type: 'script' })
|
||||
}
|
||||
public toSelect = () => {
|
||||
this.setState({ type: 'start' })
|
||||
@ -40,10 +45,30 @@ class Publish extends Component<{}, PublishState> {
|
||||
description="What do you want to publish?"
|
||||
>
|
||||
<div className={styles.typeGrid}>
|
||||
<AreaButton title={'Dataset'} description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel, feugiat facilisis libero. Vestibulum eu elit sed lacus egestas laoreet. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.'} action={this.publishDataset}/>
|
||||
<AreaButton title={'Container'} description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'} action={this.publishContainer}/>
|
||||
<AreaButton title={'Workflow'} description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'} action={this.publishWorkflow}/>
|
||||
<AreaButton title={'Algorithm'} description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'} action={this.publishAlgorithm}/>
|
||||
<AreaButton
|
||||
title={'Dataset'}
|
||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel, feugiat facilisis libero. Vestibulum eu elit sed lacus egestas laoreet. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.'}
|
||||
action={this.publishDataset}
|
||||
image={Dataset}
|
||||
/>
|
||||
<AreaButton
|
||||
title={'Container'}
|
||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
||||
action={this.publishContainer}
|
||||
image={Container}
|
||||
/>
|
||||
<AreaButton
|
||||
title={'Workflow'}
|
||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
||||
action={this.publishWorkflow}
|
||||
image={Workflow}
|
||||
/>
|
||||
<AreaButton
|
||||
title={'Script'}
|
||||
description={'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ipsum leo, posuere vitae sem vel.'}
|
||||
action={this.publishAlgorithm}
|
||||
image={Script}
|
||||
/>
|
||||
</div>
|
||||
</Route>
|
||||
)}
|
||||
|
BIN
client/src/routes/Publish/script.png
Normal file
BIN
client/src/routes/Publish/script.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
client/src/routes/Publish/workflow.png
Normal file
BIN
client/src/routes/Publish/workflow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue
Block a user