Skip to content

Commit

Permalink
finally made carousel responsive for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmotal committed Oct 20, 2022
1 parent 19653fd commit 81c10f1
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 104 deletions.
100 changes: 0 additions & 100 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.2.2",
"polished": "^4.2.2",
"pure-react-carousel": "^1.30.1",
"react": "^18.2.0",
"react-bootstrap": "^2.5.0",
"react-dom": "^18.2.0",
Expand Down Expand Up @@ -48,4 +46,3 @@
]
}
}

1 change: 1 addition & 0 deletions src/components/Subscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const TopDecor = styled.img`
right: 18.5vw;
@media (max-width: 480px) {
margin-top: -110px;
right: 1.5vw;
}
`

Expand Down
43 changes: 42 additions & 1 deletion src/styles/review.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,45 @@ span {
position: relative;
right: -90vw;
top: -30vw;
}
}

/* Media Queries For Mobile Devices < 480px */
@media (max-width: 480px) {
.cont-carousel {
/* padding: 32px; */
/* width: 100%; */
}
.title{
/* width: 100%; */
}
.carousel{
/* width: 100%; */
}

.backgorund{
width: 100%;
}
.carousel-caption {
right: 0;
left: 0;
padding: 0;

}
.content{
padding: 0 15px;
width: 100%;
}

.avatar{
/* width: 100%; */
}

span {
/* width: 100%; */
}

.DecorationR {
/* width: 100%; */
}

}

0 comments on commit 81c10f1

Please sign in to comment.