Skip to content

Commit

Permalink
popular section mobile responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
xyryc committed Aug 4, 2024
1 parent 296a499 commit 686db79
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ <h1>Start your Journey as Influencer</h1>

<main>
<!-- Partners section -->
<div class="container partners hide">
<div class="container partners">
<img src="images/partners.png" alt="" />
</div>

<!-- Popular section -->
<div class="container popular hide">
<div class="container popular">
<h1>Popular Collection</h1>
<p class="description">
Explore our most popular camera accessories, handpicked for their
Expand Down Expand Up @@ -219,7 +219,7 @@ <h2>Microphone</h2>
</div>

<!-- Featured section -->
<div class="container featured hide">
<div class="container featured">
<div class="featured-image-container">
<img src="images/gear.png" alt="" />
</div>
Expand All @@ -236,7 +236,7 @@ <h1>Featured products at one place</h1>
</main>

<!-- Footer section -->
<footer class="hide">
<footer class="">
<div class="container text-container">
<h3>Shutter Shop</h3>
<p>Copyright &copy; 2024 Shutter Shop</p>
Expand Down
27 changes: 24 additions & 3 deletions styles/gears.css
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ footer .social i {

.nav-bar {
padding-top: 2rem;
border: 2px solid red;
}

/* Banner section */
Expand All @@ -377,7 +376,7 @@ footer .social i {
top: 40px;
}

.banner .text-content{
.banner .text-content {
width: 100%;
justify-content: center;
}
Expand All @@ -395,8 +394,30 @@ footer .social i {
font-weight: 500;
}

.banner button{
.banner button {
width: 60%;
margin: 0 auto;
}

/* Partners */
.partners {
display: none;
}

/* Popular */
.popular {
width: 90%;
}

.popular .description {
width: 90%;
}

.card-container {
grid-template-columns: repeat(1, 1fr);
}

.card:hover {
transform: scale(1.02);
}
}

0 comments on commit 686db79

Please sign in to comment.