-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbed.html
175 lines (169 loc) · 7.63 KB
/
bed.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
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>épipla</title>
<link rel="stylesheet" href="bed.css">
</head>
<body>
<h1><center>Bed</center></h1>
<div id="office">
<div class="cards">
<img id='c1' class='c' src="https://ii1.pepperfry.com/media/catalog/product/j/a/1100x1210/jacklin-king-size-bed-in-cream-colour-by-durian-jacklin-king-size-bed-in-cream-colour-by-durian-dalq6a.jpg">
<div id="chair">Jacklin Fabric King Size Bed in Cream Colour<hr>
<div class="price">₹1500</div>
</div>
</div>
<div class="cards">
<img id='c2' class='c' src="https://www.getmycouch.com/cdn/shop/files/TordonSideTable_77.png?v=1706366232">
<div id="chair">Stylo Upholstered King Size Box Storage Bed
<hr>
<div class="price">₹3000</div>
</div>
</div>
<div class="cards">
<img id='c3' class='c' src="https://ii1.pepperfry.com/media/catalog/product/c/e/1100x1210/cesar-king-size-upholstered-bed-in-beige-colour-by-dreamzz-furniture-cesar-king-size-upholstered-bed-h6c3lw.jpg">
<div id="chair">Cesar Fabric Upholstered King Size Bed in Beige Colour<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c4' class='c' src="https://www.casafurnishing.in/wp-content/uploads/2023/03/off-white-38.jpg">
<div id="chair">Upholstered Bed | New Bed Design | King/Queen<hr>
<div class="price">₹3000</div>
</div>
</div>
<div class="cards">
<img id='c5' class='c' src="https://wakefitdev.gumlet.io/img/npl_modified_images/SW_BED/WSWB7872SWRMG/1.jpg">
<div id="chair">Swirl Solid Wood King Size Without Storage Bed<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c6' class='c' src="https://damara.in/cdn/shop/files/AmsterdamCanalbed-01.jpg?v=1709915666&width=700">
<div id="chair">Amsterdam Bed With Storage<hr>
<div class="price">₹3500</div>
</div>
</div>
<div class="cards">
<img id='c7' class='c' src="https://www.ulcdn.net/images/products/807994/slide/666x363/FNCOMB51BL32474_4.jpg?1683889402">
<div id="chair">Belize Upholstered Queen Bed With Essential Foam Mattress<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c8' class='c' src="https://www.ulcdn.net/images/products/97045/slide/666x363/FNCOMB11TK11441_1.jpg?1686121428">
<div id="chair">Terence Solid Wood King Size Bed in Teak Finish
<hr>
<div class="price">₹3000</div>
</div>
</div>
<div class="cards">
<img id='c9' class='c' src="https://www.ulcdn.net/images/products/842427/product/JJBDNS62PT10780_LP.jpg?1691748411">
<div id="chair">Dallas Engineered Wood Queen Size Non Storage Bed in Provincial Teak Finish<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c10' class='c' src="https://www.ulcdn.net/images/products/802911/slide/666x363/Durban_Non_Storage_Bed-Queen_Finish-Mahogany_1.jpg?1683805925">
<div id="chair">Durban Solid Wood Non Storage Bed With Essential Foam Mattress<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c11' class='c' src="https://www.ulcdn.net/images/products/703022/slide/666x363/FNCOMB11MH32351_1.jpg?1686118048">
<div id="chair">Florence Solid Wood Queen Size Hydraulic Storage Bed in Mahogany Finish<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c12' class='c' src="https://www.ulcdn.net/images/products/469052/slide/666x363/Athens_Compact_Bed_White_1.jpg?1641277251">
<div id="chair">Athens White Compact Bed (Solid Wood)<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c13' class='c' src="https://www.ulcdn.net/images/products/811853/slide/666x363/a.jpg?1684323609">
<div id="chair">Aruba Engineered Wood Queen Size Hydraulic Storage Bed in Classic Walnut Finish<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c14' class='c' src="https://www.ulcdn.net/images/products/826617/slide/666x363/a.jpg?1686638127">
<div id="chair">Taarkashi Solid Wood Queen Size Non Storage Bed in American Walnut Finish<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c15' class='c' src="https://ii1.pepperfry.com/media/catalog/product/s/a/1100x1210/savvy-leatherette-upholstered-queen-size-bed-in-blue-colour-savvy-leatherette-upholstered-queen-size-gp8qzz.jpg">
<div id="chair">Savvy Leatherette Upholstered Queen Size Bed in Blue Colour<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c16' class='c' src="https://images.durian.in/Durian/durian/product/800x800/528531722680693.jpg?tr=w-1200,q-100,lo-true">
<div id="chair"><hr>
<div id="chair">Upholstered Queen Size Bed with Hydraulic Storage
<hr>
<div class="price">₹2500</div>
</div>
</div>
</div>
</body>
</html>
<div class="cards">
<img id='c17' class='c' src="https://cdn.shopify.com/s/files/1/0044/1208/0217/files/ALPS_PRIME_white_LS.jpg?v=1681730622">
<div id="chair"> Alps Prime Bed With Semi Hydraulic Storage (White)<hr>
<div class="price">₹2500</div>
</div>
</div>
<div class="cards">
<img id='c18' class='c' src="https://pritihome.com/wp-content/uploads/2024/08/PorbaMangoWoodBed1.jpg">
<div id="chair">Wooden Bed<hr>
<div class="price">₹2500</div>
</div>
</div>
</div> -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>épipla</title>
<link rel="stylesheet" href="bed.css">
</head>
<body>
<h1><center>Beds</center></h1>
<div id="office">
<!-- Chair cards will be dynamically inserted here -->
</div>
<script>
const officeDiv = document.getElementById('office');
// Function to fetch chair data and images from Unsplash API
async function fetchChairData() {
try {
const response = await fetch('https://api.unsplash.com/search/photos?query=bed&client_id=MIuFsXm_pdrrWzlDJkgna1KcEfobWWCb8whlSip_2rg'); // Replace with your actual Unsplash API access key
const data = await response.json();
const chairs = data.results;
// Loop through the chair data and dynamically create cards
chairs.forEach((chair, index) => {
const chairCard = `
<div class="cards">
<img id="c${index + 1}" class="c" src="${chair.urls.small}" alt="${chair.alt_description}">
<div id="chair">${chair.alt_description ? chair.alt_description : 'Chair'}<hr>
<div class="price">₹${(1500 + index * 500)}</div>
</div>
</div>
`;
officeDiv.innerHTML += chairCard;
});
} catch (error) {
console.error('Error fetching chair data:', error);
}
}
// Call the function to fetch and display chair data
fetchChairData();
</script>
</body>
</html>