summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
blob: 263590d5920de389052e612a7a78035c90a277de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import classNames from 'classnames'
import React from 'react'
import { Row, Col } from 'reactstrap'
import ContentSection from './ContentSection'
import './ScreenshotSection.sass'

const ScreenshotSection = ({ name, title, imageUrl, caption, imageIsRight, children }) => (
    <ContentSection name={name} title={title}>
        <Row>
            <Col
                xl="5"
                lg="5"
                md="5"
                sm="!2"
                className={classNames('text-left my-auto', {
                    'order-1': !imageIsRight,
                })}
            >
                {children}
            </Col>
            <Col xl="7" lg="7" md="7" sm="12">
                <img src={imageUrl} className="col-12 screenshot" alt={caption} />
                <Row className="text-muted justify-content-center">{caption}</Row>
            </Col>
        </Row>
    </ContentSection>
)

export default ScreenshotSection