aboutsummaryrefslogtreecommitdiff
path: root/front-end/src/App.css
diff options
context:
space:
mode:
Diffstat (limited to 'front-end/src/App.css')
-rw-r--r--front-end/src/App.css322
1 files changed, 322 insertions, 0 deletions
diff --git a/front-end/src/App.css b/front-end/src/App.css
new file mode 100644
index 0000000..1548a0d
--- /dev/null
+++ b/front-end/src/App.css
@@ -0,0 +1,322 @@
+/* src/App.css */
+body {
+ margin: 0;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
+ 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
+ sans-serif;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+
+.App {
+ text-align: center;
+ min-height: 100vh;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+}
+
+.App-header {
+ background: rgba(255, 255, 255, 0.1);
+ padding: 2rem;
+ backdrop-filter: blur(10px);
+ border-bottom: 1px solid rgba(255, 255, 255, 0.2);
+}
+
+.App-header h1 {
+ color: white;
+ margin-bottom: 1.5rem;
+ font-size: 2.5rem;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
+}
+
+.channel-selector {
+ max-width: 600px;
+ margin: 0 auto;
+}
+
+.selector-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 0.5rem;
+}
+
+.selector-header label {
+ color: white;
+ font-size: 1.1rem;
+ font-weight: bold;
+}
+
+.refresh-button {
+ padding: 0.4rem 0.8rem;
+ border: none;
+ border-radius: 15px;
+ background: rgba(255, 255, 255, 0.2);
+ color: white;
+ cursor: pointer;
+ font-size: 0.9rem;
+ transition: all 0.3s ease;
+}
+
+.refresh-button:hover:not(:disabled) {
+ background: rgba(255, 255, 255, 0.3);
+ transform: rotate(45deg);
+}
+
+.refresh-button:disabled {
+ opacity: 0.6;
+ cursor: not-allowed;
+}
+
+.channel-select {
+ width: 100%;
+ padding: 0.8rem 1.2rem;
+ border: none;
+ border-radius: 25px;
+ font-size: 1rem;
+ background: rgba(255, 255, 255, 0.9);
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
+ margin-bottom: 1rem;
+}
+
+.channel-select:focus {
+ outline: none;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
+}
+
+.channel-info {
+ color: rgba(255, 255, 255, 0.9);
+ font-size: 0.9rem;
+}
+
+.channel-info strong {
+ color: #74b9ff;
+}
+
+.main-content {
+ padding: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.loading, .error, .no-channels, .no-videos, .no-selection {
+ color: white;
+ font-size: 1.2rem;
+ padding: 2rem;
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 15px;
+ backdrop-filter: blur(10px);
+ margin: 1rem 0;
+}
+
+.error {
+ color: #ff6b6b;
+}
+
+.no-channels, .no-selection {
+ color: #ffd93d;
+}
+
+.no-videos {
+ color: #ffd93d;
+}
+
+.retry-button {
+ margin-top: 1rem;
+ padding: 0.5rem 1rem;
+ border: none;
+ border-radius: 20px;
+ background: rgba(255, 255, 255, 0.2);
+ color: white;
+ cursor: pointer;
+ transition: all 0.3s ease;
+}
+
+.retry-button:hover {
+ background: rgba(255, 255, 255, 0.3);
+}
+
+.videos-container h2 {
+ color: white;
+ margin-bottom: 2rem;
+ font-size: 2rem;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
+}
+
+.videos-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+}
+
+.video-card {
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 15px;
+ overflow: hidden;
+ backdrop-filter: blur(10px);
+ border: 1px solid rgba(255, 255, 255, 0.2);
+ transition: all 0.3s ease;
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
+}
+
+.video-card:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
+ border-color: rgba(255, 255, 255, 0.3);
+}
+
+.video-thumbnail {
+ position: relative;
+ height: 180px;
+ overflow: hidden;
+}
+
+.thumbnail-image {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ transition: transform 0.3s ease;
+}
+
+.video-card:hover .thumbnail-image {
+ transform: scale(1.05);
+}
+
+.play-button {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ font-size: 3rem;
+ color: white;
+ text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
+ opacity: 0.9;
+ transition: all 0.3s ease;
+}
+
+.video-card:hover .play-button {
+ opacity: 1;
+ transform: translate(-50%, -50%) scale(1.1);
+}
+
+.video-info {
+ padding: 1.5rem;
+ text-align: left;
+}
+
+.video-title {
+ color: white;
+ font-size: 1.1rem;
+ font-weight: bold;
+ margin-bottom: 0.8rem;
+ line-height: 1.4;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ position: relative;
+ cursor: help;
+}
+
+.video-author, .video-date {
+ color: rgba(255, 255, 255, 0.8);
+ font-size: 0.9rem;
+ margin-bottom: 0.5rem;
+}
+
+.channel-link {
+ color: #74b9ff;
+ text-decoration: none;
+}
+
+.channel-link:hover {
+ text-decoration: underline;
+}
+
+.video-summary {
+ margin: 1rem 0;
+ padding: 0.8rem;
+ background: rgba(255, 255, 255, 0.1);
+ border-radius: 8px;
+ border-left: 3px solid #74b9ff;
+}
+
+.video-summary p {
+ color: rgba(255, 255, 255, 0.9);
+ font-size: 0.85rem;
+ line-height: 1.4;
+ margin: 0;
+ transition: all 0.3s ease;
+}
+
+.video-summary p.collapsed {
+ display: -webkit-box;
+ -webkit-line-clamp: 3;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+}
+
+.video-summary p.expanded {
+ display: block;
+ overflow: visible;
+}
+
+.expand-button {
+ background: rgba(255, 255, 255, 0.15);
+ border: 1px solid rgba(255, 255, 255, 0.3);
+ color: #74b9ff;
+ padding: 0.3rem 0.8rem;
+ border-radius: 12px;
+ font-size: 0.75rem;
+ cursor: pointer;
+ margin-top: 0.5rem;
+ transition: all 0.3s ease;
+}
+
+.expand-button:hover {
+ background: rgba(255, 255, 255, 0.25);
+ transform: translateY(-1px);
+}
+
+.video-actions {
+ margin-top: 1rem;
+}
+
+.watch-button {
+ display: inline-block;
+ padding: 0.6rem 1.2rem;
+ background: #ff4757;
+ color: white;
+ text-decoration: none;
+ border-radius: 20px;
+ font-weight: bold;
+ transition: all 0.3s ease;
+ font-size: 0.9rem;
+}
+
+.watch-button:hover {
+ background: #ff6b81;
+ transform: translateY(-2px);
+ box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
+}
+
+/* Responsive design */
+@media (max-width: 768px) {
+ .selector-header {
+ flex-direction: column;
+ gap: 0.5rem;
+ align-items: flex-start;
+ }
+
+ .videos-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .App-header h1 {
+ font-size: 2rem;
+ }
+
+ .video-info {
+ padding: 1rem;
+ }
+}