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

made buttons in shop.js responsive #379

Closed
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
1 change: 1 addition & 0 deletions .codegpt/head
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
455e1988-76c8-4da9-9ba6-371b4543658f
16 changes: 9 additions & 7 deletions src/Pages/Shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,15 +763,17 @@ function Shop() {
variant="text"
aria-label="Basic button group"
sx={{
borderRadius: "8px",
padding: "4px",
marginLeft: "230px",
display: 'flex',
flexDirection: { xs: 'column', sm: 'column', md: 'row' },
borderRadius: { xs: '2px', sm: '4px', md: '8px', lg: '12px', xl: '16px' },
padding: { xs: '1px', sm: '2px', md: '4px', lg: '6px', xl: '8px' },
marginLeft: '20%'
}}
>
<Button
onClick={() => setCategory("hot")}
style={{
width: "200px",
width:{ xs: '80%', sm: '75%', md: '260px', lg: '280px', xl: '300px' },
backgroundColor: category === "hot" ? "#f0efdc" : "#7c2414",
color: category === "hot" ? "black" : "white",
}}
Expand All @@ -781,7 +783,7 @@ function Shop() {
<Button
onClick={() => setCategory("cold")}
style={{
width: "200px",
width: { xs: '80%', sm: '75%', md: '260px', lg: '280px', xl: '300px' },
backgroundColor: category === "cold" ? "#f0efdc" : "#7c2414",
color: category === "cold" ? "black" : "white",
}}
Expand All @@ -791,7 +793,7 @@ function Shop() {
<Button
onClick={() => setCategory("food")}
style={{
width: "200px",
width: { xs: '80%', sm: '75%', md: '260px', lg: '280px', xl: '300px' },
backgroundColor: category === "food" ? "#f0efdc" : "#7c2414",
color: category === "food" ? "black" : "white",
}}
Expand Down Expand Up @@ -890,4 +892,4 @@ function Shop() {
);
}

export default Shop;
export default Shop;
Loading