MovieMapper/index.html

193 lines
4.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Movie Mapper</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
display: flex;
height: 100vh;
}
.container {
display: flex;
width: 100%;
max-width: 1200px;
margin: 0 auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
height: calc(100vh - 40px);
}
.sidebar {
width: 300px;
padding: 20px;
border-right: 1px solid #eee;
overflow-y: auto;
}
.main-content {
flex: 1;
padding: 20px;
overflow-y: auto;
}
h1 {
color: #333;
text-align: center;
margin-top: 0;
}
.controls {
margin-bottom: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 5px;
}
#select-dir-btn {
background-color: #007bff;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
width: 100%;
margin-bottom: 10px;
}
#select-dir-btn:hover {
background-color: #0056b3;
}
#selected-dir {
margin-top: 10px;
font-weight: bold;
color: #666;
}
.search-section {
margin: 20px 0;
}
#search-input {
width: 100%;
padding: 10px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
box-sizing: border-box;
}
#search-results {
margin-top: 10px;
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
}
.search-result-item {
padding: 8px;
cursor: pointer;
border-bottom: 1px solid #eee;
}
.search-result-item:hover {
background-color: #e9ecef;
}
.file-list {
margin-top: 20px;
}
.file-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border-bottom: 1px solid #eee;
}
.file-name {
flex: 1;
cursor: pointer;
padding: 5px;
}
.file-name.editing {
border: 1px solid #007bff;
background-color: #f8f9fa;
}
.file-duration, .file-quality {
margin: 0 10px;
color: #666;
}
.problematic-label {
color: #dc3545;
font-weight: bold;
margin-right: 5px;
}
.file-item:last-child {
border-bottom: none;
}
.status {
margin-top: 10px;
padding: 10px;
border-radius: 5px;
}
.status.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.status.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
</style>
</head>
<body>
<div class="container">
<div class="sidebar">
<h1>Movie Mapper</h1>
<div class="controls">
<button id="select-dir-btn">Select Directory</button>
<div id="selected-dir">No directory selected</div>
</div>
<div class="search-section">
<input type="text" id="search-input" placeholder="Search TV shows...">
<div id="search-results"></div>
</div>
</div>
<div class="main-content">
<div class="file-list">
<div id="file-list">
<p>Click "Select Directory" to start browsing media files.</p>
</div>
</div>
</div>
</div>
<script src="renderer.js"></script>
</body>
</html>