Skip to content

Commit

Permalink
finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehab98 committed Jan 3, 2023
1 parent d27c1ba commit 401f218
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ footer {
border-color: lightgray;
padding: 8px;
text-align: center;
box-shadow: 0px -4px 3px lightGray

}
9 changes: 7 additions & 2 deletions src/components/CreateProduct/CreateProduct.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ function CreateProduct() {

return (
<Form id='product_form' noValidate validated={validated} onSubmit={handleSubmit}>
<Navbar style={{"marginBottom": "20px"}} bg="dark" variant="dark">
<Navbar
style={{
"marginBottom": "20px",
"boxShadow": "0px 3px 3px lightGray"
}}
bg="dark" variant="dark">
<Container fluid>
<Navbar.Brand>Product Add</Navbar.Brand>
<Nav variant='pills' activeKey="1" className="justify-content-end">
Expand All @@ -119,7 +124,7 @@ function CreateProduct() {
</Nav>
</Container>
</Navbar>
<Container fluid>
<Container>
<Form.Group className="mb-3">
<Form.Label>SKU</Form.Label>
<Form.Control
Expand Down
5 changes: 4 additions & 1 deletion src/components/Product/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function Product(props) {
bg={"light"}
key={"Card" + props.product.SKU}
text={"dark"}
style={{ width: '18rem' }}
style={{
width: '18rem',
boxShadow: '3px 3px 3px lightGray'
}}
className="mb-2"
>
<Card.Header as="h5">
Expand Down
13 changes: 9 additions & 4 deletions src/components/ProductsList/ProductsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function ProductsList() {
};

const formatData = (product) => {
if(product.length && product.width && product.height){
if (product.length && product.width && product.height) {
product.dimensions = `${product.length}x${product.width}x${product.height}`;
delete product.length;
delete product.width;
Expand All @@ -105,7 +105,12 @@ export default function ProductsList() {

return (
<>
<Navbar style={{ "marginBottom": "20px" }} bg="dark" variant="dark">
<Navbar
style={{
"marginBottom": "20px",
"boxShadow": "0px 3px 3px lightGray"
}}
bg="dark" variant="dark">
<Container fluid>
<Navbar.Brand>Product List</Navbar.Brand>
<Nav variant="pills" activeKey="1" className="justify-content-end">
Expand All @@ -114,9 +119,9 @@ export default function ProductsList() {
</Nav>
</Container>
</Navbar>
<Container fluid>
<Container>
<Row
className="g-2">
className="g-4">
{products.map((_, idx) => (
<Col
xs="auto"
Expand Down

2 comments on commit 401f218

@vercel
Copy link

@vercel vercel bot commented on 401f218 Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 401f218 Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.