improve video page

This commit is contained in:
2025-04-08 09:59:15 +04:00
parent 295e83e1d6
commit ef779c518a
2 changed files with 46 additions and 28 deletions
+20 -2
View File
@@ -2,12 +2,14 @@
.video-page {
display: grid;
grid-template-columns: 1fr 350px;
grid-template-rows: auto auto;
gap: 30px;
margin-top: 20px;
}
.video-player-container {
grid-column: 1 / -1;
grid-row: 1;
}
.video-player {
@@ -30,6 +32,10 @@
.video-content {
grid-column: 1;
grid-row: 2;
display: flex;
flex-direction: column;
gap: 20px;
}
.video-primary-info {
@@ -57,13 +63,22 @@
.video-metadata {
display: flex;
flex-direction: column;
gap: 0.25rem;
flex-direction: row;
align-items: center;
gap: 1rem;
}
.video-views, .video-date {
font-size: 0.875rem;
color: #666;
display: flex;
align-items: center;
gap: 5px;
}
.video-views i, .video-date i {
font-size: 0.9375rem;
color: #555;
}
.video-actions {
@@ -165,6 +180,7 @@
/* Commentaires */
.comments-section {
grid-column: 1;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
@@ -294,6 +310,8 @@
/* Vidéos suggérées */
.video-suggestions {
grid-column: 2;
grid-row: 2;
align-self: start;
}
.suggestion-list {
+26 -26
View File
@@ -205,8 +205,8 @@ if (empty($videoData) || isset($videoData['error'])) {
<div class="video-info">
<div class="video-metadata">
<span class="video-views"><?php echo formatViewCount($video['views']); ?> vues</span>
<span class="video-date"><?php echo formatDate($video['date']); ?></span>
<span class="video-views"><i class="fas fa-eye"></i> <?php echo formatViewCount($video['views']); ?> vues</span>
<span class="video-date"><i class="far fa-calendar-alt"></i> <?php echo formatDate($video['date']); ?></span>
</div>
<div class="video-actions">
@@ -248,6 +248,30 @@ if (empty($videoData) || isset($videoData['error'])) {
</div>
<?php endif; ?>
</div>
<?php if (ENABLE_COMMENTS): ?>
<!-- Section commentaires -->
<div class="comments-section">
<h3>Commentaires</h3>
<div class="comment-form">
<div class="comment-avatar">
<img src="img/default-avatar.jpg" alt="Avatar">
</div>
<div class="comment-input">
<textarea placeholder="Ajouter un commentaire public..."></textarea>
<div class="comment-buttons">
<button class="comment-cancel">Annuler</button>
<button class="comment-submit">Commenter</button>
</div>
</div>
</div>
<div class="comments-list">
<p class="no-comments">Les commentaires sont en cours de développement.</p>
</div>
</div>
<?php endif; ?>
</div>
<div class="video-suggestions">
@@ -276,30 +300,6 @@ if (empty($videoData) || isset($videoData['error'])) {
<p>Aucune vidéo suggérée disponible</p>
<?php endif; ?>
</div>
<?php if (ENABLE_COMMENTS): ?>
<!-- Section commentaires -->
<div class="comments-section">
<h3>Commentaires</h3>
<div class="comment-form">
<div class="comment-avatar">
<img src="img/default-avatar.jpg" alt="Avatar">
</div>
<div class="comment-input">
<textarea placeholder="Ajouter un commentaire public..."></textarea>
<div class="comment-buttons">
<button class="comment-cancel">Annuler</button>
<button class="comment-submit">Commenter</button>
</div>
</div>
</div>
<div class="comments-list">
<p class="no-comments">Les commentaires sont en cours de développement.</p>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>