Skip to content

Commit

Permalink
Add icons on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepanshi-05 committed May 14, 2024
1 parent ead379f commit b58faa2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 6 additions & 3 deletions public/css/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
body{

}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap');

*{
Expand Down Expand Up @@ -47,6 +45,11 @@ h1:hover{
width: 7%;

}

nav .fas {
margin-right: 5px; /* Add some space between the icon and text */
}

.nav-links{
list-style: none;

Expand Down
10 changes: 7 additions & 3 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@

<body>
<!-- navgation bar -->
<header>
<img class=" logo" src="img/logo.png" alt="logo">
<h1>Petari</h1>
<!-- navgation bar -->
<header>
<img class=" logo" src="img/logo.png" alt="logo">
<h1>Petari</h1>
<nav>
<ul class="nav-links">
<li><a href="#"> About</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#" <i class="fa-solid fa-house</i>> About</a></li>
<li><a href="#" <i class="fa-duotone fa-boxes-stacked"></i>>Projects</a></li>
<li><a href="#" <i class="fa-solid fa-id-badge"></i>>Contact</a></li>
Expand Down

0 comments on commit b58faa2

Please sign in to comment.