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

Website is responsive #662

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
73 changes: 69 additions & 4 deletions Html-Files/Css-Files/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ section::before {
display: inline-block;
color: white;
}

.nav_link li a {
transition: all 0.3s ease 0s;
color: white;
Expand All @@ -46,7 +45,6 @@ section::before {
color: #55a5ea;
text-decoration: underline 2.5px rgb(3, 3, 94);
}

.header_container {
background-color: #022a2d;
opacity: 0.9;
Expand All @@ -62,7 +60,7 @@ section::before {
.container {
position: relative;
min-width: 1100px;
min-height: 550px;
min-height: 400px;
display: flex;
z-index: 1000;
/* border-radius: 22px; */
Expand Down Expand Up @@ -235,12 +233,79 @@ section::before {
}

/* Responsive adjustments */
@media (max-width: 1200px) {

@media (max-width: 715px) {
.header_container{
width: 300%;
}
.nav_link li{
display: none;
}
.responsive li{
list-style: none;
display: flex;
justify-content: center;
background-color: #0d9480;
width: 40vw;
position: relative;
left: 130vw;
border-radius: 56px;
padding:10px 0px;
}

}

@media (min-width: 1361px) {
.nav_link span{
display: none;
}
.responsive li{
display: none;
}
.container .contactInfo {
top: 0;
height: 550px;
position: relative;
box-shadow: none;
border-radius: 0;
}

.container .contactForm {
position: relative;
width: calc(100% - 350px);
padding-left: 0;
margin-left: 0;
padding: 40px;
height: 550px;
box-shadow: none;
border-radius: 0;
}

}
@media (max-width: 1361px) and (min-width: 715px) {
.container {
width: 90%;
margin: 20px;
box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.responsive li{
list-style: none;
display: flex;
justify-content: center;
background-color: #0d9480;
width: 30vw;
position: relative;
left: 58vw;
border-radius: 56px;
padding:10px 0px;
}

.header_container{
width: 150vw;
}
.nav_link li{
display: none;
}

.container .contactInfo {
top: 0;
Expand Down
15 changes: 14 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
<link rel="stylesheet" href="./Html-Files/Css-Files/styles.css">

<script type="text/javascript">
(function(){
Expand Down Expand Up @@ -360,8 +361,20 @@
<li><a href="login.html"><i class="bi bi-box-arrow-right"></i> Sign in/Sign up</a></li><br>
<a href="./Html-Files/Doctor Experience.html"><button>Find a Doctor</button></a>
</ul>

</nav>
</header>
</header>
<nav class="responsive">
<li><a href="index.html"><i class="bi bi-house-door-fill"></i> Home</a></li>
<li><a href="#about"><i class="bi bi-info-circle-fill"></i> About</a></li>
<li><a href="Html-Files/news.html"><i class="bi bi-newspaper"></i> News</a></li>
<li><a href="dex.html"><i class="bi bi-gear"></i> Service</a></li>
<li><a href="#patient-portal"><i class="bi bi-person"></i> Patient Portal</a></li>
<li><a href="#doctors"><i class="bi bi-person-circle"></i> Doctor</a></li>
<li><a href="Html-Files/contact.html"><i class="bi bi-telephone"></i>Contact us</a></li>
<li><a href="rateus.html"><i class="bi bi-star"></i>Rate Us</a></li>
<li><a href="login.html"><i class="bi bi-box-arrow-right"></i> Sign in/Sign up</a></li><br>
</nav>

<!-- ############# Header ############# -->

Expand Down