Skip to content

Commit

Permalink
📱 responsive
Browse files Browse the repository at this point in the history
fixed home page responsivety under 500px width
  • Loading branch information
fl4viooliveira committed May 1, 2022
1 parent 97d76a3 commit 760f5c7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion frontend/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function Navbar() {
<div className={styles.navBar}>
<Link href="/">
<div className={styles.logo}>
{/* <img src="4devlogo.png" alt="" /> */}
<img src="/logo.svg" alt="logo" />
</div>
</Link>
Expand Down
5 changes: 4 additions & 1 deletion frontend/styles/Banner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@
.container {
flex-wrap: wrap;
}
.infoBox {
min-width: 200px;
}
}
@media (max-width: 400px) {
@media (max-width: 500px) {
.container {
width: calc(100% - 20px);
margin: 10px auto;
Expand Down
2 changes: 1 addition & 1 deletion frontend/styles/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
.img {
margin: 10px 0;
}
@media (max-width: 400px) {
@media (max-width: 500px) {
.container {
width: calc(100% - 20px);
margin: 0 auto;
Expand Down
2 changes: 1 addition & 1 deletion frontend/styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
width: 100%;
}
}
@media (max-width: 400px) {
@media (max-width: 500px) {
.productsContainer {
width: calc(100% - 20px);
margin: 0 auto;
Expand Down
5 changes: 4 additions & 1 deletion frontend/styles/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
display: none;
}
@media (max-width: 900px) {
.logo {
width: 100px;
}
.navbar {
position: relative;
}
Expand Down Expand Up @@ -124,7 +127,7 @@
visibility: visible;
}
}
@media (max-width: 400px) {
@media (max-width: 500px) {
.navBar {
width: calc(100% - 20px);
margin: 10px auto;
Expand Down
2 changes: 1 addition & 1 deletion frontend/styles/ProjectBanner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
margin-top: 25px;
}
}
@media (max-width: 400px) {
@media (max-width: 500px) {
.container {
width: calc(100% - 20px);
margin: 10px auto;
Expand Down

0 comments on commit 760f5c7

Please sign in to comment.