improve video page
This commit is contained in:
+20
-2
@@ -2,12 +2,14 @@
|
|||||||
.video-page {
|
.video-page {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 350px;
|
grid-template-columns: 1fr 350px;
|
||||||
|
grid-template-rows: auto auto;
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-player-container {
|
.video-player-container {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
|
grid-row: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-player {
|
.video-player {
|
||||||
@@ -30,6 +32,10 @@
|
|||||||
|
|
||||||
.video-content {
|
.video-content {
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
|
grid-row: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-primary-info {
|
.video-primary-info {
|
||||||
@@ -57,13 +63,22 @@
|
|||||||
|
|
||||||
.video-metadata {
|
.video-metadata {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
gap: 0.25rem;
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-views, .video-date {
|
.video-views, .video-date {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: #666;
|
color: #666;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-views i, .video-date i {
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
.video-actions {
|
.video-actions {
|
||||||
@@ -165,6 +180,7 @@
|
|||||||
|
|
||||||
/* Commentaires */
|
/* Commentaires */
|
||||||
.comments-section {
|
.comments-section {
|
||||||
|
grid-column: 1;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
@@ -294,6 +310,8 @@
|
|||||||
/* Vidéos suggérées */
|
/* Vidéos suggérées */
|
||||||
.video-suggestions {
|
.video-suggestions {
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
|
grid-row: 2;
|
||||||
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.suggestion-list {
|
.suggestion-list {
|
||||||
|
|||||||
@@ -205,8 +205,8 @@ if (empty($videoData) || isset($videoData['error'])) {
|
|||||||
|
|
||||||
<div class="video-info">
|
<div class="video-info">
|
||||||
<div class="video-metadata">
|
<div class="video-metadata">
|
||||||
<span class="video-views"><?php echo formatViewCount($video['views']); ?> vues</span>
|
<span class="video-views"><i class="fas fa-eye"></i> <?php echo formatViewCount($video['views']); ?> vues</span>
|
||||||
<span class="video-date"><?php echo formatDate($video['date']); ?></span>
|
<span class="video-date"><i class="far fa-calendar-alt"></i> <?php echo formatDate($video['date']); ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="video-actions">
|
<div class="video-actions">
|
||||||
@@ -248,6 +248,30 @@ if (empty($videoData) || isset($videoData['error'])) {
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</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>
|
||||||
|
|
||||||
<div class="video-suggestions">
|
<div class="video-suggestions">
|
||||||
@@ -276,30 +300,6 @@ if (empty($videoData) || isset($videoData['error'])) {
|
|||||||
<p>Aucune vidéo suggérée disponible</p>
|
<p>Aucune vidéo suggérée disponible</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</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>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user