-
Notifications
You must be signed in to change notification settings - Fork 0
/
productpage.html
191 lines (174 loc) · 6.4 KB
/
productpage.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>J.Crew : Clothes,Shoes,Accessories</title>
<link
rel="stylesheet"
href="https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css"
/>
<link rel="stylesheet" href="styles/index.css" />
<link rel="stylesheet" href="styles/productpage.css" />
</head>
<body>
<div class="dropdown"></div>
<div id="navbar"></div>
<h4 id="have_question">Have a question? We can help.</h4>
<hr />
<div id="product_detail">
<div id="product_photo">
<i class="wishlist fa-light fa-heart"></i>
<img
id="product_image"
src="https://www.jcrew.com/s7-img-facade/BI407_PP3536?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=540&hei=540"
/>
</div>
<div id="detailed_info">
<p>NEW COLOR</p>
<h3 id="product_name">
National Park Foundation X J.Crew Made-in-the-USA graphic T-shirt
</h3>
<p>ITEM B1407</p>
<p>Shop All <b>National Park Foundation</b></p>
<div id="rating_sidebar">
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<p>Be The First To Write Review</p>
</div>
<h4 id="product_price">Price Rs.</h4>
<h4 id="Striked_price">striked</h4>
<p id="discount">Available Discount</p>
<p id="color_type">Color</p>
<div id="color">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<p id="size_type">Size:</p>
<p><i>All Sizes Are US Sizes</i></p>
<div id="size">
<div>X-small</div>
<div>Small</div>
<div>Medium</div>
<div>Large</div>
<div>X-Large</div>
<div>XX-Large</div>
</div>
<div id="qunatity_div">
<p>Quantities :</p>
<select name="" id="quantity">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</div>
<div id="checkout_div">
<button id="checkout">ADD TO BAG</button>
<button><i class="fa-light fa-heart"></i></button>
</div>
<hr />
<p><b>PRODUCT DETAILS</b></p>
<p id="description"></p>
<ul>
<li>Cotten</li>
<li>Short Sleeves</li>
<li>Machine Wash</li>
<li>Made In USA</li>
</ul>
<p><b>SUSTAINABLE</b></p>
<p>
This item contains a sustainable material, like organic cotton,
recycled polyester, or with certifications like Fair Trade.
</p>
</div>
</div>
<p id="rece_para"><b>Customer Also Love</b></p>
<div id="same_category"></div>
<p id="rece_para"><b>Recently Viewed</b></p>
<div id="recently_viewed">
<img
src="https://www.jcrew.com/s7-img-facade/BH604_PT1775?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/J1785_WT0002?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/AN866_PP3384?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/AU428_BL8308?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/AV317_BL8133?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/AZ684_BL8133?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/BE052_BL7527?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/BG925_BL8133?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/AA709_DM2263?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/BE604_PP3346?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/BH246_GR7522?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
<img
src="https://www.jcrew.com/s7-img-facade/BH420_PK5711?fmt=jpeg&qlt=90,0&resMode=sharp&op_usm=.1,0,0,0&crop=0,0,0,0&wid=300&hei=300"
alt=""
/>
</div>
<hr />
<div id="foot"></div>
<div id="back_footer"></div>
</body>
</html>
<script src="scripts/productpage.js"></script>
<script src="scripts/sidebar.js"></script>
<script type="module">
import { navbar, sidebar } from "./components/navbar.js";
import { footer, foot } from "./components/backfooter.js";
document.getElementById("navbar").innerHTML = navbar();
document.querySelector(".dropdown").innerHTML = sidebar();
document.getElementById("back_footer").innerHTML = footer();
document.getElementById("foot").innerHTML = foot();
let userName = localStorage.getItem("username");
if (userName) {
document.querySelector("#LoginSignUp").innerText = userName;
}
document.getElementById("logo").addEventListener("click", function () {
window.location.href = "index.html";
});
let kart = JSON.parse(localStorage.getItem("cartData"));
let wish = JSON.parse(localStorage.getItem("favItem"));
document.getElementById("wishlist_count").innerText = wish.length;
document.getElementById("cartlist_count").innerText = kart.length;
</script>