91 lines
1.8 KiB
HTML
91 lines
1.8 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;
|
|
margin-right: 0px;
|
|
padding: 8px 20px;
|
|
width: 100%; /* Fills container width */
|
|
display: block; /* Enables block-level full width */
|
|
}
|
|
|
|
.comment-btn:hover {
|
|
color: #333;
|
|
background-color: #ffffff;
|
|
border-color: #007bff;
|
|
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
|
|
}
|
|
</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>
|