Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Commit

Permalink
Merge branch 'add-reactjs-with-new-theme-#67' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kkamara committed Mar 7, 2022
2 parents b8f06dd + dfe3897 commit 4683721
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion public/css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/bootstrap.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions resources/js/components/pages/Product/ProductCard.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.product-container {
background-color: 'yellow';
}

@media screen and (max-width: 650px) {
.product-container {
margin-left: 17%;
Expand Down
8 changes: 7 additions & 1 deletion resources/js/components/pages/Product/ProductComponent.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#product {
.product {
margin-top:50px;
margin-bottom:50px;
}

@media screen and (max-width: 650px) {
.product-image {
max-height: 350px;
}
}
11 changes: 7 additions & 4 deletions resources/js/components/pages/Product/ProductComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function ProductComponent({ match }) {
has_permission_to_review: true,
company: {
id: 496,
slug: 'Kessler, Windler and Hessel',
slug: 'kessler-windler-and-hessel',
},
},
review: '2.33',
Expand Down Expand Up @@ -131,14 +131,17 @@ export default function ProductComponent({ match }) {
}

return (
<div className='container' id='product'>
<div className='container product'>
<div className='row'>
<div className='col-md-9'>
<table className='table table-striped'>
<tbody>
<tr className='text-center'>
<th scope='row' colSpan='2'>
<img src={product.image_path} className='img-responsive'/>
<img
src={product.image_path}
className='img-responsive product-image'
/>
<h4 dusk='product-name'>
{ product.name }
</h4>
Expand Down Expand Up @@ -215,7 +218,7 @@ export default function ProductComponent({ match }) {
<div className='card'>
<div className='card-header'>
<div className='lead'>
Reviews {product.review !== '0.00' ? `(Average ${ product.review })` : null}
Reviews {product.review !== '£0.00' ? `(Average ${ product.review })` : null}
</div>
</div>
<div className='card-body'>
Expand Down
3 changes: 3 additions & 0 deletions resources/sass/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ img {
max-height: 300px;
}
}
.product-image {
max-height: 350px;
}
.block {
display: none;
}
Expand Down
5 changes: 4 additions & 1 deletion resources/views/product/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
<tbody>
<tr class='text-center'>
<th scope='row' colspan='2'>
<img src="{{ $product->image_path }}" class='img-responsive'/>
<img
src="{{ $product->image_path }}"
class='img-responsive product-image'
/>
<h4 dusk="product-name">
{{ $product->name }}
</h4>
Expand Down

0 comments on commit 4683721

Please sign in to comment.