first commit

This commit is contained in:
2026-02-01 04:39:12 -05:00
commit bb35db384f
11 changed files with 819 additions and 0 deletions

244
frontend/styles.css Normal file
View File

@@ -0,0 +1,244 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
-webkit-user-select: none;
user-select: none;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
background: #000;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 100vh;
}
.container {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
.video-container {
width: 100%;
height: 100%;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.video-item {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.3s ease-in-out;
display: flex;
align-items: center;
justify-content: center;
background: #000;
touch-action: none;
z-index: 1;
}
.video-item.active {
opacity: 1;
z-index: 2;
}
.video-item.prev {
opacity: 0;
z-index: 1;
}
.video-item.next {
opacity: 0;
z-index: 1;
}
video {
width: 100%;
height: 100%;
object-fit: contain;
max-width: 100%;
max-height: 100%;
-webkit-user-select: none;
user-select: none;
-webkit-media-controls-panel: auto;
}
/* iOS Safari specific */
video::-webkit-media-controls {
display: none;
}
/* Mobile view - portrait */
@media (max-aspect-ratio: 1/1) {
video {
width: 100%;
height: auto;
object-fit: cover;
}
}
/* Desktop view - landscape */
@media (min-aspect-ratio: 1/1) {
video {
width: auto;
height: 100%;
object-fit: cover;
}
}
.video-info {
position: absolute;
bottom: 20px;
left: 20px;
color: white;
z-index: 10;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
pointer-events: none;
}
.video-title {
font-size: clamp(14px, 4vw, 24px);
font-weight: 600;
margin-bottom: 8px;
}
.video-controls {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 15px;
z-index: 10;
}
.control-btn {
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.3);
border: none;
color: white;
font-size: 20px;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(10px);
}
.control-btn:hover {
background: rgba(255, 255, 255, 0.5);
transform: scale(1.1);
}
.control-btn:active {
transform: scale(0.95);
}
.loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 18px;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s;
z-index: 20;
}
.loading.show {
opacity: 1;
}
.loading-bar {
position: absolute;
top: 0;
left: 0;
height: 3px;
background: linear-gradient(90deg, #ff006e, #00f5ff);
width: 0%;
transition: width 0.1s linear;
}
.gesture-indicator {
position: absolute;
top: 20px;
left: 20px;
color: rgba(255, 255, 255, 0.5);
font-size: 12px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
}
.gesture-indicator.show {
opacity: 1;
}
/* Swipe animation */
.video-item.swipe-up {
animation: slideUp 0.3s ease-out forwards;
}
.video-item.swipe-down {
animation: slideDown 0.3s ease-out forwards;
}
@keyframes slideUp {
from {
transform: translateY(0);
}
to {
transform: translateY(-100%);
}
}
@keyframes slideDown {
from {
transform: translateY(0);
}
to {
transform: translateY(100%);
}
}
/* Loading spinner */
.spinner {
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top: 3px solid #fff;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}