| Current Path : /var/www/pythonian/qwen/static/ |
| Current File : /var/www/pythonian/qwen/static/index.html |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Tools Dashboard</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
--primary: #4f46e5;
--primary-light: #6366f1;
--secondary: #10b981;
--dark: #1f2937;
--light: #f9fafb;
--gray: #9ca3af;
--border: #e5e7eb;
--shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: var(--dark);
line-height: 1.6;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2.5rem;
padding: 1rem 0;
flex-wrap: wrap;
}
.logo {
display: flex;
align-items: center;
}
.logo i {
font-size: 2.5rem;
color: var(--primary);
margin-right: 0.75rem;
}
.logo-text h1 {
font-size: 2rem;
font-weight: 800;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.logo-text p {
color: var(--gray);
font-size: 0.9rem;
margin-top: 0.25rem;
}
.user-info {
display: flex;
align-items: center;
background-color: white;
padding: 0.75rem 1.25rem;
border-radius: 2rem;
box-shadow: var(--shadow);
}
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
margin-right: 0.75rem;
}
.user-details h4 {
font-size: 0.95rem;
margin-bottom: 0.25rem;
}
.user-details p {
font-size: 0.8rem;
color: var(--gray);
}
/* Navigation Tabs */
.nav-tabs {
display: flex;
background-color: white;
border-radius: 1rem;
padding: 0.5rem;
margin-bottom: 2.5rem;
box-shadow: var(--shadow);
flex-wrap: wrap;
}
.nav-tab {
flex: 1;
text-align: center;
padding: 1rem 0.5rem;
border-radius: 0.75rem;
text-decoration: none;
color: var(--dark);
font-weight: 600;
transition: all 0.3s ease;
min-width: 120px;
margin: 0.25rem;
}
.nav-tab:hover {
background-color: #f3f4f6;
}
.nav-tab.active {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
box-shadow: var(--shadow);
}
.nav-tab i {
font-size: 1.25rem;
margin-bottom: 0.5rem;
display: block;
}
/* Dashboard Content */
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.page-title h2 {
font-size: 1.875rem;
font-weight: 700;
color: var(--dark);
}
.page-title p {
color: var(--gray);
margin-top: 0.5rem;
}
.search-bar {
display: flex;
align-items: center;
background-color: white;
padding: 0.75rem 1.25rem;
border-radius: 2rem;
box-shadow: var(--shadow);
width: 300px;
}
.search-bar i {
color: var(--gray);
margin-right: 0.75rem;
}
.search-bar input {
border: none;
outline: none;
width: 100%;
font-size: 0.95rem;
background: transparent;
}
/* Tools Grid */
.tools-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.75rem;
margin-top: 1.5rem;
}
.tool-card {
background-color: white;
border-radius: 1rem;
overflow: hidden;
box-shadow: var(--shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
}
.tool-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-lg);
}
.tool-header {
padding: 1.75rem;
border-bottom: 1px solid var(--border);
flex-grow: 1;
}
.tool-icon {
width: 60px;
height: 60px;
border-radius: 1rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.75rem;
margin-bottom: 1.25rem;
color: white;
}
.chatbot-icon {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.image-gen-icon {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.image-edit-icon {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.img-to-video-icon {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.text-to-video-icon {
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}
.tool-header h3 {
font-size: 1.35rem;
font-weight: 700;
margin-bottom: 0.75rem;
}
.tool-header p {
color: var(--gray);
font-size: 0.95rem;
line-height: 1.5;
}
.tool-footer {
padding: 1.5rem 1.75rem;
background-color: #f9fafb;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.85rem 1.5rem;
border-radius: 0.75rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 0.95rem;
width: 100%;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.btn i {
margin-right: 0.5rem;
}
/* Stats Section */
.stats-section {
background: white;
border-radius: 1rem;
padding: 2rem;
margin-top: 3rem;
box-shadow: var(--shadow);
}
.stats-section h3 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
color: var(--dark);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
}
.stat-card {
background-color: #f9fafb;
border-radius: 0.75rem;
padding: 1.5rem;
display: flex;
align-items: center;
}
.stat-icon {
width: 50px;
height: 50px;
border-radius: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin-right: 1rem;
color: white;
}
.stat-1 { background-color: #667eea; }
.stat-2 { background-color: #f5576c; }
.stat-3 { background-color: #4facfe; }
.stat-4 { background-color: #43e97b; }
.stat-info h4 {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 0.25rem;
}
.stat-info p {
color: var(--gray);
font-size: 0.9rem;
}
/* Footer */
.footer {
text-align: center;
margin-top: 3rem;
padding: 2rem 0;
color: var(--gray);
font-size: 0.9rem;
border-top: 1px solid var(--border);
}
/* Mobile responsive adjustments */
@media (max-width: 992px) {
.tools-grid {
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
}
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
}
.user-info {
margin-top: 1.5rem;
}
.dashboard-header {
flex-direction: column;
align-items: flex-start;
}
.search-bar {
width: 100%;
margin-top: 1.5rem;
}
.nav-tabs {
justify-content: center;
}
.nav-tab {
min-width: 100px;
padding: 0.75rem 0.25rem;
font-size: 0.9rem;
}
}
@media (max-width: 576px) {
.tools-grid {
grid-template-columns: 1fr;
}
.nav-tab {
min-width: 80px;
font-size: 0.85rem;
}
.container {
padding: 1rem;
}
.logo i {
font-size: 2rem;
}
.logo-text h1 {
font-size: 1.5rem;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Dashboard Content -->
<main class="dashboard-content">
<div class="dashboard-header">
<div class="page-title">
<h2>AI Tools Dashboard</h2>
<p>Select any tool below to start creating with AI</p>
</div>
<div class="search-bar">
<i class="fas fa-search"></i>
<input type="text" placeholder="Search tools, features...">
</div>
</div>
<!-- Tools Grid -->
<div class="tools-grid">
<!-- Chatbot Card -->
<div class="tool-card" id="chatbot">
<div class="tool-header">
<div class="tool-icon chatbot-icon">
<i class="fas fa-comment-dots"></i>
</div>
<h3>AI Chatbot</h3>
<p>Conversational AI assistant that can answer questions, provide recommendations, and assist with tasks. Powered by advanced natural language processing.</p>
</div>
<div class="tool-footer">
<button class="btn btn-primary open-chatbot" data-link="/chatbot">
<i class="fas fa-comment"></i> Open Chatbot
</button>
</div>
</div>
<!-- Image Generator Card -->
<div class="tool-card" id="image-generator">
<div class="tool-header">
<div class="tool-icon image-gen-icon">
<i class="fas fa-image"></i>
</div>
<h3>Image Generator</h3>
<p>Create stunning images from text descriptions. Generate art, photographs, illustrations, and designs using state-of-the-art generative AI models.</p>
</div>
<div class="tool-footer">
<button class="btn btn-primary open-image-gen" data-link="/image-generator">
<i class="fas fa-magic"></i> Generate Image
</button>
</div>
</div>
<!-- Image Editor Card -->
<div class="tool-card" id="image-editor">
<div class="tool-header">
<div class="tool-icon image-edit-icon">
<i class="fas fa-edit"></i>
</div>
<h3>Image Editor</h3>
<p>AI-powered image editing tools for enhancement, restoration, background removal, and creative transformations. Automate complex editing tasks.</p>
</div>
<div class="tool-footer">
<button class="btn btn-primary open-image-edit" data-link="/image-editor">
<i class="fas fa-crop-alt"></i> Edit Image
</button>
</div>
</div>
<!-- Image to Video Card -->
<div class="tool-card" id="image-to-video">
<div class="tool-header">
<div class="tool-icon img-to-video-icon">
<i class="fas fa-film"></i>
</div>
<h3>Image to Video</h3>
<p>Transform static images into dynamic videos with AI animation. Add motion, effects, and transitions to bring your photos to life automatically.</p>
</div>
<div class="tool-footer">
<button class="btn btn-primary open-img-to-video" data-link="/video-generator">
<i class="fas fa-play-circle"></i> Create Video
</button>
</div>
</div>
<!-- Text to Video Card -->
<div class="tool-card" id="text-to-video">
<div class="tool-header">
<div class="tool-icon text-to-video-icon">
<i class="fas fa-video"></i>
</div>
<h3>Text to Video</h3>
<p>Generate complete video content from text descriptions. Create animations, explainer videos, and presentations with AI-generated visuals and narration.</p>
</div>
<div class="tool-footer">
<button class="btn btn-primary open-text-to-video" data-link="/text-to-video">
<i class="fas fa-video"></i> Generate Video
</button>
</div>
</div>
</div>
</main>
</div>
<script>
// Navigation Tabs Functionality
document.querySelectorAll('.nav-tab').forEach(tab => {
tab.addEventListener('click', function(e) {
e.preventDefault();
// Remove active class from all tabs
document.querySelectorAll('.nav-tab').forEach(item => {
item.classList.remove('active');
});
// Add active class to clicked tab
this.classList.add('active');
// Get the target tool card
const targetId = this.getAttribute('href').substring(1);
const targetElement = document.getElementById(targetId);
// Scroll to the target tool card
if (targetElement) {
window.scrollTo({
top: targetElement.offsetTop - 120,
behavior: 'smooth'
});
// Highlight the card temporarily
targetElement.style.transform = 'scale(1.02)';
setTimeout(() => {
targetElement.style.transform = '';
}, 300);
}
});
});
// Button click handlers
document.querySelectorAll('.btn').forEach(button => {
button.addEventListener('click', function(e) {
const toolCard = this.closest('.tool-card');
const toolName = toolCard.querySelector('h3').textContent;
const toolDescription = toolCard.querySelector('p').textContent;
window.open(e.target.dataset.link)
});
});
// Search functionality
const searchInput = document.querySelector('.search-bar input');
searchInput.addEventListener('input', function() {
const searchTerm = this.value.toLowerCase().trim();
const toolCards = document.querySelectorAll('.tool-card');
if (searchTerm === '') {
toolCards.forEach(card => {
card.style.display = 'flex';
});
return;
}
toolCards.forEach(card => {
const title = card.querySelector('h3').textContent.toLowerCase();
const description = card.querySelector('p').textContent.toLowerCase();
if (title.includes(searchTerm) || description.includes(searchTerm)) {
card.style.display = 'flex';
} else {
card.style.display = 'none';
}
});
});
// Animate cards on load
window.addEventListener('load', function() {
const toolCards = document.querySelectorAll('.tool-card');
toolCards.forEach((card, index) => {
card.style.opacity = '0';
card.style.transform = 'translateY(30px)';
setTimeout(() => {
card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
card.style.opacity = '1';
card.style.transform = 'translateY(0)';
}, 150 * index);
});
});
// Add keyboard shortcuts
document.addEventListener('keydown', function(e) {
// Ctrl/Cmd + 1-5 to navigate to tools
if ((e.ctrlKey || e.metaKey) && e.key >= '1' && e.key <= '5') {
e.preventDefault();
const index = parseInt(e.key) - 1;
const tabs = document.querySelectorAll('.nav-tab');
if (tabs[index]) {
tabs[index].click();
}
}
// Ctrl/Cmd + K to focus search
if ((e.ctrlKey || e.metaKey) && e.key === 'k') {
e.preventDefault();
searchInput.focus();
}
});
// Add tooltip for keyboard shortcuts
searchInput.addEventListener('focus', function() {
const tooltip = document.createElement('div');
tooltip.textContent = 'Press Ctrl+K to quickly search';
tooltip.style.cssText = `
position: absolute;
top: -35px;
right: 0;
background: var(--dark);
color: white;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.8rem;
z-index: 100;
`;
this.parentElement.style.position = 'relative';
this.parentElement.appendChild(tooltip);
setTimeout(() => {
if (tooltip.parentElement) {
tooltip.parentElement.removeChild(tooltip);
}
}, 3000);
});
</script>
</body>
</html>