Skip to content

Commit 83f1018

Browse files
committed
add button to make a request
1 parent 000516e commit 83f1018

File tree

2 files changed

+13
-22
lines changed

2 files changed

+13
-22
lines changed

src/compounds/ItemPage/ItemPage.jsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3+
import { Button, Row, Col } from 'react-bootstrap'
34
import Image from '../../components/Image/Image'
4-
import TextBox from '../../components/TextBox/TextBox'
55
import Title from '../../components/Title/Title'
6-
import './item-page.css'
76

87
const ItemPage = ({ title, titleStyle, description, descriptionStyle, img }) => {
98
// sets a default width while still allowing width to be overridden
109
img = { width: 400, ...img }
1110

1211
return (
13-
<main className='container item-page'>
14-
<Title title={title} style={titleStyle} />
15-
<div className='item-page-details'>
16-
<TextBox text={description} style={descriptionStyle} size='medium' />
17-
<Image {...img} />
18-
</div>
12+
<main className='container py-5'>
13+
<Title title={title} style={titleStyle} addClass='text-center text-md-start'/>
14+
<Row className='mt-3'>
15+
<Col xs={12} md={6} className='text-center text-md-start d-flex flex-column'>
16+
{description}
17+
{/* TODO(summer-cook): Update this button's href so it is pointing at the item's form instead of blank request form */}
18+
<Button href='/requests/new' className='mt-4 align-self-center align-self-md-start'>Initiate Request</Button>
19+
</Col>
20+
<Col xs={12} md={6} className='mt-4 mt-md-0 me-md-auto d-flex justify-content-center justify-content-md-end'>
21+
<Image {...img} />
22+
</Col>
23+
</Row>
1924
</main>
2025
)
2126
}

src/compounds/ItemPage/item-page.css

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)