Skip to content

Commit 7ef5eec

Browse files
committed
Refactor : Add Hero BG image
1 parent ee6cd8f commit 7ef5eec

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,7 @@
7777
.sidebar{
7878
width: 100%;
7979
}
80+
}
81+
.Hero-bg{
82+
width: 100%;
8083
}

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<li><a href="#">Login</a></li>
1818
</ul>
1919
<ul>
20-
<li><a href="#">AShop</a></li>
20+
<li><a href="#">A~Shop</a></li>
2121
<li class="hideOnMobile"><a href="#">Blog</a></li>
2222
<li class="hideOnMobile"><a href="#">Products</a></li>
2323
<li class="hideOnMobile"><a href="#">About</a></li>
@@ -26,6 +26,9 @@
2626
<li class="menu-button" onclick=showSidebar()><a href="#"><svg xmlns="http://www.w3.org/2000/svg" height="26" viewBox="0 96 960 960" width="26"><path d="M120 816v-60h720v60H120Zm0-210v-60h720v60H120Zm0-210v-60h720v60H120Z"/></svg></a></li>
2727
</ul>
2828
</nav>
29+
<main>
30+
<img class="Hero-bg" src="assets/laptop.jpg" alt="Hero-img">
31+
</main>
2932
<script>
3033
function showSidebar(){
3134
const sidebar = document.querySelector('.sidebar')

0 commit comments

Comments
 (0)