Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravbalodi123 committed Feb 15, 2024
1 parent 03621da commit af0117e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ main{
}

.card{
background-color:rgb(90, 90, 227);
background-color:white;
}

.show-btn{
Expand Down
6 changes: 3 additions & 3 deletions views/partials/footer.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<footer class="footer py-3 mt-auto">
<div class="container d-flex justify-content-center align-items-center">
<p class="text-center text-light fw-lighter">&copy; Shopping-Cart 2024</p>
<footer class="footer py-3 mt-auto" >
<div class="container d-flex justify-content-center align-items-center" >
<p class="text-center text-light fw-lighter" style="color: red;">&copy; Shopping-Cart 2024</p>
</div>
</footer>
20 changes: 10 additions & 10 deletions views/partials/navbar.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav class="navbar fixed-top navbar-expand-lg navbar-dark" >
<div class="container">
<a class="navbar-brand" href="/products" ><i class="fas fa-shopping-basket"
<a style=" color: red;" class="navbar-brand" href="/products" ><i class="fas fa-shopping-basket"
style="margin-right: 10px;font-size: 2rem; "></i> Shopping Cart </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02"
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
Expand All @@ -9,14 +9,14 @@
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="/" >Home</a>
<a class="nav-link" style="color: red;" aria-current="page" href="/" >Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/products" >Products</a>
<a class="nav-link" href="/products" style="color: red;" >Products</a>
</li>
<% if (currentUser && currentUser.role === 'seller') { %>
<li class="nav-item">
<a class="nav-link" href="/products/new" tabindex="-1" aria-disabled="true" >New</a>
<a class="nav-link" style="color: red;" href="/products/new" tabindex="-1" aria-disabled="true" >New</a>
</li>
<% } %>

Expand All @@ -25,14 +25,14 @@
<div class="navbar-nav ml-auto">

<% if (!currentUser) { %>
<a href="/login" class="nav-link" style="padding-right: 5px; ">Login ||</a>
<a href="/register" class="nav-link" style="padding-left:0px; ">Sign Up</a>
<a href="/login" class="nav-link" style="color: red;" style="padding-right: 5px; ">Login ||</a>
<a href="/register" class="nav-link" style="color: red;" style="padding-left:0px; ">Sign Up</a>
<% } else{ %>
<a href="#" class="nav-link text-capitalize">Hello <%= currentUser.username %> </a>
<a href="/user/cart" class="nav-link"><i class="fas fa-shopping-cart"></i>
<sup><span class="badge bg-danger"><%=currentUser.cart.length%></span></sup>
<a href="#" class="nav-link text-capitalize" style="color: red;">Hello <%= currentUser.username %> </a>
<a href="/user/cart" class="nav-link" style="color: red;"><i class="fas fa-shopping-cart"></i>
<sup><span class="badge bg-danger" ><%=currentUser.cart.length%></span></sup>
</a>
<a href="/logout" class="nav-link" >Logout</a>
<a href="/logout" class="nav-link" style="color: red;" >Logout</a>
<% } %>

Expand Down

0 comments on commit af0117e

Please sign in to comment.