-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
345 lines (296 loc) · 10.3 KB
/
index.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SocialStackPro Reviews</title>
<style>
:root {
--primary-color: #4a90e2;
--secondary-color: #f39c12;
--text-color: #333;
--background-color: #f5f5f5;
--white: #ffffff;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
margin: 0;
padding: 0;
}
.container {
width: 90%;
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background-color: var(--primary-color);
color: var(--white);
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
}
header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
margin: 0;
font-size: 1.5rem;
}
nav a {
color: var(--white);
text-decoration: none;
margin-left: 20px;
font-weight: bold;
transition: color 0.3s ease;
}
nav a:hover {
color: var(--secondary-color);
}
.hero {
background-color: var(--primary-color);
color: var(--white);
text-align: center;
padding: 4rem 0;
}
.hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-button {
display: inline-block;
background-color: var(--secondary-color);
color: var(--white);
padding: 12px 24px;
text-decoration: none;
font-weight: bold;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: #e67e22;
}
.section {
background-color: var(--white);
margin: 2rem 0;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.section h2 {
color: var(--primary-color);
border-bottom: 2px solid var(--primary-color);
padding-bottom: 10px;
margin-bottom: 20px;
}
form {
display: grid;
gap: 1rem;
}
.form-group {
display: flex;
flex-direction: column;
}
label {
margin-bottom: 0.5rem;
font-weight: bold;
}
input[type="text"],
input[type="email"],
textarea {
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
.rating {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
}
.rating > input {
display: none;
}
.rating > label {
position: relative;
width: 1.1em;
font-size: 2rem;
color: #FFD700;
cursor: pointer;
}
.rating > label::before {
content: "\2605";
position: absolute;
opacity: 0;
}
.rating > label:hover:before,
.rating > label:hover ~ label:before {
opacity: 1 !important;
}
.rating > input:checked ~ label:before {
opacity: 1;
}
#reviews-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1rem;
}
.testimonial {
background-color: #fff;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
footer {
background-color: var(--primary-color);
color: var(--white);
text-align: center;
padding: 2rem 0;
margin-top: 2rem;
}
footer a {
color: var(--white);
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
@media (max-width: 768px) {
header .container {
flex-direction: column;
}
nav {
margin-top: 1rem;
}
nav a {
margin: 0 10px;
}
}
</style>
</head>
<body>
<header>
<div class="container">
<h1>SocialStackPro Reviews</h1>
<nav>
<a href="#about">About</a>
<a href="#submit-review">Submit Review</a>
<a href="#reviews">Reviews</a>
<a href="#contact">Contact</a>
</nav>
</div>
</header>
<div class="hero">
<div class="container">
<h1>Share Your Experience with SocialStackPro</h1>
<p>We value your feedback and would love to hear about your experience with our training sessions. Your reviews help us improve and inspire others.</p>
<a href="#submit-review" class="cta-button">Submit Your Review</a>
</div>
</div>
<div class="container">
<div class="section" id="about">
<h2>About SocialStackPro</h2>
<p>SocialStackPro is a leading tool in social media management, empowering real estate professionals with AI-driven content creation and organization. Our workshops help agents enhance their strategies and stay ahead of the curve.</p>
<ul>
<li>AI-powered content creation</li>
<li>Organize and schedule posts easily</li>
<li>Customizable social media campaigns</li>
<li>Real-time insights and analytics</li>
</ul>
<img src="images/S_logo_white_circle_200x200.png" alt="SocialStackPro Logo" style="max-width: 200px; display: block; margin: 20px auto;" />
</div>
<div class="section" id="submit-review">
<h2>Submit Your Review</h2>
<form id="reviewForm" method="POST" action="/.netlify/functions/save-review">
<input type="hidden" name="form-name" value="review">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="course">Course Taken:</label>
<input type="text" id="course" name="course" required>
</div>
<div class="form-group">
<label for="rating">Rating:</label>
<div class="rating">
<input type="radio" name="rating" id="star5" value="5"><label for="star5">★</label>
<input type="radio" name="rating" id="star4" value="4"><label for="star4">★</label>
<input type="radio" name="rating" id="star3" value="3"><label for="star3">★</label>
<input type="radio" name="rating" id="star2" value="2"><label for="star2">★</label>
<input type="radio" name="rating" id="star1" value="1"><label for="star1">★</label>
</div>
</div>
<div class="form-group">
<label for="comments">Comments:</label>
<textarea id="comments" name="comments" rows="4" required></textarea>
</div>
<button type="submit" class="cta-button">Submit Review</button>
</form>
</div>
<div class="section" id="reviews">
<h2>What Our Students Are Saying</h2>
<div id="reviews-container"></div>
</div>
</div>
<footer id="contact">
<div class="container">
<p>For more information, visit our main site at <a href="https://www.socialstackpro.com" target="_blank">SocialStackPro</a>.</p>
<p><a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a></p>
<p>SocialStackPro Inc., 14101 Panama City Beach Pkwy, Panama City Beach, FL 32413, United States.</p>
</div>
</footer>
<script src="js/main.js"></script>
<script>
document.getElementById('reviewForm').addEventListener('submit', async function (event) {
event.preventDefault();
const formData = new FormData(this);
const data = {};
formData.forEach((value, key) => {
data[key] = value;
});
const response = await fetch('/.netlify/functions/save-review', {
method: 'POST',
body: JSON.stringify(data)
});
if (response.ok) {
window.location.href = '/success';
} else {
alert('There was a problem with your submission.');
}
});
async function fetchReviews() {
const response = await fetch('/.netlify/functions/get-reviews');
const reviews = await response.json();
const container = document.getElementById('reviews-container');
container.innerHTML = '';
reviews.forEach(review => {
const reviewElement = document.createElement('div');
reviewElement.className = 'testimonial';
const stars = '★'.repeat(review.rating) + '☆'.repeat(5 - review.rating);
reviewElement.innerHTML = `
<div class="star-rating">${stars}</div>
<p>"${review.comments}"</p>
<p><strong>${review.name}</strong></p>
`;
container.appendChild(reviewElement);
});
}
fetchReviews();
</script>
</body>
</html>