167 lines
4.2 KiB
HTML
167 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>YouTube Summaries</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 20px;
|
|
background-color: #ffe4e6;
|
|
color: #9f1239;
|
|
}
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
header input[type="text"] {
|
|
flex: 1;
|
|
padding: 8px;
|
|
font-size: 16px;
|
|
border-radius: 4px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
header input[type="checkbox"] {
|
|
accent-color: #9f1239;
|
|
}
|
|
header button {
|
|
padding: 8px 16px;
|
|
font-size: 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background-color: #9f1239;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
header button:hover {
|
|
background-color: #7c0e2e;
|
|
}
|
|
header label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 14px;
|
|
color: #9f1239;
|
|
}
|
|
.loading {
|
|
margin-top: 5px;
|
|
font-style: italic;
|
|
color: #9f1239;
|
|
}
|
|
#summaries-container {
|
|
margin-top: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
.entry {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
border: 1px solid #fff;
|
|
border-radius: 5px;
|
|
background-color: #fff1f2;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
}
|
|
.entry .left {
|
|
width: 150px;
|
|
flex-shrink: 0;
|
|
}
|
|
.entry .thumbnail {
|
|
max-width: 100%;
|
|
border-radius: 3px;
|
|
}
|
|
.entry .middle {
|
|
flex: 1;
|
|
}
|
|
.entry .right {
|
|
width: 140px;
|
|
flex-shrink: 0;
|
|
}
|
|
.entry ul {
|
|
list-style-type: none;
|
|
padding-left: 0;
|
|
margin: 0;
|
|
}
|
|
.entry li {
|
|
margin-bottom: 5px;
|
|
}
|
|
.entry a {
|
|
color: #9f1239;
|
|
text-decoration: none;
|
|
}
|
|
.entry a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
.entry .summary {
|
|
transition: max-height 0.2s;
|
|
}
|
|
.entry.collapsed .summary {
|
|
display: -webkit-box !important;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
max-height: 2.8em;
|
|
}
|
|
.pagination {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
justify-content: center;
|
|
margin: 10px 0;
|
|
}
|
|
.pagination button {
|
|
padding: 4px 8px;
|
|
font-size: 14px;
|
|
border: 1px solid #9f1239;
|
|
background-color: #fff1f2;
|
|
color: #9f1239;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
.pagination button:hover {
|
|
background-color: #9f1239;
|
|
color: white;
|
|
}
|
|
.pagination button.active {
|
|
background-color: #9f1239;
|
|
color: white;
|
|
font-weight: bold;
|
|
}
|
|
header button:disabled {
|
|
background-color: #ffe4e6;
|
|
color: #9f1239;
|
|
opacity: 0.7;
|
|
cursor: default;
|
|
border: 1px solid #fbb6ce;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header style="display:flex; flex-direction:column; gap:5px;">
|
|
<form id="summarize-form" style="display:flex; width:100%; gap:10px; align-items:center; flex-wrap: wrap;">
|
|
<input type="text" id="url-input" placeholder="Enter YouTube URL" />
|
|
<button type="submit">Summarize!</button>
|
|
<div style="display: flex; flex-direction: column; gap: 2px; min-width:120px;">
|
|
<label style="font-size:14px; color:#9f1239; display: flex; align-items: center; gap: 5px;">
|
|
<input type="checkbox" id="whisper-checkbox" checked />Use Whisper
|
|
</label>
|
|
<label style="font-size:14px; color:#9f1239; display: flex; align-items: center; gap: 5px;">
|
|
<input type="checkbox" id="autotranslate-checkbox" checked />Auto Translate
|
|
</label>
|
|
</div>
|
|
<select id="model-select" style="padding:6px; font-size:14px;">
|
|
<option disabled selected>Loading models…</option>
|
|
</select>
|
|
</form>
|
|
<div id="loading" class="loading" style="display:none;">Loading…</div>
|
|
</header>
|
|
<div id="pagination-top" class="pagination" style="display:none;"></div>
|
|
<div id="summaries-container"></div>
|
|
<div id="pagination-bottom" class="pagination" style="display:none;"></div>
|
|
<script src="renderer.js"></script>
|
|
</body>
|
|
</html>
|