-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproductPage.html
More file actions
185 lines (175 loc) · 5.83 KB
/
Copy pathproductPage.html
File metadata and controls
185 lines (175 loc) · 5.83 KB
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
<!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">
<script src="https://kit.fontawesome.com/a1703e299a.js" crossorigin="anonymous"></script>
<title>ProductPage</title>
<link rel="stylesheet" href="./styles/productPage.css">
<link rel="stylesheet" href="./styles/index.css" />
<link rel="stylesheet" href="./styles/navbar.css">
<link
rel="icon"
href="./images/0_overstock.com_logo-thumb.jpg"
sizes="16x16"
type="image/png"
/>
</head>
<style>
</style>
<body>
<div id="navbar" style="height: 30px; width: 50%;"></div>
<p id="top">Furniture / Living Room Furniture / Living Room Chairs / Accent Chairs</p>
<div id="main1">
</div>
<i style="margin-left: 67px;margin-top: 100px;">Share This Product:</i>
<div id="icons">
<i class="fa-solid fa-envelope" id="email"></i>
<i class="fa-brands fa-facebook" style="color: blue;"></i>
<i class="fa-brands fa-twitter-square"></i>
<i class="fa-brands fa-pinterest-square"></i>
</div>
<div id="specs">
<p>Details & Specs</p>
<p>Customer Reviews</p>
<p>Q & A</p>
<p>Tips & Inspiration</p>
<p>Shipping & Returns</p>
</div>
<div id="ItemDet">
<div id="details_Item">
<h3>Details</h3>
<div class="box1">
<h4>ITEM#: 35430517</h4>
<p>A sumptuous, buttery design sets this sofa apart, making for an utterly glamorous focal point in your space. The velvet upholstery is highlighted with channel stitching on the arms and back for classic flair, as tonal piping on the arms' edges delivers a tailored touch.</p>
<h5>Features:</h5>
<ul>
<li>Made of birch, foam, and polyester</li>
<li>Includes one 3-seat velvet sofa only</li>
<li>Robust birch wood legs and frame</li>
<li>Robust polyester velvet fabric upholstery</li>
<li>Channel-stitched detailing</li>
<li>Tonal piping on edges</li>
<li>Poly foam filling for cushioned seating</li>
<li>Dark brown finish on birch components</li>
</ul>
<h5>Color Options:</h5>
<ul>
<li>Black</li>
<li>Blush</li>
<li>Emerald</li>
</ul>
<h5>Dimensions</h5>
<ul>
<li>Overall: 83.25 inches wide x 30 inches deep x 30.25 inches tall</li>
<li>Seat: 22.5 inches deep x 68.5 inches wide x 18.75 inches high
</li>
<li>Arms: 30.25 inches high</li>
</ul>
</div>
</div>
<div id="spec_Details">
<h3>Specs</h3>
<div class="box1">
<h4>Features</h4>
<table>
<tbody>
<tr>
<td>Style</td>
<td>Bohemian & Eclectic Modern & Contemporary</td>
</tr>
<tr>
<td>Material</td>
<td> Birch Velvet </td>
</tr>
<tr>
<td>Pattern </td>
<td> Solid </td>
</tr>
<tr>
<td>Print </td>
<td> Solid </td>
</tr>
<tr>
<td>Assembly </td>
<td> Assembly Required </td>
</tr>
<tr>
<td>Arm Style </td>
<td> Tuxedo Arms </td>
</tr>
<tr>
<td>Back Style </td>
<td> Tight Back </td>
</tr>
<tr>
<td>Color </td>
<td> Black Brown Green Pink </td>
</tr>
<tr>
<td>Cushion Fill </td>
<td>Polyester Fill </td>
</tr>
<tr>
<td>Seat Comfort </td>
<td> Semi-Firm </td>
</tr>
<tr>
<td>Seat Style </td>
<td> Tight Seat </td>
</tr>
<tr>
<td>seats Up To </td>
<td> 3</td>
</tr>
<tr>
<td>Upholstery Material </td>
<td> Velvet </td>
</tr>
<tr>
<td>Warranty </td>
<td> Velvet</td>
</tr>
<tr>
<td>Model Number </td>
<td> 311863 </td>
</tr>
<tr>
<td>County of Origin </td>
<td> China </td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div id="footer"></div>
<div id="end"></div>
</body>
</html>
<script type="module">
import {apiCall, appendArticles} from "./scripts/productPage.js";
let selected_id = JSON.parse(localStorage.getItem("selected_id"));
//https://overstockapi.herokuapp.com/products/mainCategory=${selected_cat}
let res = await apiCall(`https://overstockapi.herokuapp.com/products/id=${selected_id}`);
console.log(res);
let parent = document.getElementById("main1");
appendArticles(res,parent);
</script>
<script type="module">
import navbar from './components/navbar.js'
import { footer, end } from "./components/footer.js";
let navbar_div = document.getElementById("navbar");
navbar_div.innerHTML = navbar();
let sectionDiv = document.querySelector(".section-div > div");
sectionDiv.addEventListener("mouseover", function () {
let dropDownContainer = document.querySelector(".dropdown-content-part");
dropDownContainer.style.display = "flex";
dropDownContainer.addEventListener("mouseout", function () {
dropDownContainer.style.display = "none";
});
});
document.querySelector("#footer").innerHTML = footer();
document.querySelector("#end").innerHTML = end();
</script>