Skip to content

Commit

Permalink
Merge pull request #58 from J-Pster/pster-responsividade
Browse files Browse the repository at this point in the history
[Responsividade] Ajustando a responsividade do site para telas com <500 px
  • Loading branch information
michaelcaxias authored Oct 27, 2022
2 parents 7c1e957 + 411d64c commit 3a280f9
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 13 deletions.
22 changes: 22 additions & 0 deletions src/components/Footer/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
}
}
}

@media screen and (max-width: 500px) {
flex-direction: column;

p {
margin-bottom: 1.5rem;
text-align: center;
}
}
}

.app__footer-links {
Expand Down Expand Up @@ -72,4 +81,17 @@
}
}
}

@media screen and (max-width: 500px) {
flex-direction: column;

.privacy-and-terms {
margin-right: 0;
margin-bottom: 1rem;
}

a {
margin-bottom: 0.5rem;
}
}
}
16 changes: 4 additions & 12 deletions src/components/Header/Header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,10 @@
color: $white-black;
margin-right: 1rem;
}
}
}

@media screen and (min-width: 2000px) {
padding-top: 8rem;
}

@media screen and (max-width: 1200px) {
flex-direction: row;
}

@media screen and (max-width: 450px) {
padding: 6rem 1rem 2rem;
@media screen and (max-width: 500px) {
display: none;
}
}
}
}
1 change: 0 additions & 1 deletion src/components/SelectTime/SelectTime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export default function SelectTime() {
<FormControl
variant="filled"
className="select-time"
sx={ { minWidth: 250 } }
color="primary"
>
<InputLabel>Notificar antecipadamente</InputLabel>
Expand Down
14 changes: 14 additions & 0 deletions src/pages/Login/Login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
font-weight: 700;
}
}

@media screen and (max-width: 500px) {
width: 80%;
}
}

.login__logo {
Expand All @@ -46,4 +50,14 @@
margin-left: 1rem;
color: $white-color;
}

@media screen and (max-width: 500px) {
img {
width: 50px;
}

h1 {
font-size: 1.5rem;
}
}
}
17 changes: 17 additions & 0 deletions src/pages/Scheduler/Scheduler.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
padding: 0 2rem;

width: 100%;

@media screen and (max-width: 500px) {
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 0;
}
}

.home-page {
Expand Down Expand Up @@ -134,4 +141,14 @@

gap: 2rem;
}

@media screen and (max-width: 500px) {
flex-direction: column;
max-width: fit-content;
justify-content: center;
align-items: center;

padding: 1rem 1rem;
margin: 0;
}
}

1 comment on commit 3a280f9

@vercel
Copy link

@vercel vercel bot commented on 3a280f9 Oct 27, 2022

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.