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

Fixed Issue #15, 'next' and 'previous' button of carousel are made responsive. #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
101 changes: 25 additions & 76 deletions ayurveda/src/styles/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
width: 100%;
}


.carouselInner {
display: flex;
transition: transform 0.5s ease-in-out;
Expand All @@ -21,6 +22,7 @@
.carouselItem {
flex: 0 0 100%;
box-sizing: border-box;
padding: 0 60px;
}

.carouselBtn {
Expand All @@ -32,6 +34,14 @@
font-size: 24px;
cursor: pointer;
z-index: 10;
background-color: #088888;
border-radius: 50%;
padding: 5px 10px;
}

.carouselBtn:hover{
background-color: #088888;
opacity: 0.8;
}

.carouselBtn.left {
Expand All @@ -42,13 +52,6 @@
right: 10px;
}

.features {
text-align: center;
padding: 40px;
background-color: #f9f9f9;
position: relative;
overflow: hidden;
}

.features h2 {
font-size: 36px;
Expand Down Expand Up @@ -164,75 +167,21 @@
font-size: 14px;
}

.books{
text-align: center;
padding: 40px;
color: #008080;
background-color: #f9f9f9;
position: relative;
overflow: hidden;
}

.books-container{

padding: 10px;
font-size: 10px;
display: grid;
color: black;
grid-template-columns:1fr;
gap:20px;
@media screen and (max-width: 768px) {
.features{
text-align: center;
padding: 40px 0;
position: relative;
overflow: hidden;
}
}
.book-container{
display: flex;
flex-direction: column;
justify-content: space-between;
color: black;
border:1px solid #008080;
border-radius: 10px;
padding:10px;
}
.book-container h1{
color: black;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
text-decoration: underline rgb(8, 193, 122) ;

}
.book-container h2{
color: black;
font-size: medium;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight:lighter;
}
.book-container p{
color: gray;
font-size: small;
text-align: justify;
}
.book-button{

padding:5px 30px;
background-color:#008080 ;
border: none;

border-radius: 5px;
}
.book-button:hover{
cursor:pointer;
background-color: #005555;
}
.book-button a{
width: 60px;
text-decoration: none;
color: white;

font-weight:lighter;
}
@media screen and (min-width:600px) {
.books-container{

display: grid;

grid-template-columns: repeat( 3,1fr);
gap:20px;
}
@media screen and (min-width: 768px){
.features{
text-align: center;
padding: 40px;
background-color: #f9f9f9;
position: relative;
overflow: hidden;
}
}