Files
flask_blog/templates/leave_comment.html
2026-03-15 03:50:35 +01:00

81 lines
1.6 KiB
HTML

<style>
/* Modernizing the container */
.comment-card {
background: #ffffff;
border: 1px solid #e1e4e8;
border-radius: 8px;
padding: 24px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-top: 30px;
}
.comment-card h4 {
margin-top: 0;
font-weight: 600;
color: #333;
margin-bottom: 20px;
}
/* Styling the inputs */
.comment-card .form-control {
border-radius: 6px;
border: 1px solid #d1d5da;
box-shadow: none;
transition:
border-color 0.2s,
box-shadow 0.2s;
padding: 10px 12px;
}
.comment-card .form-control:focus {
border-color: #007bff;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
outline: none;
}
.comment-btn {
margin-top: -5px;
padding: 4px 12px;
}
</style>
<div class="comment-card">
<h4>Leave a Comment</h4>
<form
role="form"
method="POST"
action="{{ url_for('post_comment', post_id=post.id) }}"
>
<div class="form-group">
<input
type="text"
name="author"
class="form-control"
placeholder="Your Name"
required
style="margin-bottom: 15px"
/>
<input
type="text"
name="honeypot"
style="display: none !important"
tabindex="-1"
autocomplete="off"
/>
<textarea
name="content"
class="form-control"
rows="4"
placeholder="Write your thoughts..."
required
></textarea>
</div>
<button type="submit" class="btn-read-more comment-btn">
Post Comment
</button>
</form>
</div>