Skip to content

Commit 296a499

Browse files
committed
banner section mobile responsive
1 parent f958aa2 commit 296a499

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
crossorigin="anonymous"
1616
></script>
1717
</head>
18+
1819
<body class="poppins-regular" style="cursor: url(images/arrow.cur), auto">
1920
<header>
2021
<!-- Navbar -->
@@ -27,12 +28,12 @@ <h3>Shutter Shop</h3>
2728
<p>Sign Up</p>
2829
<p>Login</p>
2930
<i class="fa-solid fa-magnifying-glass" id="search-icon"></i>
30-
<i class="fa-brands fa-opencart" id="cart-icon"></i>
31+
<i class="fa-brands fa-opencart"></i>
3132
</div>
3233
</nav>
3334

3435
<!-- Banner Section -->
35-
<div class="container banner hide">
36+
<div class="container banner">
3637
<div class="text-content">
3738
<h1>Start your Journey as Influencer</h1>
3839
<p>

styles/gears.css

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ footer .social i {
335335

336336
/* Media Queries */
337337
@media screen and (max-width: 576px) {
338+
/* Navbar */
338339
#navbar-icon {
339340
display: inline;
340341
}
@@ -348,7 +349,54 @@ footer .social i {
348349
}
349350

350351
.nav-bar {
352+
padding-top: 2rem;
351353
border: 2px solid red;
352-
padding-top: 2.1rem;
354+
}
355+
356+
/* Banner section */
357+
.container {
358+
padding-top: 2rem;
359+
}
360+
361+
.banner {
362+
flex-direction: column-reverse;
363+
gap: 0;
364+
}
365+
366+
.image-container {
367+
width: 100%;
368+
}
369+
370+
.background-image {
371+
width: 100%;
372+
}
373+
374+
.overlay-image {
375+
width: 100%;
376+
left: 0;
377+
top: 40px;
378+
}
379+
380+
.banner .text-content{
381+
width: 100%;
382+
justify-content: center;
383+
}
384+
385+
.banner .text-content h1 {
386+
font-size: 1.75rem;
387+
line-height: 2.5rem;
388+
text-align: center;
389+
}
390+
391+
.banner .text-content p {
392+
width: 100%;
393+
text-align: center;
394+
font-size: 0.875rem;
395+
font-weight: 500;
396+
}
397+
398+
.banner button{
399+
width: 60%;
400+
margin: 0 auto;
353401
}
354402
}

0 commit comments

Comments
 (0)