remove comments input
This commit is contained in:
+65
-1
@@ -243,11 +243,75 @@
|
|||||||
padding: 1.5rem;
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comments-section .section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title-wrapper {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
font-size: 1.25rem;
|
font-size: 1.25rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-bottom: 1.5rem;
|
margin: 0;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-on-peertube {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
color: var(--primary-red);
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
padding: 0.5rem 0.75rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: background-color 0.2s;
|
||||||
|
line-height: 1;
|
||||||
|
margin-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-on-peertube:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-on-peertube i {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comments {
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
color: #666;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comments i {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comments p {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
max-width: 500px;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-comments p:last-child {
|
||||||
|
color: #999;
|
||||||
|
font-size: 0.875rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-form {
|
.comment-form {
|
||||||
|
|||||||
@@ -261,29 +261,24 @@ if (empty($videoData) || isset($videoData['error'])) {
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (ENABLE_COMMENTS): ?>
|
<!-- Commentaires -->
|
||||||
<!-- Section commentaires -->
|
|
||||||
<div class="comments-section">
|
<div class="comments-section">
|
||||||
<h3>Commentaires</h3>
|
<div class="section-header">
|
||||||
|
<div class="section-title-wrapper">
|
||||||
<div class="comment-form">
|
<h2 class="section-title">Commentaires</h2>
|
||||||
<div class="comment-avatar">
|
|
||||||
<img src="img/default-avatar.jpg" alt="Avatar">
|
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-input">
|
<a href="<?php echo PEERTUBE_URL; ?>/videos/watch/<?php echo $videoData['uuid']; ?>" target="_blank" class="view-on-peertube">
|
||||||
<textarea placeholder="Ajouter un commentaire public..."></textarea>
|
<i class="fas fa-external-link-alt"></i> Voir sur PeerTube
|
||||||
<div class="comment-buttons">
|
</a>
|
||||||
<button class="comment-cancel">Annuler</button>
|
|
||||||
<button class="comment-submit">Commenter</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="comments-list">
|
<div class="comments-list">
|
||||||
<p class="no-comments">Les commentaires sont en cours de développement.</p>
|
<div class="no-comments">
|
||||||
|
<i class="fas fa-comments"></i>
|
||||||
|
<p>Les commentaires sont visibles mais l'ajout de commentaires est désactivé sur cette page.</p>
|
||||||
|
<p>Pour ajouter des commentaires, veuillez visiter la vidéo sur PeerTube.</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="video-suggestions">
|
<div class="video-suggestions">
|
||||||
|
|||||||
Reference in New Issue
Block a user