-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'developer' of https://github.com/ecsistem/ecommece-compass
- Loading branch information
Showing
18 changed files
with
674 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,65 @@ | ||
.banner { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background: url(./../../assets/images/banner/banner.png) center/cover no-repeat; | ||
padding: 0 20px; | ||
height: 500px; /* Defina a altura do banner como aproximadamente 500px */ | ||
margin-bottom: 60px; | ||
} | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background: url(./../../assets/images/banner/banner.png) center/cover | ||
no-repeat; | ||
padding: 0 20px; | ||
height: 500px; /* Defina a altura do banner como aproximadamente 500px */ | ||
margin-bottom: 60px; | ||
} | ||
|
||
.banner-button-center { | ||
width: 200px; | ||
padding: var(--spacing-xl, 16px); | ||
border-radius: var(--radius-sm, 4px); | ||
border: 1px solid #62D0B6; | ||
background: #62D0B6; | ||
border: none; | ||
cursor: pointer; | ||
color: #FFF; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 24px; | ||
margin: 16px 0; | ||
} | ||
.banner-content { | ||
flex-grow: 1; | ||
text-align: center; | ||
margin: 0 20px; | ||
} | ||
|
||
.banner-button-left { | ||
order: -1; | ||
} | ||
|
||
.banner-button-right { | ||
order: 1; | ||
} | ||
.title-banner{ | ||
color: #FFF; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 48px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 70px; /* 145.833% */ | ||
} | ||
.description-banner{ | ||
color: #F8F8F8; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 25px; /* 156.25% */ | ||
} | ||
.banner-button-center { | ||
width: 200px; | ||
padding: var(--spacing-xl, 16px); | ||
border-radius: var(--radius-sm, 4px); | ||
border: 1px solid #62d0b6; | ||
background: #62d0b6; | ||
border: none; | ||
cursor: pointer; | ||
color: #fff; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 24px; | ||
margin: 16px 0; | ||
} | ||
|
||
.banner-button-center:hover { | ||
background-color: #81D9C5; | ||
color: var(--primary); | ||
} | ||
|
||
.banner-content { | ||
flex-grow: 1; | ||
text-align: center; | ||
margin: 0 20px; | ||
} | ||
|
||
.banner-button-left { | ||
order: -1; | ||
} | ||
|
||
.banner-button-right { | ||
order: 1; | ||
} | ||
.title-banner { | ||
color: #fff; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 48px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 70px; /* 145.833% */ | ||
} | ||
.description-banner { | ||
color: #f8f8f8; | ||
text-align: center; | ||
font-family: Roboto Mono; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: 25px; /* 156.25% */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import classes from "./Button.module.css"; | ||
import { addToCart } from "../Slices/CartSlice"; | ||
import cartlogo from "../../assets/images/Icons/cart.svg"; | ||
import { useDispatch } from "react-redux"; | ||
import PropTypes from "prop-types"; | ||
|
||
function CartButtonDestaque({ product }) { | ||
const dispatch = useDispatch(); | ||
const addItemToCartHandler = () => { | ||
const item = { | ||
id: product.id, | ||
price: product.price, | ||
image: product.image, | ||
title: product.title, | ||
amount: 1, | ||
}; | ||
console.log(item); | ||
dispatch(addToCart(item)); | ||
}; | ||
return ( | ||
<> | ||
<button onClick={addItemToCartHandler} className={classes.cartButtonDestaque}> | ||
Carrinho | ||
<img src={cartlogo} alt="icon" /> | ||
</button> | ||
</> | ||
); | ||
} | ||
|
||
export default CartButtonDestaque; | ||
|
||
CartButtonDestaque.propTypes = { | ||
product: PropTypes.shape({ | ||
id: PropTypes.number.isRequired, | ||
price: PropTypes.number.isRequired, | ||
image: PropTypes.string.isRequired, | ||
title: PropTypes.string.isRequired, | ||
// Add other required properties here | ||
}).isRequired, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
border-radius: 100%; | ||
border: 1px solid #eee; | ||
background: #fff; | ||
cursor: pointer; | ||
} | ||
|
||
.arrow { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.