Skip to content

Commit

Permalink
fix: mobile adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
becooq81 committed Feb 5, 2024
1 parent 2872884 commit abff66a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
46 changes: 29 additions & 17 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,23 @@ progress {
font-size: 150%;
}

#pill-main {
animation-name: example;
animation-duration: 1.5s; /* Adjust as needed */
animation-iteration-count: 1; /* Plays only once */
animation-fill-mode: forwards; /* Keeps the last frame */
height: auto;
background-position: center;
background-size: cover;
width: 85vw;
height: 95vh;
background-repeat: no-repeat;
}

#pill-img {
display: none;
}

}


Expand All @@ -673,6 +690,14 @@ progress {
.tech-image-container img {
max-width: 50%;
}
#pill-main {
background-image: none;
}
#pill-img {
display: block;
width: 100%;
height: auto;
}
.keyboard-header {
font-weight: bold;
}
Expand Down Expand Up @@ -8598,24 +8623,11 @@ textarea.form-control-lg {
--bs-text-opacity: 0.75;
}

#pill-main {
animation-name: example;
animation-duration: 1.5s; /* Adjust as needed */
animation-iteration-count: 1; /* Plays only once */
animation-fill-mode: forwards; /* Keeps the last frame */
height: auto;
background-position: center;
background-size: cover;
width: 85vw;
height: 95vh;
background-repeat: no-repeat;
}

@keyframes example {
0%, 24.99999% {background-image: url("../assets/components/main-1.png");}
25%, 49.99999% {background-image: url("../assets/components/main-2.png");}
50%, 74.99999% {background-image: url("../assets/components/main-3.png");}
75%, 100% {background-image: url("../assets/components/main-4.png");}
0% {background-image: url("../assets/components/main-1.png");}
25% {background-image: url("../assets/components/main-2.png");}
50% {background-image: url("../assets/components/main-3.png");}
100% {background-image: url("../assets/components/main-4.png");}
}

.text-opacity-100 {
Expand Down
4 changes: 1 addition & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,16 @@
<!-- Navigation-->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<div class="container px-4">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ms-auto" >
<li class="nav-item"><a target="_blank" href="https://github.com/becooq81/Pill" class="nav-link" id="nav-bar-text-custom">
<img class="email-icon"src="assets/icons/github.svg">
</a></li>
</ul>
</div>
</div>
</nav>
<section class="bg-primary text-white">
<div id="pill-main" style="background-position:center;">
<img src="assets/logo/main_page.png" alt="Find My Pill" style="width:100%" class="pill-img">
</div>
</section>
<section id="pill-intro">
Expand Down

0 comments on commit abff66a

Please sign in to comment.