Skip to content

Commit

Permalink
navbar and card color
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravbalodi123 committed Feb 22, 2024
1 parent af0117e commit ae2d50a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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:white;
background-color:palegoldenrod;
}

.show-btn{
Expand Down
18 changes: 9 additions & 9 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 style=" color: red;" class="navbar-brand" href="/products" ><i class="fas fa-shopping-basket"
<a 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" style="color: red;" aria-current="page" href="/" >Home</a>
<a class="nav-link" aria-current="page" href="/" >Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/products" style="color: red;" >Products</a>
<a class="nav-link" href="/products" >Products</a>
</li>
<% if (currentUser && currentUser.role === 'seller') { %>
<li class="nav-item">
<a class="nav-link" style="color: red;" href="/products/new" tabindex="-1" aria-disabled="true" >New</a>
<a class="nav-link" 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="color: red;" style="padding-right: 5px; ">Login ||</a>
<a href="/register" class="nav-link" style="color: red;" style="padding-left:0px; ">Sign Up</a>
<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>
<% } else{ %>
<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>
<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>
<a href="/logout" class="nav-link" style="color: red;" >Logout</a>
<a href="/logout" class="nav-link" >Logout</a>
<% } %>

Expand Down
2 changes: 1 addition & 1 deletion views/products/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="carousel-inner">
<div class="carousel-item active">
<img height="500px"
src="https://images-eu.ssl-images-amazon.com/images/G/31/img22/Wireless/devjyoti/GW/Uber/Nov/D103625178_DesktopTallHero_3000x1200._CB574597993_.jpg"
src="https://m.media-amazon.com/images/I/61CiqVTRBEL._SX3000_.jpg"
style="width: 100%; margin: auto;" alt="Slide 1">
</div>
<div class="carousel-item">
Expand Down

0 comments on commit ae2d50a

Please sign in to comment.