Manual changes saved
Browse files- batch.html +1 -0
- components/footer.js +1 -5
- components/navbar.js +1 -5
- docs.html +1 -0
- index.html +27 -103
- script.js +8 -3
- style.css +83 -30
batch.html
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
|
|
| 10 |
</head>
|
| 11 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 12 |
<custom-navbar></custom-navbar>
|
|
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
</head>
|
| 12 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 13 |
<custom-navbar></custom-navbar>
|
components/footer.js
CHANGED
|
@@ -39,11 +39,7 @@ class CustomFooter extends HTMLElement {
|
|
| 39 |
.footer-section a:hover {
|
| 40 |
color: white;
|
| 41 |
}
|
| 42 |
-
|
| 43 |
-
width: 16px;
|
| 44 |
-
height: 16px;
|
| 45 |
-
}
|
| 46 |
-
.copyright {
|
| 47 |
margin-top: 2rem;
|
| 48 |
padding-top: 1rem;
|
| 49 |
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
|
|
| 39 |
.footer-section a:hover {
|
| 40 |
color: white;
|
| 41 |
}
|
| 42 |
+
.copyright {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
margin-top: 2rem;
|
| 44 |
padding-top: 1rem;
|
| 45 |
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
components/navbar.js
CHANGED
|
@@ -41,11 +41,7 @@ class CustomNavbar extends HTMLElement {
|
|
| 41 |
opacity: 0.9;
|
| 42 |
transform: translateY(-1px);
|
| 43 |
}
|
| 44 |
-
|
| 45 |
-
width: 16px;
|
| 46 |
-
height: 16px;
|
| 47 |
-
}
|
| 48 |
-
@media (max-width: 768px) {
|
| 49 |
nav {
|
| 50 |
flex-direction: column;
|
| 51 |
gap: 1rem;
|
|
|
|
| 41 |
opacity: 0.9;
|
| 42 |
transform: translateY(-1px);
|
| 43 |
}
|
| 44 |
+
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
nav {
|
| 46 |
flex-direction: column;
|
| 47 |
gap: 1rem;
|
docs.html
CHANGED
|
@@ -7,6 +7,7 @@
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
|
|
|
| 10 |
</head>
|
| 11 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 12 |
<custom-navbar></custom-navbar>
|
|
|
|
| 7 |
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
</head>
|
| 12 |
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 13 |
<custom-navbar></custom-navbar>
|
index.html
CHANGED
|
@@ -1,107 +1,31 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="en">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>AutoCaption Magic ✨</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css">
|
| 8 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
-
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
-
<script>
|
| 11 |
-
tailwind.config = {
|
| 12 |
-
theme: {
|
| 13 |
-
extend: {
|
| 14 |
-
colors: {
|
| 15 |
-
primary: {
|
| 16 |
-
500: '#6366f1',
|
| 17 |
-
},
|
| 18 |
-
secondary: {
|
| 19 |
-
500: '#8b5cf6',
|
| 20 |
-
}
|
| 21 |
-
}
|
| 22 |
-
}
|
| 23 |
-
}
|
| 24 |
-
}
|
| 25 |
-
</script>
|
| 26 |
-
</head>
|
| 27 |
-
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 28 |
-
<custom-navbar></custom-navbar>
|
| 29 |
-
|
| 30 |
-
<main class="flex-grow container mx-auto px-4 py-12">
|
| 31 |
-
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-8">
|
| 32 |
-
<div class="text-center mb-10">
|
| 33 |
-
<h1 class="text-4xl font-bold text-primary-500 mb-4">AutoCaption Magic ✨</h1>
|
| 34 |
-
<p class="text-lg text-gray-600">Generate automatic captions for your LoRA training dataset</p>
|
| 35 |
-
</div>
|
| 36 |
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
<p class="text-sm text-gray-500 mt-2">Supports JPG, PNG (max 100 images at once)</p>
|
| 44 |
-
</div>
|
| 45 |
-
</div>
|
| 46 |
-
<div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
|
| 47 |
-
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Caption Settings</h2>
|
| 48 |
-
<div class="grid md:grid-cols-2 gap-6">
|
| 49 |
-
<div>
|
| 50 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Trigger Word</label>
|
| 51 |
-
<input type="text" placeholder="e.g. 'myLoraStyle'" class="w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 52 |
-
<p class="text-xs text-gray-500 mt-1">This word will be prepended to all captions</p>
|
| 53 |
-
</div>
|
| 54 |
-
<div>
|
| 55 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Model Type</label>
|
| 56 |
-
<select class="w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 57 |
-
<option>BLIP (Default)</option>
|
| 58 |
-
<option>CLIP Interrogator</option>
|
| 59 |
-
<option>BLIP-2</option>
|
| 60 |
-
</select>
|
| 61 |
-
</div>
|
| 62 |
-
<div>
|
| 63 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Detail Level</label>
|
| 64 |
-
<select class="w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 65 |
-
<option>Medium (Recommended)</option>
|
| 66 |
-
<option>Brief</option>
|
| 67 |
-
<option>Detailed</option>
|
| 68 |
-
</select>
|
| 69 |
-
</div>
|
| 70 |
-
<div>
|
| 71 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Include Tags</label>
|
| 72 |
-
<div class="flex items-center space-x-4">
|
| 73 |
-
<label class="inline-flex items-center">
|
| 74 |
-
<input type="checkbox" class="rounded border-gray-300 text-primary-500 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 75 |
-
<span class="ml-2">Artistic Styles</span>
|
| 76 |
-
</label>
|
| 77 |
-
<label class="inline-flex items-center">
|
| 78 |
-
<input type="checkbox" class="rounded border-gray-300 text-primary-500 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 79 |
-
<span class="ml-2">Medium/Technique</span>
|
| 80 |
-
</label>
|
| 81 |
-
</div>
|
| 82 |
-
</div>
|
| 83 |
-
<div>
|
| 84 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Custom Prefix</label>
|
| 85 |
-
<input type="text" placeholder="e.g. 'a photo of'" class="w-full rounded-md border-gray-300 shadow-sm focus:border-primary-500 focus:ring-primary-500">
|
| 86 |
-
</div>
|
| 87 |
-
</div>
|
| 88 |
-
</div>
|
| 89 |
|
| 90 |
-
|
| 91 |
-
<button class="px-8 py-3 bg-primary-500 hover:bg-primary-600 text-white font-medium rounded-lg shadow-md transition duration-300 flex items-center hovered-element">
|
| 92 |
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zap w-5 h-5 mr-2"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon></svg>
|
| 93 |
-
Generate Captions
|
| 94 |
-
</button>
|
| 95 |
-
</div>
|
| 96 |
-
</div>
|
| 97 |
-
</div>
|
| 98 |
-
</main>
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
/* Shared styles across all pages */
|
| 3 |
+
.hovered-element:hover {
|
| 4 |
+
transform: translateY(-2px);
|
| 5 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 6 |
+
transition: all 0.3s ease;
|
| 7 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
+
body {
|
| 12 |
+
font-family: 'Inter', sans-serif;
|
| 13 |
+
}
|
| 14 |
|
| 15 |
+
/* Custom scrollbar */
|
| 16 |
+
::-webkit-scrollbar {
|
| 17 |
+
width: 8px;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
::-webkit-scrollbar-track {
|
| 21 |
+
background: #f1f1f1;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
::-webkit-scrollbar-thumb {
|
| 25 |
+
background: #8b5cf6;
|
| 26 |
+
border-radius: 4px;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
::-webkit-scrollbar-thumb:hover {
|
| 30 |
+
background: #7c3aed;
|
| 31 |
+
}
|
script.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
-
|
| 2 |
// Shared JavaScript across all pages
|
| 3 |
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
// File upload interaction
|
| 5 |
const fileUploadArea = document.querySelector('.border-dashed');
|
| 6 |
if (fileUploadArea) {
|
|
@@ -32,6 +37,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 32 |
}
|
| 33 |
}
|
| 34 |
});
|
| 35 |
-
});
|
| 36 |
-
}
|
| 37 |
});
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
// Shared JavaScript across all pages
|
| 2 |
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
// Initialize tooltips
|
| 4 |
+
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
| 5 |
+
tooltipTriggerList.map(function (tooltipTriggerEl) {
|
| 6 |
+
return new bootstrap.Tooltip(tooltipTriggerEl);
|
| 7 |
+
});
|
| 8 |
+
|
| 9 |
// File upload interaction
|
| 10 |
const fileUploadArea = document.querySelector('.border-dashed');
|
| 11 |
if (fileUploadArea) {
|
|
|
|
| 37 |
}
|
| 38 |
}
|
| 39 |
});
|
|
|
|
|
|
|
| 40 |
});
|
| 41 |
+
}
|
| 42 |
+
});
|
style.css
CHANGED
|
@@ -1,31 +1,84 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
.
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
| 8 |
-
|
| 9 |
-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 10 |
-
|
| 11 |
-
body {
|
| 12 |
-
font-family: 'Inter', sans-serif;
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
/* Custom scrollbar */
|
| 16 |
-
::-webkit-scrollbar {
|
| 17 |
-
width: 8px;
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
::-webkit-scrollbar-track {
|
| 21 |
-
background: #f1f1f1;
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
::-webkit-scrollbar-thumb {
|
| 25 |
-
background: #8b5cf6;
|
| 26 |
-
border-radius: 4px;
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
::-webkit-scrollbar-thumb:hover {
|
| 30 |
-
background: #7c3aed;
|
| 31 |
-
}
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
footer {
|
| 7 |
+
background: linear-gradient(135deg, var(--tw-gradient-from) 0%, var(--tw-gradient-to) 100%);
|
| 8 |
+
color: white;
|
| 9 |
+
padding: 2rem;
|
| 10 |
+
text-align: center;
|
| 11 |
+
margin-top: auto;
|
| 12 |
+
}
|
| 13 |
+
.footer-content {
|
| 14 |
+
max-width: 1200px;
|
| 15 |
+
margin: 0 auto;
|
| 16 |
+
display: grid;
|
| 17 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 18 |
+
gap: 2rem;
|
| 19 |
+
text-align: left;
|
| 20 |
+
}
|
| 21 |
+
.footer-section h3 {
|
| 22 |
+
font-size: 1.2rem;
|
| 23 |
+
margin-bottom: 1rem;
|
| 24 |
+
font-weight: 600;
|
| 25 |
+
}
|
| 26 |
+
.footer-section ul {
|
| 27 |
+
list-style: none;
|
| 28 |
+
padding: 0;
|
| 29 |
+
margin: 0;
|
| 30 |
+
}
|
| 31 |
+
.footer-section li {
|
| 32 |
+
margin-bottom: 0.5rem;
|
| 33 |
+
}
|
| 34 |
+
.footer-section a {
|
| 35 |
+
color: rgba(255, 255, 255, 0.8);
|
| 36 |
+
text-decoration: none;
|
| 37 |
+
transition: color 0.2s;
|
| 38 |
+
}
|
| 39 |
+
.footer-section a:hover {
|
| 40 |
+
color: white;
|
| 41 |
+
}
|
| 42 |
+
.copyright {
|
| 43 |
+
margin-top: 2rem;
|
| 44 |
+
padding-top: 1rem;
|
| 45 |
+
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
| 46 |
+
}
|
| 47 |
+
@media (max-width: 768px) {
|
| 48 |
+
.footer-content {
|
| 49 |
+
grid-template-columns: 1fr;
|
| 50 |
+
text-align: center;
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
</style>
|
| 54 |
+
<footer class="from-primary-500 to-secondary-500">
|
| 55 |
+
<div class="footer-content">
|
| 56 |
+
<div class="footer-section">
|
| 57 |
+
<h3>AutoCaption Magic</h3>
|
| 58 |
+
<p>AI-powered caption generation for your LoRA training datasets.</p>
|
| 59 |
+
</div>
|
| 60 |
+
<div class="footer-section">
|
| 61 |
+
<h3>Quick Links</h3>
|
| 62 |
+
<ul>
|
| 63 |
+
<li><a href="/">Home</a></li>
|
| 64 |
+
<li><a href="/batch.html">Batch Processing</a></li>
|
| 65 |
+
<li><a href="/docs.html">Documentation</a></li>
|
| 66 |
+
</ul>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="footer-section">
|
| 69 |
+
<h3>Resources</h3>
|
| 70 |
+
<ul>
|
| 71 |
+
<li><a href="#">GitHub</a></li>
|
| 72 |
+
<li><a href="#">API Docs</a></li>
|
| 73 |
+
<li><a href="#">Support</a></li>
|
| 74 |
+
</ul>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
<div class="copyright">
|
| 78 |
+
<p>© 2024 AutoCaption Magic. All rights reserved.</p>
|
| 79 |
+
</div>
|
| 80 |
+
</footer>
|
| 81 |
+
`;
|
| 82 |
+
}
|
| 83 |
}
|
| 84 |
+
customElements.define('custom-footer', CustomFooter);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|