This commit is contained in:
2025-01-05 23:51:52 -05:00
parent 6a3143bda2
commit 0a78cb57a0
20 changed files with 20624 additions and 62 deletions

View File

@@ -1,70 +1,397 @@
/* css/style.css */
/* Global Colors */
:root {
--color-bg: #1a1a2e;
--color-primary: #9b59b6; /* Purple */
--color-secondary: #e74c3c; /* Red */
--color-text: #ecf0f1; /* Light gray */
--color-muted: #95a5a6; /* Muted gray */
}
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
max-width: 800px;
margin: 20px auto;
padding: 0 20px;
background: #1a1a1a;
color: #ffffff;
font-family: 'Arial', sans-serif;
background-color: var(--color-bg);
color: var(--color-text);
line-height: 1.6;
margin: 0;
}
video {
.container {
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
}
/* Header */
header {
text-align: center;
margin-bottom: 2rem;
}
header h1 {
font-size: 2.5rem;
color: var(--color-primary);
}
header p {
font-size: 1.1rem;
color: var(--color-muted);
}
/* Buttons */
button {
background-color: var(--color-primary);
color: var(--color-text);
border: none;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: var(--color-secondary);
}
button:focus {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Forms */
form input {
width: 100%;
max-width: 800px;
margin: 20px 0;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
background: #000;
padding: 0.5rem;
border: 1px solid var(--color-muted);
border-radius: 5px;
background-color: var(--color-bg);
color: var(--color-text);
margin-bottom: 1rem;
font-size: 1rem;
}
.info-container {
background: #2a2a2a;
padding: 15px;
border-radius: 8px;
margin: 15px 0;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
form input:focus {
border-color: var(--color-primary);
outline: none;
}
/* Video List */
#videoList {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.5rem;
}
.video-card {
background-color: #24243e;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
transition: transform 0.3s;
display: flex;
flex-direction: column;
}
.video-card:hover {
transform: translateY(-5px);
}
.video-card img {
width: 100%;
display: block;
}
.video-card .details {
padding: 1rem;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.video-card h3 {
font-size: 1.2rem;
color: var(--color-primary);
margin-bottom: 0.5rem;
}
.video-card button {
width: 100%;
margin-top: 1rem;
}
/* Highlight dev mode videos */
.video-card.border-red-500 {
border: 2px solid red;
}
.video-card p.text-red-500 {
color: var(--color-secondary) !important;
}
.video-card p.text-green-500 {
color: #2ecc71; /* Green */
}
/* Player Section */
#playerSection {
background-color: #24243e;
padding: 1rem;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
#playerSection video {
width: 100%;
border-radius: 10px;
}
.progress-bar {
background: #3a3a3a;
height: 6px;
border-radius: 3px;
width: 100%;
background-color: #4a4a4a;
border-radius: 9999px;
overflow: hidden;
margin: 10px 0;
height: 8px;
margin-bottom: 0.5rem;
}
.progress-bar-fill {
background: #2196F3;
height: 100%;
width: 0;
transition: width 0.3s ease;
border-radius: 3px;
background-color: var(--color-primary);
width: 0%;
transition: width 1s ease-in-out;
}
.stats {
display: flex;
justify-content: space-between;
font-size: 14px;
color: #aaa;
margin-top: 8px;
font-size: 0.9rem;
color: var(--color-muted);
}
.status {
color: #2196F3;
font-size: 14px;
margin-bottom: 8px;
/* Video Player Modal */
#playerModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
display: none; /* Hidden by default */
justify-content: center;
align-items: center;
padding: 1rem;
z-index: 1000;
}
h1 {
color: #fff;
font-size: 24px;
font-weight: 500;
#playerModal .bg-white {
background-color: #24243e;
padding: 1rem;
border-radius: 10px;
position: relative;
width: 90%;
max-width: 800px;
}
.peers {
#playerModal video {
width: 100%;
border-radius: 10px;
}
#playerModal .progress-bar {
width: 100%;
background-color: #4a4a4a;
border-radius: 9999px;
overflow: hidden;
height: 8px;
margin-top: 0.5rem;
}
#playerModal .progress-bar-fill {
height: 100%;
background-color: var(--color-primary);
width: 0%;
transition: width 1s ease-in-out;
}
#playerModal .stats {
display: flex;
gap: 15px;
justify-content: space-between;
font-size: 0.9rem;
color: var(--color-muted);
}
.speed {
color: #4CAF50;
#closePlayer {
background-color: var(--color-secondary);
color: var(--color-text);
border: none;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
#closePlayer:hover {
background-color: var(--color-primary);
}
#closePlayer:focus {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Notification Containers */
#errorContainer, #successContainer {
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
padding: 1rem;
}
#errorContainer {
background-color: #f8d7da;
color: #721c24;
}
#successContainer {
background-color: #d4edda;
color: #155724;
}
/* Responsive Design */
@media (max-width: 768px) {
header h1 {
font-size: 2rem;
}
header p {
font-size: 1rem;
}
button {
font-size: 0.9rem;
padding: 0.4rem 0.8rem;
}
form input {
font-size: 0.9rem;
padding: 0.4rem;
}
.video-card h3 {
font-size: 1rem;
}
#playerSection video, #playerModal video {
height: auto;
}
}
/* Tailwind's hidden class */
.hidden {
display: none;
}
/* Updated Video Card Styles */
.video-card {
transition: all 0.3s ease;
background-color: #1a1a2e;
}
.video-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.video-card img.thumbnail {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Modal Styles */
#playerModal {
backdrop-filter: blur(5px);
}
#playerModal .modal-content {
background-color: #1a1a2e;
max-height: 90vh;
overflow-y: auto;
}
#playerModal video {
background-color: #000;
}
/* Aspect Ratio Container */
.aspect-w-16 {
position: relative;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}
.aspect-w-16 > * {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
object-fit: cover;
}
/* Stats Container */
.stats-container {
background-color: rgba(26, 26, 46, 0.8);
backdrop-filter: blur(5px);
border-radius: 0.5rem;
}
/* Progress Bar Animation */
.progress-bar-fill {
transition: width 0.3s ease;
}
#videoList {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
padding: 1rem;
}
@media (max-width: 640px) {
#videoList {
grid-template-columns: 1fr;
gap: 1rem;
}
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.video-card {
transition: all 0.3s ease;
}
.video-card:hover {
transform: translateY(-2px);
}
.video-card h3 {
line-height: 1.4;
}