Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meilleure présensation de la liste des produits #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions storefront/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,8 @@ const StyledButton = styled.button<Props>`
color: ${(props) => props.theme.colors.lightText};
transition: background-color 0.2s ease;
padding: 10px 20px;
margin-top: 10px;
cursor: pointer;
border: 1px solid BLUE;
background-color: BLUE;
`;
3 changes: 3 additions & 0 deletions storefront/components/ProductCardInfo/ProductCardInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default ProductCardInfo;
const Wrapper = styled.div`
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16px;
padding-top: 5%;
Expand All @@ -46,10 +47,12 @@ const Wrapper = styled.div`

const SpanContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
span {
display: flex;
align-items: center;

}
`;
11 changes: 9 additions & 2 deletions storefront/containers/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@ const Navbar = () => {
export default Navbar;

const Wrapper = styled.div`
width: 100%;
display: flex;
justify-content: end;
align-items: center;
gap: 12px;
cursor: pointer;

@media (max-width:973px) {
display: flex;
justify-content: center;
align-items: center;
justify-content: center;
gap: 12px;
}
`;
3 changes: 2 additions & 1 deletion storefront/features/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ const Header = () => {
export default Header;

const Wrapper = styled.div`
width: 100%;


`;
13 changes: 11 additions & 2 deletions storefront/features/ProductGrid/ProductGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export default ProductGrid;
const Grid = styled.div`
width: 100%;
display: grid;
grid-template-columns: 2fr;
gap: 16px;
grid-template-columns: repeat(4,1fr);
gap: 18px;

@media (max-width:1166px) {
grid-template-columns: repeat(3,1fr);
width: 100%;
}
@media (max-width:973px) {
width: 100%;
display: block;
}
`;