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

UI Improvement for Mobile and Tablets. #248

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
31 changes: 29 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,33 @@
</ul>
</div>

<!-- bottom navbar for mobile phones-->
<div class="mf-optimize-navbar">
<div class="mf-optimize-navbar-home">
<a href="index.html" class="" id="home-hover">
<i class="fa-solid fa-house" class="hover-link current-page"></i>
</a>
<a href="./Pages/About-Us/index.html" class="" id="home-hover">
<i class="fa-solid fa-building-columns"></i>
</a>
<a href="./Pages/Simulation/index.html" class="" id="home-hover">
<i class="fa-solid fa-plug-circle-check"></i>
</a>
<a href="./Pages/3D-Visualizations/index.html" class="" id="home-hover">
<i class="fa-brands fa-unity"></i>
</a>
<a href="./Pages/Quizes/index.html" class="" id="home-hover">
<i class="fa-solid fa-list-check"></i>
</a>
<a href="./Pages/Videos/index.html" class="" id="home-hover">
<i class="fa-solid fa-video"></i>
</a>
<a href="./Pages/Doubt Engine/index.html" class="" id="home-hover">
<i class="fa-solid fa-check-double"></i>
</a>
</div>
</div>

<!-- nav bar -->
<nav id = "main_navbar">
<div class="container main-nav flex">
Expand Down Expand Up @@ -154,11 +181,11 @@
</li>
</ul>
</div>
<div class="hamburger">
<!-- <div class="hamburger">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div> -->
</div>
</nav>

Expand Down
29 changes: 29 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,34 @@ ul {
transition: all 0.3s ease-in-out;
background-color: black;
}

/* bottom bar for mobile devices */
.mf-optimize-navbar{
/* make this bar sticky to the bottom for mobile devices but make a gap like modern bar*/
display: none;
background-color: #ecfcff;
position: fixed;
bottom: 10px;
height: 8vh;
width: 100%;
z-index: 100;
border-top: 2px solid black;
}

.mf-optimize-navbar-home{
display: flex;
justify-content: space-around;
align-items: center;
height: 100%;
}

@media screen and (max-width: 1000px) {
.mf-optimize-navbar{
display: block;
}

}

/* social media section */

*,
Expand All @@ -238,6 +266,7 @@ ul {
top: 30vh;
left: 10px;
z-index: 100;
opacity: 0.7;
}
.mf-social-side-list ul {
list-style: none;
Expand Down
Loading