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
+157
View File
@@ -0,0 +1,157 @@
/* Styles pour la page des catégories */
/* Page d'accueil des catégories */
.categories-showcase {
margin: 30px 0;
}
.categories-showcase h1 {
font-size: 2rem;
margin-bottom: 10px;
color: #333;
text-align: center;
}
.section-description {
text-align: center;
color: #666;
margin-bottom: 30px;
}
.categories-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.category-card-large {
position: relative;
height: 200px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.category-card-large:hover {
transform: translateY(-5px);
}
.category-card-large img {
width: 100%;
height: 100%;
object-fit: cover;
}
.category-card-large .category-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 20px;
}
.category-name-large {
color: white;
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 5px;
}
.category-description-short {
color: rgba(255, 255, 255, 0.8);
font-size: 0.9rem;
}
/* Page d'une catégorie spécifique */
.category-header {
margin-bottom: 30px;
}
.category-banner {
height: 250px;
background-size: cover;
background-position: center;
position: relative;
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
}
.category-banner .category-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
display: flex;
align-items: center;
justify-content: center;
}
.category-banner h1 {
color: white;
font-size: 2.5rem;
text-align: center;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.category-description {
text-align: center;
max-width: 800px;
margin: 0 auto;
color: #555;
font-size: 1.1rem;
line-height: 1.6;
}
.category-videos {
margin-bottom: 40px;
}
.no-videos {
text-align: center;
padding: 40px 0;
color: #666;
}
/* Media Queries */
@media (min-width: 768px) {
.categories-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (min-width: 992px) {
.categories-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 576px) {
.categories-grid {
grid-template-columns: 1fr;
}
.category-card-large {
height: 150px;
}
.category-banner {
height: 180px;
}
.category-banner h1 {
font-size: 1.8rem;
}
.category-description {
font-size: 0.95rem;
}
}
+206
View File
@@ -0,0 +1,206 @@
/* Styles pour la page de recherche */
.search-page {
margin: 30px 0;
}
.search-header {
margin-bottom: 30px;
}
.search-header h1 {
font-size: 1.8rem;
margin-bottom: 15px;
color: #333;
}
.search-container {
max-width: 600px;
margin-bottom: 20px;
}
.search-container form {
display: flex;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
}
.search-container input {
flex: 1;
padding: 12px 15px;
border: none;
font-size: 16px;
}
.search-container button {
background-color: #0d6efd;
color: white;
border: none;
padding: 0 20px;
cursor: pointer;
font-size: 18px;
}
.search-results-count {
margin-bottom: 20px;
color: #666;
font-size: 14px;
}
.search-results {
display: flex;
flex-direction: column;
gap: 20px;
}
.search-result-item {
display: flex;
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: transform 0.2s;
}
.search-result-item:hover {
transform: translateY(-3px);
}
.search-result-thumbnail {
width: 246px;
height: 138px;
position: relative;
flex-shrink: 0;
}
.search-result-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
}
.video-duration {
position: absolute;
bottom: 8px;
right: 8px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
}
.search-result-info {
padding: 15px;
flex: 1;
}
.search-result-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 8px;
color: #333;
}
.search-result-metadata {
display: flex;
font-size: 13px;
color: #666;
margin-bottom: 8px;
}
.search-result-views {
margin-right: 15px;
}
.search-result-channel {
font-size: 14px;
color: #0d6efd;
margin-bottom: 8px;
}
.search-result-description {
font-size: 14px;
color: #555;
margin-bottom: 10px;
line-height: 1.4;
}
.search-result-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag {
font-size: 12px;
color: #0d6efd;
}
.no-results, .search-instructions {
text-align: center;
padding: 60px 0;
color: #666;
}
.no-results i, .search-instructions i {
color: #ccc;
margin-bottom: 20px;
}
.no-results h2, .search-instructions h2 {
font-size: 20px;
margin-bottom: 10px;
color: #333;
}
.no-results p, .search-instructions p {
font-size: 16px;
max-width: 500px;
margin: 0 auto;
}
/* Media Queries */
@media (max-width: 768px) {
.search-result-item {
flex-direction: column;
}
.search-result-thumbnail {
width: 100%;
height: 0;
padding-top: 56.25%; /* 16:9 aspect ratio */
}
.search-result-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.search-header h1 {
font-size: 1.5rem;
}
}
@media (max-width: 576px) {
.search-container input {
padding: 10px;
}
.search-container button {
padding: 0 15px;
}
.search-result-title {
font-size: 16px;
}
.search-result-description {
font-size: 13px;
}
}
+397
View File
@@ -0,0 +1,397 @@
/* Styles généraux */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f8f9fa;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}
a {
text-decoration: none;
color: #0d6efd;
}
img {
max-width: 100%;
height: auto;
}
/* Header */
header {
background-color: #fff;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
}
.logo img {
height: 40px;
}
.desktop-nav ul {
display: flex;
list-style: none;
}
.desktop-nav ul li {
margin-left: 20px;
}
.desktop-nav ul li a {
color: #333;
font-weight: 500;
transition: color 0.3s;
}
.desktop-nav ul li a:hover {
color: #0d6efd;
}
.mobile-menu-toggle {
display: none;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #333;
}
/* Hero Section */
.hero {
background-color: #0d6efd;
color: white;
padding: 60px 0;
text-align: center;
margin-bottom: 40px;
}
.hero-content h1 {
font-size: 2.5rem;
margin-bottom: 10px;
}
.hero-content p {
font-size: 1.2rem;
margin-bottom: 30px;
}
.search-container {
max-width: 600px;
margin: 0 auto;
}
.search-container form {
display: flex;
}
.search-container input {
flex: 1;
padding: 12px 15px;
border: none;
border-radius: 4px 0 0 4px;
font-size: 16px;
}
.search-container button {
background-color: #fff;
color: #0d6efd;
border: none;
border-radius: 0 4px 4px 0;
padding: 0 20px;
cursor: pointer;
font-size: 18px;
}
/* Video Sections */
section {
margin-bottom: 40px;
}
section h2 {
font-size: 1.8rem;
margin-bottom: 20px;
color: #333;
}
.video-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.video-card {
background-color: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
.video-card:hover {
transform: translateY(-5px);
}
.video-thumbnail {
position: relative;
padding-top: 56.25%; /* 16:9 aspect ratio */
}
.video-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.video-duration {
position: absolute;
bottom: 10px;
right: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
}
.video-info {
padding: 15px;
}
.video-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 8px;
}
.video-channel {
font-size: 14px;
color: #666;
margin-bottom: 5px;
}
.video-metadata {
display: flex;
font-size: 12px;
color: #888;
}
.video-views {
margin-right: 10px;
}
/* Categories Section */
.category-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
.category-card {
position: relative;
height: 120px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.category-card img {
width: 100%;
height: 100%;
object-fit: cover;
}
.category-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
display: flex;
align-items: flex-end;
padding: 15px;
}
.category-name {
color: white;
font-weight: 600;
}
/* Footer */
footer {
background-color: #333;
color: #fff;
padding: 40px 0;
}
.footer-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.footer-column {
flex: 1;
min-width: 200px;
margin-bottom: 20px;
}
.footer-column h3 {
margin-bottom: 15px;
font-size: 18px;
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 8px;
}
.footer-column ul li a {
color: #ccc;
transition: color 0.3s;
}
.footer-column ul li a:hover {
color: #fff;
}
.footer-bottom {
text-align: center;
padding-top: 20px;
margin-top: 20px;
border-top: 1px solid #444;
}
/* Mobile Menu */
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 200;
display: none;
}
.mobile-menu {
position: fixed;
top: 0;
left: 0;
width: 250px;
height: 100%;
background-color: white;
padding: 20px;
overflow-y: auto;
}
.mobile-menu-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}
.mobile-menu-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
}
.mobile-menu-nav ul {
list-style: none;
}
.mobile-menu-nav ul li {
margin-bottom: 15px;
}
.mobile-menu-nav ul li a {
color: #333;
font-size: 18px;
font-weight: 500;
}
/* Media Queries */
@media (max-width: 992px) {
.video-grid {
grid-template-columns: repeat(2, 1fr);
}
.category-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.desktop-nav {
display: none;
}
.mobile-menu-toggle {
display: block;
}
.hero {
padding: 40px 0;
}
.hero-content h1 {
font-size: 2rem;
}
.footer-container {
flex-direction: column;
}
.footer-column {
margin-bottom: 30px;
}
}
@media (max-width: 576px) {
.video-grid {
grid-template-columns: 1fr;
}
.category-grid {
grid-template-columns: repeat(2, 1fr);
}
.hero-content h1 {
font-size: 1.8rem;
}
.search-container input,
.search-container button {
padding: 10px;
}
}
+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;
}
}