feat: update UI with new styling for queue, search, and request pages, and adjust module logic.
This commit is contained in:
@@ -2,6 +2,303 @@
|
||||
{% block content %}
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--forest-950: #022c22;
|
||||
--forest-900: #064e3b;
|
||||
--forest-800: #065f46;
|
||||
--forest-500: #10b981;
|
||||
--forest-400: #34d399;
|
||||
--forest-100: #d1fae5;
|
||||
--accent-amber: #fbbf24;
|
||||
}
|
||||
|
||||
body { background-color: var(--forest-950); color: #ecfdf5; font-family: 'Inter', 'Noto Sans KR', sans-serif; }
|
||||
|
||||
/* Layout Expansion */
|
||||
#main_container, .container, .container-fluid, .content-cloak {
|
||||
max-width: 100% !important;
|
||||
padding-left: 5px !important;
|
||||
padding-right: 5px !important;
|
||||
margin: 0 auto !important;
|
||||
}
|
||||
|
||||
.content-cloak { padding-top: 10px; }
|
||||
|
||||
/* Navigation (Tabs) Optimization */
|
||||
/* Navigation Menu Override */
|
||||
ul.nav.nav-pills.bg-light {
|
||||
background-color: rgba(6, 78, 59, 0.4) !important;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(16, 185, 129, 0.1);
|
||||
border-radius: 50rem !important;
|
||||
padding: 6px !important;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
|
||||
display: inline-flex !important;
|
||||
gap: 4px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
ul.nav.nav-pills .nav-link {
|
||||
color: #d1fae5 !important;
|
||||
font-weight: 600 !important;
|
||||
padding: 8px 20px !important;
|
||||
border-radius: 50rem !important;
|
||||
transition: all 0.3s ease !important;
|
||||
border: 1px solid transparent !important;
|
||||
}
|
||||
|
||||
ul.nav.nav-pills .nav-link:hover {
|
||||
background-color: rgba(16, 185, 129, 0.1) !important;
|
||||
color: #fff !important;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
ul.nav.nav-pills .nav-link.active {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
|
||||
color: #fff !important;
|
||||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
|
||||
}
|
||||
|
||||
/* Search Container */
|
||||
.search-container {
|
||||
background: rgba(6, 78, 59, 0.3);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(16, 185, 129, 0.1);
|
||||
border-radius: 12px;
|
||||
padding: 10px;
|
||||
margin-bottom: 12px;
|
||||
display: flex;
|
||||
flex-wrap: wrap; /* Allow wrapping on mobile */
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-group-left {
|
||||
display: flex; gap: 8px; flex: 1; min-width: 140px; /* Ensure basic width */
|
||||
}
|
||||
.search-group-right {
|
||||
display: flex; gap: 8px; flex: 2; min-width: 200px;
|
||||
}
|
||||
|
||||
/* Mobile Search Adjustment */
|
||||
@media (max-width: 576px) {
|
||||
.search-group-left, .search-group-right { flex: 100%; } /* Stack on small screens */
|
||||
}
|
||||
|
||||
/* Form Controls */
|
||||
.custom-select, .custom-input {
|
||||
background-color: rgba(2, 44, 34, 0.6) !important;
|
||||
border: 1px solid rgba(16, 185, 129, 0.2) !important;
|
||||
color: #ecfdf5 !important;
|
||||
border-radius: 8px !important;
|
||||
padding: 0 12px !important;
|
||||
height: 38px !important;
|
||||
font-size: 13px !important;
|
||||
}
|
||||
.custom-select:focus, .custom-input:focus {
|
||||
box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3) !important;
|
||||
border-color: #10b981 !important;
|
||||
}
|
||||
|
||||
.custom-btn {
|
||||
border-radius: 8px !important;
|
||||
border: none !important;
|
||||
padding: 0 16px !important;
|
||||
height: 38px !important;
|
||||
font-weight: 600 !important;
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.btn-search {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||||
color: white !important;
|
||||
}
|
||||
.btn-search:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); }
|
||||
|
||||
.btn-reset {
|
||||
background: rgba(6, 95, 70, 0.5);
|
||||
color: #a7f3d0 !important;
|
||||
}
|
||||
.btn-reset:hover { background: rgba(6, 95, 70, 0.8); color: white !important; }
|
||||
|
||||
/* List Styling */
|
||||
#list_div {
|
||||
display: flex; flex-direction: column; gap: 8px;
|
||||
}
|
||||
|
||||
.item-row {
|
||||
background: rgba(6, 78, 59, 0.2);
|
||||
border: 1px solid rgba(16, 185, 129, 0.1);
|
||||
border-radius: 12px;
|
||||
padding: 10px;
|
||||
display: flex; gap: 12px;
|
||||
transition: all 0.2s;
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
.item-row:hover {
|
||||
background: rgba(6, 78, 59, 0.4);
|
||||
border-color: rgba(16, 185, 129, 0.3);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.poster-container {
|
||||
width: 80px; height: 110px; flex-shrink: 0; border-radius: 8px; overflow: hidden; position: relative;
|
||||
background: #022c22;
|
||||
}
|
||||
.poster-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
|
||||
.item-row:hover .poster-img { transform: scale(1.05); }
|
||||
|
||||
.episode-badge {
|
||||
position: absolute; top: 0; left: 0;
|
||||
background: rgba(16, 185, 129, 0.9);
|
||||
color: white;
|
||||
font-size: 10px; font-weight: 800;
|
||||
padding: 2px 6px;
|
||||
border-bottom-right-radius: 6px;
|
||||
box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.info-container {
|
||||
flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
font-size: 15px; font-weight: 700; color: #ecfdf5;
|
||||
margin-bottom: 4px; line-height: 1.3;
|
||||
overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.item-meta-row {
|
||||
display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px;
|
||||
}
|
||||
.meta-program { font-size: 12px; color: #34d399; font-weight: 600; display: flex; align-items: center; gap: 4px; }
|
||||
.meta-date { font-size: 11px; color: #6ee7b7; opacity: 0.7; }
|
||||
|
||||
.filename-text {
|
||||
font-size: 11px; color: #94a3b8; background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 6px;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px;
|
||||
border: 1px solid rgba(255,255,255,0.05);
|
||||
}
|
||||
|
||||
/* Action Buttons Area */
|
||||
.action-area {
|
||||
display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; /* Scrollable if too many buttons */
|
||||
}
|
||||
.action-area::-webkit-scrollbar { height: 0px; } /* Hide scrollbar */
|
||||
|
||||
.action-btn {
|
||||
padding: 4px 10px; font-size: 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1);
|
||||
background: rgba(255,255,255,0.05); color: #d1fae5; white-space: nowrap;
|
||||
display: flex; align-items: center; gap: 4px; transition: all 0.2s;
|
||||
}
|
||||
.action-btn:hover { background: rgba(16, 185, 129, 0.2); color: white; border-color: rgba(16, 185, 129, 0.4); }
|
||||
.action-btn i { font-size: 10px; }
|
||||
|
||||
/* Status colors */
|
||||
.status-completed { color: #34d399; }
|
||||
.status-downloading { color: #60a5fa; }
|
||||
.status-failed { color: #f87171; }
|
||||
|
||||
/* Smooth Load CSS */
|
||||
.content-cloak, #menu_page_div { opacity: 0; transition: opacity 0.5s ease-out; }
|
||||
.content-cloak.visible, #menu_page_div.visible { opacity: 1; }
|
||||
|
||||
/* Video Player Modal Styles */
|
||||
.modal-content {
|
||||
background: #022c22;
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
.modal-header {
|
||||
border-bottom: 1px solid rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
.modal-title {
|
||||
color: #ecfdf5;
|
||||
}
|
||||
.modal-header .close {
|
||||
color: #ecfdf5;
|
||||
}
|
||||
.modal-body {
|
||||
padding: 0;
|
||||
}
|
||||
.video-js {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 75vh;
|
||||
}
|
||||
.playlist-controls {
|
||||
padding: 12px 16px;
|
||||
background: linear-gradient(135deg, rgba(2, 44, 34, 0.95) 0%, rgba(6, 78, 59, 0.95) 100%);
|
||||
border-top: 1px solid rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
.playlist-controls > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.playlist-nav-btn, .playlist-toggle-btn {
|
||||
background: rgba(16, 185, 129, 0.2);
|
||||
color: #ecfdf5;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
.playlist-nav-btn:hover, .playlist-toggle-btn:hover {
|
||||
background: rgba(16, 185, 129, 0.4);
|
||||
color: white;
|
||||
}
|
||||
#current-video-title {
|
||||
color: #10b981;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
}
|
||||
#playlist-progress {
|
||||
color: #6ee7b7;
|
||||
font-size: 12px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
#playlist-list-container {
|
||||
display: none;
|
||||
margin-top: 12px;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
background: rgba(0,0,0,0.3);
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
}
|
||||
#playlist-list .playlist-item {
|
||||
padding: 8px 10px;
|
||||
color: #d1fae5;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
transition: background 0.2s;
|
||||
font-size: 13px;
|
||||
}
|
||||
#playlist-list .playlist-item:hover {
|
||||
background: rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
#playlist-list .playlist-item.active {
|
||||
background: rgba(16, 185, 129, 0.4);
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
setTimeout(function() { $('.content-cloak, #menu_page_div').addClass('visible'); }, 100);
|
||||
});
|
||||
</script>
|
||||
<div class="content-cloak">
|
||||
<form id="form_search" class="form-inline" style="text-align:left; width:100%;">
|
||||
<div class="search-container">
|
||||
@@ -118,34 +415,38 @@
|
||||
.content-cloak { padding-top: 10px; }
|
||||
|
||||
/* Navigation (Tabs) Optimization */
|
||||
.nav-pills {
|
||||
background: rgba(6, 78, 59, 0.4) !important;
|
||||
/* Navigation Menu Override */
|
||||
ul.nav.nav-pills.bg-light {
|
||||
background-color: rgba(6, 78, 59, 0.4) !important;
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(16, 185, 129, 0.1);
|
||||
border-radius: 50rem !important;
|
||||
padding: 6px !important;
|
||||
border-radius: 12px !important;
|
||||
border: 1px solid rgba(16, 185, 129, 0.1) !important;
|
||||
margin-bottom: 20px !important;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
|
||||
display: inline-flex !important;
|
||||
gap: 4px !important;
|
||||
box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
|
||||
gap: 4px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.nav-pills .nav-link {
|
||||
|
||||
ul.nav.nav-pills .nav-link {
|
||||
color: #d1fae5 !important;
|
||||
font-weight: 600 !important;
|
||||
padding: 8px 20px !important;
|
||||
border-radius: 8px !important;
|
||||
border-radius: 50rem !important;
|
||||
transition: all 0.3s ease !important;
|
||||
border: 1px solid transparent !important;
|
||||
}
|
||||
.nav-pills .nav-link:hover {
|
||||
background: rgba(16, 185, 129, 0.1) !important;
|
||||
|
||||
ul.nav.nav-pills .nav-link:hover {
|
||||
background-color: rgba(16, 185, 129, 0.1) !important;
|
||||
color: #fff !important;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.nav-pills .nav-link.active {
|
||||
|
||||
ul.nav.nav-pills .nav-link.active {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
|
||||
color: #fff !important;
|
||||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
|
||||
border: 1px solid rgba(255,255,255,0.1) !important;
|
||||
}
|
||||
|
||||
/* Search Container */
|
||||
|
||||
Reference in New Issue
Block a user