basic project skeleton

This commit is contained in:
2025-04-08 06:37:14 +04:00
parent 2c256a6ef5
commit 62d926fe69
17 changed files with 2705 additions and 2 deletions
+372
View File
@@ -0,0 +1,372 @@
/* Styles pour la page vidéo */
.video-page {
display: grid;
grid-template-columns: 1fr 350px;
gap: 30px;
margin-top: 20px;
}
.video-player-container {
grid-column: 1 / -1;
}
.video-player {
position: relative;
padding-top: 56.25%; /* Ratio 16:9 */
width: 100%;
}
.video-player iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 8px;
}
.video-content {
grid-column: 1;
}
.video-primary-info {
border-bottom: 1px solid #ddd;
padding-bottom: 15px;
margin-bottom: 15px;
}
.video-title {
font-size: 1.5rem;
margin-bottom: 10px;
font-weight: 600;
}
.video-stats {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
color: #666;
font-size: 14px;
}
.video-date {
margin-left: 15px;
}
.video-actions {
display: flex;
margin-top: 10px;
}
.action-button {
display: flex;
align-items: center;
background: none;
border: none;
cursor: pointer;
margin-right: 20px;
color: #333;
font-size: 14px;
}
.action-button i {
margin-right: 5px;
font-size: 18px;
}
.video-secondary-info {
margin-bottom: 30px;
}
.channel-info {
display: flex;
align-items: center;
margin-bottom: 15px;
}
.channel-image {
width: 50px;
height: 50px;
margin-right: 15px;
}
.channel-image img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.channel-details {
flex: 1;
}
.channel-name {
font-size: 16px;
font-weight: 600;
margin-bottom: 5px;
}
.subscribe-button {
background-color: #0d6efd;
color: white;
border: none;
padding: 8px 15px;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s;
}
.subscribe-button:hover {
background-color: #0b5ed7;
}
.video-description {
margin-bottom: 20px;
line-height: 1.6;
font-size: 14px;
}
.video-tags {
margin-top: 10px;
}
.tag {
display: inline-block;
color: #0d6efd;
margin-right: 10px;
font-size: 14px;
}
.video-comments h2 {
font-size: 18px;
margin-bottom: 15px;
}
.comment-form {
margin-bottom: 25px;
}
.comment-form textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 10px;
resize: vertical;
min-height: 80px;
}
.comment-submit {
background-color: #0d6efd;
color: white;
border: none;
padding: 8px 15px;
border-radius: 4px;
cursor: pointer;
float: right;
}
.comments-list {
margin-top: 20px;
}
.comment {
display: flex;
margin-bottom: 20px;
}
.comment-avatar {
width: 40px;
height: 40px;
margin-right: 15px;
}
.comment-avatar img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
.comment-content {
flex: 1;
}
.comment-header {
display: flex;
align-items: center;
margin-bottom: 5px;
}
.comment-author {
font-weight: 600;
margin-right: 10px;
}
.comment-date {
font-size: 12px;
color: #666;
}
.comment-text {
font-size: 14px;
margin-bottom: 5px;
}
.comment-actions button {
background: none;
border: none;
color: #666;
margin-right: 15px;
font-size: 12px;
cursor: pointer;
}
.comment-actions button i {
margin-right: 5px;
}
/* Vidéos associées */
.related-videos {
grid-column: 2;
}
.related-videos h2 {
font-size: 18px;
margin-bottom: 15px;
}
.related-video-card {
display: flex;
margin-bottom: 15px;
cursor: pointer;
}
.related-video-thumbnail {
width: 120px;
height: 68px;
margin-right: 10px;
position: relative;
}
.related-video-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 4px;
}
.related-video-info {
flex: 1;
}
.related-video-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.related-video-channel {
font-size: 12px;
color: #666;
margin-bottom: 2px;
}
.related-video-metadata {
font-size: 12px;
color: #888;
}
/* Media Queries */
@media (max-width: 992px) {
.video-page {
grid-template-columns: 1fr;
}
.related-videos {
grid-column: 1;
}
.related-videos-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
}
.related-video-card {
flex-direction: column;
margin-bottom: 0;
}
.related-video-thumbnail {
width: 100%;
height: 0;
padding-top: 56.25%;
margin-right: 0;
margin-bottom: 8px;
}
.related-video-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
@media (max-width: 768px) {
.video-stats {
flex-direction: column;
align-items: flex-start;
}
.video-actions {
width: 100%;
margin-top: 15px;
justify-content: space-between;
}
.action-button {
margin-right: 0;
}
.video-date {
margin-left: 0;
margin-top: 5px;
}
}
@media (max-width: 576px) {
.related-videos-list {
grid-template-columns: 1fr;
}
.related-video-card {
flex-direction: row;
margin-bottom: 15px;
}
.related-video-thumbnail {
width: 120px;
height: 68px;
padding-top: 0;
margin-right: 10px;
margin-bottom: 0;
}
.comment {
flex-direction: column;
}
.comment-avatar {
margin-bottom: 10px;
}
}