Skip to content

Commit

Permalink
Cart price updated.
Browse files Browse the repository at this point in the history
Cart price showing on menu page is updated and also added some style on buttons of menu page.
  • Loading branch information
manishhansal committed Mar 7, 2022
1 parent 4fc9561 commit cf05dbb
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 90 deletions.
5 changes: 3 additions & 2 deletions cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
font-size: 20px;
font-weight: bolder;
margin-bottom: 2%;
cursor: pointer;
}

h1 {
Expand Down Expand Up @@ -84,7 +85,7 @@
h3.style.fontSize = "18px"

let p1 = document.createElement(`p`)
p1.innerHTML = `<b>${item.price}</b>`
p1.innerHTML = "₹ " + `<b>${item.price}</b>`

let div_2 = document.createElement(`div`)
div_2.className = "description"
Expand Down Expand Up @@ -145,7 +146,7 @@
h3.style.fontSize = "18px"

let p1 = document.createElement(`p`)
p1.innerHTML = `<b>${item.price}</b>`
p1.innerHTML = "₹ " + `<b>${item.price}</b>`

let div_2 = document.createElement(`div`)
div_2.className = "description"
Expand Down
2 changes: 1 addition & 1 deletion components/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function navbar() {
</div>
<div class="bucketIconDiv">
<span>₹0</span>
<span id="priceUpdate">₹0</span>
<div class="bucketIcon">
<img src="https://i.ibb.co/ygnYs9m/bucket-cart-icon.jpg"/>
<div id="cartIconCount">0</div>
Expand Down
8 changes: 8 additions & 0 deletions menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ body {
background-color: red;
padding: 10px;
border-radius: 20px;
cursor: pointer;
border: 1px solid red;
}

.right-menu-section button:hover {
font-size: 20px;
border: 1px solid rgba(32,33,36,.6509803921568628);
background-color: rgba(32,33,36,.6509803921568628);
}

#b_b, #b_m, #bgr, #s_h, #snk, #bvg {
Expand Down
Loading

0 comments on commit cf05dbb

Please sign in to comment.