Skip to content

Commit

Permalink
Styling improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ntuff committed Apr 16, 2024
1 parent e22edec commit 50969b2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/garage/Garage.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Garage(props) {
}, [refreshData]);

return (
<Container className="mt-1">
<Container className="mt-5">
<Row className="mb-3">
<Col>
<h2 onClick={() => navigate('/garage')}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/garage/Vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function Vehicle(props) {
<Card.Title className={'d-flex justify-content-center'}>{v.configurations.year} {v.configurations.make} {v.configurations.model}</Card.Title>
<Card.Text className="d-flex justify-content-around">
<Link to={`/garage/vehicle-info/${v.configurations.config_id}`} state={{configId: v.configurations.config_id}}>
<Button style={{ backgroundColor: '#6A91BF', borderColor: '#6A91BF' }}>View Info</Button>
<Button style={{ backgroundColor: '#6A91BF', borderColor: '#6A91BF' }}>View/Edit Info</Button>
</Link>
<RemoveVehicle configId={v.configurations.config_id} />
</Card.Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function ManualVehicleHistory(props) {

return (
<>
<Button onClick={handleShow} style={{ backgroundColor: '#8c7498', borderColor: '#8c7498' }}>Add Maintenance History</Button>
<Button onClick={handleShow} style={{ backgroundColor: '#5E989C', borderColor: '#5E989C' }}>Add Maintenance History</Button>
<Modal show={show} onHide={handleClose}>
<Modal.Dialog>
<Modal.Header closeButton>
Expand Down Expand Up @@ -106,7 +106,7 @@ function ManualVehicleHistory(props) {
</Modal.Body>
<Modal.Footer className={'mx-auto'}>
<Button variant="secondary" onClick={handleClose}>Close</Button>
<Button variant="success" onClick={submit}>Upload</Button>
<Button style={{backgroundColor: '#5E989C', borderColor: '#5E989C'}} onClick={submit}>Upload</Button>
</Modal.Footer>
</Modal.Dialog>
</Modal>
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/vehicle/VehicleHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ function VehicleHistory(props) {
configId={configId}
buttonVariant="outline-secondary"
/>
{/* Adding a span with horizontal padding */}
<span style={{width: '8px', display: 'inline-block'}}></span>
<DeleteMaintenanceHistory
maintenanceInfo={service}
Expand Down Expand Up @@ -274,7 +273,7 @@ function UpdateMaintenanceHistory(props) {
</Modal.Body>
<Modal.Footer className={'mx-auto'}>
<Button variant="secondary" onClick={handleClose}>Close</Button>
<Button variant="success" onClick={submit}>Save changes</Button>
<Button variant="success" onClick={submit} style={{ backgroundColor: '#5E989C', borderColor: '#5E989C' }}>Save changes</Button>
</Modal.Footer>
</Modal.Dialog>
</Modal>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/vehicle/VehicleInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function VehicleInfo() {
<Col className="text-start">
<Button variant="primary"
onClick={() => navigate(`/garage/vehicle-history/${configId}`, {state: {configId}})}
style={{ backgroundColor: '#6A91BF', borderColor: '#8c7498' }}>
style={{ backgroundColor: '#6A91BF', borderColor: '#6A91BF' }}>
View Maintenance History
</Button>
</Col>
Expand Down Expand Up @@ -234,7 +234,7 @@ function VehicleInfo() {
</Form.Group>
<div className="d-flex justify-content-center">
<Button variant="primary" onClick={handleUpdateOdometer}
style={{ backgroundColor: '#A1CCA5', borderColor: '#8c7498', color: 'black' }}>
style={{ backgroundColor: '#5E989C', borderColor: '#5E989C', color: 'White' }}>
Update Odometer
</Button>
</div>
Expand Down

0 comments on commit 50969b2

Please sign in to comment.