-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathredirect.html
246 lines (200 loc) · 6.84 KB
/
redirect.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html>
<head>
<script>
// Retrieve the clicked pack information from localStorage
var clickedPack = JSON.parse(localStorage.getItem("clickedPack"));
var clickedImg = JSON.parse(localStorage.getItem("clickedImg"));
// Display the information on the page
document.addEventListener("DOMContentLoaded", function () {
var h1 = document.createElement("h1");
h1.textContent = clickedPack.name;
var img = document.createElement("img");
img.src = clickedImg;
var h2 = document.createElement("h2");
h2.textContent = clickedPack.description;
var Redcontainer = document.getElementById('Redcontainer');
var div = document.createElement('div');
div.style.height = "100%";
div.appendChild(img);
div.appendChild(h1);
div.appendChild(h2);
var lDesc = clickedPack.LongDescription;
var ul = document.createElement("ul");
ul.className = "circle-list";
for(var j = 0;j<lDesc.length;j++){
var li = document.createElement("li");
var h4 = document.createElement("h4");
h4.textContent = lDesc[j];
li.appendChild(h4);
ul.appendChild(li);
}
div.appendChild(ul);
var price = document.createElement("h2");
price.textContent = clickedPack.price;
div.appendChild(price);
Redcontainer.appendChild(div);
// Display reviews
var reviewContainer = document.getElementById('review');
var reviews = clickedPack.reviews;
for (var i = 0; i < reviews.length; i++) {
var review = reviews[i];
var reviewDiv = document.createElement('div');
reviewDiv.className = 'review';
var starDiv = document.createElement('div');
starDiv.textContent = 'Star: ';
// Create stars with a darker color for the specific star rating of each review
for (var j = 1; j <= review.star; j++) {
var star = document.createElement('span');
star.textContent = '★'; // Use star character
star.style.color = 'darkorange'; // Darker color for the star
starDiv.appendChild(star);
}
var descriptionDiv = document.createElement('div');
descriptionDiv.textContent = 'Description: ' + review.description;
reviewDiv.appendChild(starDiv);
reviewDiv.appendChild(descriptionDiv);
reviewContainer.appendChild(reviewDiv);
}
});
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
body{
background-color: rgb(255, 255, 255);
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
.container1{
width: 100%;
height: 1100px;
display: flex;
flex-direction: column;
/* background-color: aqua; */
background-color: white;
font-family: 'Poppins', sans-serif;
}
.topbar{
/* margin-left: 5%; */
/* top: 10px; */
width: 100%;
height: 70px;
/* padding-top: 15px;
padding-bottom: 15px; */
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 3px solid transparent;
background-color: whitesmoke;
position: fixed;
border: 1px solid;
/* border-radius: 20px; */
z-index: 1;
}
.tabs a{
text-decoration: none;
color: black;
margin-right: 25px;
font-size: 20px;
}
.tabs ul{
list-style-type: none;
display: flex;
margin-right: 20px;
}
.tabs a:hover{
color: darkorange;
transition-duration: 0.2s;
}
.logo{
margin-bottom: 10px;
margin-left: 30px;
}
.container2{
margin-top: 100px;
height: 900px;
width: 80%;
/* background-color: brown; */
background-color: hsl(39, 77%, 83%,0.5);
margin-left: 10%;
border-radius: 20px;
}
.container2 img{
width: 40%;
height: 250px;
margin-top: 10px;
margin-left: 30%;
}
.reviews{
height: 450px;
width: 80%;
/* background-color: red; */
background-color: hsl(39, 77%, 83%,0.5);
margin-left: 9.5%;
border-radius: 10px;
border: solid;
border-width: thick;
/* border-color: maroon; */
border-color: black;
overflow: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.review{
width: 40%;
height: 40%;
background-color: rgb(255, 255, 255);
margin: 5%;
}
.review span {
font-size: 1.5em; /* Adjust the size as needed */
}
.button{
position: absolute;
margin-left: 45%;
margin-top: 35%;
width: 250px;
height: 50px;
background-color: darkorange;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
}
.booknow a{
text-decoration: none;
color: white;
font-size: 20px;
}
.booknow a:hover{
color:bisque;
}
</style>
</head>
<body>
<div class="container1" >
<div class="topbar">
<div class="logo"><img src="CEBTOURS LOGO2.svg" alt="" width="200px" height="150px"></div>
<div class="tabs">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="PackageMain.html">Packages</a></li>
<li><a href="">About Us</a></li>
</ul>
</div>
</div>
<div class="container2" id="Redcontainer">
<div class="button">
<div class="booknow">
<a href="fillform.html">Book Now</a>
</div>
</div>
</div>
<div class="reviews" id="review">
</div>
</div>
</body>
</html>