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

Mobile-View #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<!-- changing the size of the image here!! -->
<img
src="images/Welcome.png"
class="d-block w-100 i1"
class="d-block w-100 i1 Welcome-Image"
alt="welcome"
height="500px"
/>
<!-- till here!! -->
<div class="carousel-caption d-none d-md-block"></div>
</div>
<div class="carousel-item">
Expand Down Expand Up @@ -374,6 +376,7 @@ <h2 class="community-title mb-3 mt-5">TESTIMONIALS</h2>
height="20px"
style="border: 1px solid #fa698b; border-radius: 50%"
/>
<!-- CHANGING THSI TO BLOCK IN MEDIA QUERY -->
<div class="card-body">
<h5 class="card-title">Priya Sharma</h5>
<p class="card-text">
Expand Down
153 changes: 153 additions & 0 deletions src/childcare.css
Original file line number Diff line number Diff line change
Expand Up @@ -478,3 +478,156 @@ footer {
.subscribeBtn {
background: var(--second) !important;
}




@media (max-width: 800px) and (min-width: 400px) {
.text h1 {
font-size: 40px;
padding-top: 20px;
}

.text p {
font-size: 14px;
padding: 20px;
padding-bottom: 0px;
}

.tagline p {
font-size: 20px;
font-weight: 500;
}

.buttons a {
font-size: 13px !important;
padding: 8px 15px !important;
display: inline-block !important;
text-align: center !important;
}

.buttons {
text-align: center;
}

.babies-section h1 {
font-size: 20px !important;
font-weight: 500;
}

.babies-section p {
font-size: 13px;
}

.top-row,
.bottom-row {
display: flex;
flex-direction: column;
}

.boxs {
margin-bottom: 20px;
width: 70%;
height: 100%;
margin-left: 70px;
margin-right: 70px;
}

.boxs h1 {
font-size: 20px;
margin-bottom: 10px;
}

.boxs p {
font-size: 13px;
line-height: 1.5;
margin-bottom: 10px;
}

.main .text h1 {
font-size: 40px;
padding-top: 20px;
}

.main .text p {
font-size: 14px;
padding: 20px;
padding-bottom: 0;
}

.main .tagline p {
font-size: 20px;
font-weight: 500;
}

.main .buttons a {
font-size: 13px !important;
padding: 8px 15px !important;
display: inline-block !important;
text-align: center !important;
}

.main .buttons {
text-align: center;
}

.babies-section h1 {
font-size: 20px !important;
font-weight: 500;
}

.babies-section p {
font-size: 13px;
}

.top-row,
.bottom-row {
display: flex;
flex-direction: column;
}

.boxs {
margin-bottom: 20px;
width: 70%;
height: 100%;
margin-left: 70px;
margin-right: 70px;
}

.boxs h1 {
font-size: 20px;
margin-bottom: 10px;
}

.boxs p {
font-size: 13px;
line-height: 1.5;
margin-bottom: 10px;
}

.contain .top-row,
.contain .bottom-row {
display: flex;
flex-direction: column;
}

.contain .boxs {
margin-bottom: 20px;
width: 70%;
height: 100%;
margin-left: 70px;
margin-right: 70px;
}

.contain .boxs h1 {
font-size: 20px;
margin-bottom: 10px;
}

.contain .boxs p {
font-size: 13px;
line-height: 1.5;
margin-bottom: 10px;
}
}

91 changes: 91 additions & 0 deletions src/parenting.css
Original file line number Diff line number Diff line change
Expand Up @@ -525,3 +525,94 @@ footer {
.subscribeBtn {
background: var(--second) !important;
}





@media (max-width: 800px) and (min-width:400px) {
.text h1{
font-size: 40px;
padding-top: 20px;
}

.text p{
font-size: 14px;
padding: 20px;
padding-bottom: 0px;
}

.tagline p{
font-size: 20px;
font-weight: 500;
}


.buttons a {
font-size: 13px !important;
padding: 8px 15px !important;
display: inline-block !important;
text-align: center !important;
}

.buttons {
text-align: center;
}

.top-row,
.bottom-row {
display: flex;
flex-direction: column;
}

.boxs {
margin-bottom: 20px;
width: 70%;
height: 100%;
margin-left: 70px;
margin-right: 70px;
}

.boxs h1 {
font-size: 20px;
margin-bottom: 10px;
}

.boxs p {
font-size: 13px;
line-height: 1.5;
margin-bottom: 10px;
}

.sleepblock p {
font-size: 14px;
line-height: 1.5;
margin-bottom: 20px;
}

.sleepblock h1 {
font-size: 24px;
margin-bottom: 10px;
}

.sleeptracker {
text-align: center;
margin: 0 auto;
max-width: 80%;
}

#sleep-form {
max-width: 300px;
margin: 0 auto;
text-align: left;
}

.babies-section h1{
font-size: 20px !important;
font-weight: 500;
}

.babies-section p{
font-size: 13px;
}
}
27 changes: 26 additions & 1 deletion src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,34 @@ h5 {
}
@media (min-width: 24px) {
.card img {
height: 11em;
height: 11em;
}
}

/* skajbfhbhad */

@media (max-width:515px){
.cards-wrapper{
flex-direction: column;
align-items: center;
gap: 40px;
}

.card{
width: 80%;
}
}

.Welcome-Image{
height: 500px;
}

@media (max-width: 515px) {
.Welcome-Image{
height: 350px;
}
}

/*footer*/
.footer {
background-color: #f3c9d3;
Expand Down