Update html_generator.py
Browse files- html_generator.py +14 -0
html_generator.py
CHANGED
@@ -382,17 +382,31 @@ def generate_testimonials_section(testimonials=None):
|
|
382 |
"""
|
383 |
|
384 |
def generate_contact_section():
|
|
|
385 |
"""Generate a contact section with a form"""
|
|
|
386 |
return f"""
|
|
|
387 |
<section class="section" id="contact" style="background-color: #f9fafb;">
|
|
|
388 |
<div class="container">
|
|
|
389 |
<h2 style="font-size: 2rem; text-align: center; margin-bottom: 40px;">Contact Us</h2>
|
|
|
390 |
<form style="max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;">
|
|
|
391 |
<input type="text" placeholder="Your Name" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px;">
|
|
|
392 |
<input type="email" placeholder="Your Email" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px;">
|
|
|
393 |
<textarea placeholder="Your Message" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px; height: 150px;"></textarea>
|
|
|
394 |
<button type="submit" class="btn-primary" style="align-self: center;">Send Message</button>
|
|
|
395 |
</form>
|
|
|
396 |
</div>
|
|
|
397 |
</section>
|
|
|
398 |
"""
|
|
|
382 |
"""
|
383 |
|
384 |
def generate_contact_section():
|
385 |
+
|
386 |
"""Generate a contact section with a form"""
|
387 |
+
|
388 |
return f"""
|
389 |
+
|
390 |
<section class="section" id="contact" style="background-color: #f9fafb;">
|
391 |
+
|
392 |
<div class="container">
|
393 |
+
|
394 |
<h2 style="font-size: 2rem; text-align: center; margin-bottom: 40px;">Contact Us</h2>
|
395 |
+
|
396 |
<form style="max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px;">
|
397 |
+
|
398 |
<input type="text" placeholder="Your Name" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px;">
|
399 |
+
|
400 |
<input type="email" placeholder="Your Email" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px;">
|
401 |
+
|
402 |
<textarea placeholder="Your Message" style="padding: 10px; border: 1px solid #d1d5db; border-radius: 4px; height: 150px;"></textarea>
|
403 |
+
|
404 |
<button type="submit" class="btn-primary" style="align-self: center;">Send Message</button>
|
405 |
+
|
406 |
</form>
|
407 |
+
|
408 |
</div>
|
409 |
+
|
410 |
</section>
|
411 |
+
|
412 |
"""
|