summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-09 14:14:45 +0200
committerGitHub <noreply@github.com>2021-05-09 14:14:45 +0200
commit4f1c48bf32ded0ce1277b6483bdac7ec489f055f (patch)
tree1a2c7c09fb87731086ddcdb6570f710ad5cd56b2 /opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
parentfb84d53278fa59a7c7a95538747563a0aed692a2 (diff)
parentf79c0872ddfcbe02a7bcc498b4a9d5d202caccd2 (diff)
ui: Update OpenDC homepage
This pull request contains various updates to the opendc.org homepage, in order to reflect the updates from OpenDC 2.0.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js')
-rw-r--r--opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js b/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
index c987d5d0..263590d5 100644
--- a/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
+++ b/opendc-web/opendc-web-ui/src/components/home/ScreenshotSection.js
@@ -1,23 +1,28 @@
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}>
- <div className="row">
- <div
- className={classNames('col-xl-5 col-lg-5 col-md-5 col-sm-12 col-12 text-left', {
+ <Row>
+ <Col
+ xl="5"
+ lg="5"
+ md="5"
+ sm="!2"
+ className={classNames('text-left my-auto', {
'order-1': !imageIsRight,
})}
>
{children}
- </div>
- <div className="col-xl-7 col-lg-7 col-md-7 col-sm-12 col-12">
+ </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>
- </div>
- </div>
+ <Row className="text-muted justify-content-center">{caption}</Row>
+ </Col>
+ </Row>
</ContentSection>
)