summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
blob: 4f634b28cae0360be02e54b1f53b57f1881ad62c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react'
import { Row, Col } from 'reactstrap'
import ContentSection from './ContentSection'
import { screenshot } from './ScreenshotSection.module.scss'

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

export default ScreenshotSection