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

made the normaL check up page mobile responsive #1064

Closed
wants to merge 1 commit into from
Closed
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
263 changes: 262 additions & 1 deletion checkup.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

.h1{
font-size: 64px;
}
#expect h1{
font-size: 40px;
}
#tips h2{
font-size: 40px;
}
#services {
text-align: center;
display: flex;
Expand All @@ -24,7 +34,31 @@
background-color:#55a5ea;
;
}

.service-btn {
background-color: #3fbcc0a6;
color: #fff;
border: none;
padding: 12px 20px;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
text-align: center;
text-decoration: none;
display: inline-block;
}

.service-btn:hover {
background: linear-gradient(#4a90e2,#022a2d);
transform: scale(1.05);
}

.service-btn:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(85, 165, 234, 0.5);
}


.services-item h2 {
margin-top: 0;
Expand Down Expand Up @@ -134,3 +168,230 @@
transform: scale(1.1);
background-color: #55a5ea;
}

@media (max-width: 768px) {
footer {
width: 100vw !important;
padding: 10px !important;
margin: 0px !important;
}

.other-columns {
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;

}
body {
margin: 0;
}
.hamburger {
display: block;
}

.header_container {
flex-direction: column;
align-items: start;
height: 24.8rem;
transition: 0.55s all ease-out;
/* padding-top: 5px; */
}

.nav_link {
flex-direction: column;
position: relative;
bottom: 40px;
}

/* .nav-link li{
margin-bottom: 5px;
} */
.nav-h {
height: 5.5rem;
width: 100vw;
}

.vis-h {
opacity: 0;
}

.img {
position: relative;
left: 300px;
bottom: 12px;
}




.footer-col {
flex-basis: 100%;
padding: 10px;
margin-right: 50px;
margin-top: 20px;
max-width: 470px;

}
.footer-col h4{
margin-left: 10px;
margin-right: 300px;
}
.footer-col p{
display: flex;
}

.footer-col form button {
margin-left:0px;
display: flexbox;
text-align: center;
align-items: center;
width: 50%;
}


.footer-bottom-wrapper {
flex-direction: column;
align-items: center;
}

.footer-bottom-wrapper small {
margin-bottom: 10px;
margin-right: 50px;
}

.social-links {
justify-content: center;
gap: 10px;
margin-right: 70px;
}

.social-wrapper {
margin-top: 10px;
}
}

@media (max-width: 768px) {
.body{
width: 100vw !important;
}
.content h1{
font-size: 30px;
margin-right: 280px;


}
#expect h1{
font-size:30px ;
margin-right: 280px;
}
.sec-img{
margin-right :300px;
width: 300px;
height: 300px;

}
.services-grid {
grid-template-columns: 1fr;
gap: 10px;
width: 50%;
margin-right: 300px;
}

.content {
flex-direction: column;
align-items: center;
}

.content img {
margin-left: 30px;
width: 100%;
height: auto;
}
#tips h2{
font-size:40px;
padding-left: 150px;
}

.expect-item {
flex-direction: row;
align-items: center;
width: 50%;
margin-left: 50px;
}

.expect-item p {
width: 100%;
height: auto;
}

.expect-item h2 {
margin-bottom: 10px;

}
#tips{
width: 60%;
}

#tips h2 {
font-size: 1.2em;

}

.tip-item {
width: 50%;
margin-left: 0;
}

.tip-grid {
grid-template-columns: 1fr;
gap: 10px;
}
}
@media (max-width: 1024px) {
.services-grid {
grid-template-columns: 1fr;
gap: 10px;
}

.content {
flex-direction: column;
align-items: center;
}

.content img {
width: 80%;
height: auto;
}

.expect-item {
flex-direction: column;
align-items: center;
}

.expect-item p {
width: 100%;
height: auto;
}

.expect-item h2 {
margin-bottom: 10px;
}

#tips h2 {
font-size: 1.5em;
margin-left: 0;
padding-top: 20px;
}

.tip-item {
width: 100%;
margin-left: 0;
}

.tip-grid {
grid-template-columns: 1fr;
gap: 10px;
}

}
19 changes: 14 additions & 5 deletions checkup.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<link rel="stylesheet" href="./Css-Files/testimonial.css" />
<script src="chatboxx.js" defer></script>
<link rel="stylesheet" href="checkup.css">

</head>
<body>

Expand Down Expand Up @@ -99,7 +100,7 @@
<div class="container" style="display:flex ;">
<div class="content">

<h1 style="font-size: 65px;">
<h1>
Welcome to <span style="color: #55a5ea;">RapiDoc!</span> <br /> Your one-stop digital <br> healthcare
destination
</h1>
Expand Down Expand Up @@ -152,7 +153,7 @@ <h2>Pediatric Health Checkup</h2>


<section id="expect">
<h1 style="font-size: 40px;">What to <span style="color: #55a5ea;font-size: 40px;">Expect?</h1>
<h1 >What to <span style="color: #55a5ea;">Expect?</h1>
<div class="expect-grid">
<div class="expect-item">
<h2 >1</h2>
Expand Down Expand Up @@ -192,8 +193,8 @@ <h2>5</h2>
</script>

<section id="tips">
<h2 style="font-size: 40px;">
Health<span style="color: #55a5ea; font-size: 40px;"> Tips</span>
<h2 >
Health<span style="color: #55a5ea; "> Tips</span>

</h2>

Expand Down Expand Up @@ -225,7 +226,7 @@ <h2 style="font-size: 40px;">

</section>

<footer>
<footer >
<div class="footer-wrapper">
<div class="footer-columns">
<div class="other-columns">
Expand Down Expand Up @@ -329,6 +330,14 @@ <h4>RAPIDOC Newsletter</h4><br>
}
}
</script>
<script>
document.getElementById('hamburger-menu').addEventListener('click', function() {
var navMenu = document.getElementById('nav-menu');
// Toggle the 'active' class on the navigation menu
navMenu.classList.toggle('active');
});

</script>

</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ body {
}


@media (max-width:768px) {
/* @media (max-width:768px) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this commented?

.other-columns {
display: flex;
flex-wrap: wrap;
Expand All @@ -719,7 +719,7 @@ body {
display: flex;
gap: 10px;
}
}
} */

.social-wrapper a div i {
color: #afb6c7;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h4>
<div class="col-md-6 col-lg-3 d-flex align-items-stretch mb-5 mb-lg-0">
<div class="icon-box" data-aos="fade-up" data-aos-delay="100">
<div class="icon1"><i class="fas fa-heartbeat"></i></div>
<h4 class="title"><a href=""> Normal checkup</a></h4>
<h4 class="title"><a href="checkup.html"> Normal checkup</a></h4>
<p class="description">Detect medical issues, identify risk factors and illnesses before they start to
cause problems.</p>
</div>
Expand Down
Loading