Skip to content

Commit

Permalink
linked pages
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyanil22 committed May 9, 2022
1 parent 5130d43 commit c82a48f
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Ncart.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down
2 changes: 1 addition & 1 deletion gsignin.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down
2 changes: 1 addition & 1 deletion gsignup.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down
27 changes: 23 additions & 4 deletions homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@
padding-top: 20px;
z-index: 200;
}
#navbar__container > div > p {
#navbar__container > div > a{
color: white;
text-decoration: none;
}
#navbar__container > div > a > p {
font-size: 11px;
font-weight: bold;
padding: 16px 7px 0;
Expand Down Expand Up @@ -707,7 +711,7 @@
<!-- Navbar -->
<div id="navbar__container">
<div>
<p>EMAIL SIGN UP</p>
<a href="gsignup.html"><p>EMAIL SIGN UP</p></a>
<div>
<div class="menu__item">
<a href="#">
Expand All @@ -718,7 +722,7 @@
</a>
</div>
<div class="menu__item">
<a href="usersign.html">
<a id="profile" href="#">
<img
src="https://www.bobbibrown.in/sites/bobbibrown/themes/bb_base/img/icons/svg/MyAccount-White.svg"
alt="profile"
Expand All @@ -736,7 +740,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down Expand Up @@ -1220,4 +1224,19 @@ <h4>FOLLOW US</h4>
new_tab.append(div);
new_tab.style.zIndex = "100";
});


let profile = document.querySelector("#profile").addEventListener("click",proFunc);

function proFunc(){
// event.preventDefault();
let userData = JSON.parse(localStorage.getItem("userData"));
if(userData == null || userData == undefined ){
window.location.href = "usersign.html";
}
else{
window.location.href = "userProfile.html";
}
}

</script>
2 changes: 1 addition & 1 deletion makeup.html
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down
2 changes: 1 addition & 1 deletion skincare.html
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down
2 changes: 1 addition & 1 deletion usersign.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>
<div>
<a href="#" id="logo">
<a href="homepage.html" id="logo">
<img
src="https://www.bobbibrown.in/media/export/cms/logo.png"
alt="Bobbi Brown"
Expand Down

0 comments on commit c82a48f

Please sign in to comment.