725 lines
18 KiB
HTML
725 lines
18 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Viral Velocity - AI Image Scorer</title>
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.header {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 10px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.header p {
|
|
font-size: 1.1rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 40px;
|
|
}
|
|
|
|
.upload-section {
|
|
background: #f8f9fa;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.upload-area {
|
|
border: 3px dashed #667eea;
|
|
border-radius: 15px;
|
|
padding: 40px;
|
|
margin: 20px 0;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.upload-area:hover {
|
|
border-color: #764ba2;
|
|
background: #f0f2ff;
|
|
}
|
|
|
|
.upload-area.dragover {
|
|
border-color: #764ba2;
|
|
background: #e8ecff;
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 3rem;
|
|
color: #667eea;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.upload-text {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.upload-hint {
|
|
font-size: 0.9rem;
|
|
color: #999;
|
|
}
|
|
|
|
.preferences-section {
|
|
background: #f8f9fa;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.preferences-section h3 {
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.preferences-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.preference-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.preference-group label {
|
|
font-weight: 600;
|
|
color: #555;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.preference-group select {
|
|
padding: 12px;
|
|
border: 2px solid #e1e5e9;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
background: white;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.preference-group select:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.analyze-btn {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 15px 40px;
|
|
border-radius: 10px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.analyze-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.analyze-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.loading {
|
|
display: none;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.spinner {
|
|
border: 4px solid #f3f3f3;
|
|
border-top: 4px solid #667eea;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
animation: spin 1s linear infinite;
|
|
margin: 0 auto 15px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.results-section {
|
|
display: none;
|
|
background: #f8f9fa;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.score-display {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.final-score {
|
|
font-size: 4rem;
|
|
font-weight: 700;
|
|
color: #667eea;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.score-label {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.score-breakdown {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.score-card {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.score-card h4 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.score-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: #667eea;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.score-details {
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.recommendations {
|
|
background: white;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.recommendations h4 {
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.recommendation-list {
|
|
list-style: none;
|
|
}
|
|
|
|
.recommendation-list li {
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid #eee;
|
|
color: #555;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.recommendation-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.recommendation-list li:before {
|
|
content: "💡 ";
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.error {
|
|
background: #ffe6e6;
|
|
color: #d63031;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin: 20px 0;
|
|
border-left: 4px solid #d63031;
|
|
}
|
|
|
|
.success {
|
|
background: #e6ffe6;
|
|
color: #00b894;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin: 20px 0;
|
|
border-left: 4px solid #00b894;
|
|
}
|
|
|
|
.rejection-card {
|
|
background: #fff5f5;
|
|
border: 2px solid #e74c3c;
|
|
border-left: 4px solid #e74c3c;
|
|
}
|
|
|
|
.rejection-card h4 {
|
|
color: #e74c3c;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.rejection-message {
|
|
color: #c0392b;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.rejection-message p {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.rejection-message strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rejection-message em {
|
|
font-style: italic;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.risk-analysis-card {
|
|
background: #f8f9fa;
|
|
border: 2px solid #6c757d;
|
|
border-left: 4px solid #6c757d;
|
|
}
|
|
|
|
.risk-analysis-card h4 {
|
|
color: #495057;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.risk-scores {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.risk-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
background: white;
|
|
border-left: 4px solid #dee2e6;
|
|
}
|
|
|
|
.risk-item.high-risk {
|
|
background: #fff5f5;
|
|
border-left-color: #e74c3c;
|
|
}
|
|
|
|
.risk-item.medium-risk {
|
|
background: #fffbf0;
|
|
border-left-color: #f39c12;
|
|
}
|
|
|
|
.risk-item.low-risk {
|
|
background: #f0fff4;
|
|
border-left-color: #27ae60;
|
|
}
|
|
|
|
.risk-icon {
|
|
font-size: 1.2rem;
|
|
margin-right: 10px;
|
|
width: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.risk-name {
|
|
flex: 1;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.risk-score {
|
|
font-weight: 700;
|
|
margin: 0 10px;
|
|
color: #495057;
|
|
}
|
|
|
|
.risk-level {
|
|
font-size: 0.9rem;
|
|
color: #6c757d;
|
|
font-style: italic;
|
|
}
|
|
|
|
.violations-section {
|
|
margin-top: 20px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #dee2e6;
|
|
}
|
|
|
|
.violations-section h5 {
|
|
color: #e74c3c;
|
|
margin-bottom: 10px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.violations-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.violations-list li {
|
|
padding: 8px 0;
|
|
color: #c0392b;
|
|
border-bottom: 1px solid #f8d7da;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.violations-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.violations-list li:before {
|
|
content: "⚠️ ";
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.enhancement-btn {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 15px 30px;
|
|
border-radius: 10px;
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
margin: 20px 0;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.enhancement-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
|
|
}
|
|
|
|
.enhancement-btn:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.enhancement-section {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.enhancement-section h3 {
|
|
color: #333;
|
|
margin-bottom: 20px;
|
|
font-size: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.enhancement-controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.nav-btn {
|
|
background: #f8f9fa;
|
|
border: 2px solid #dee2e6;
|
|
color: #495057;
|
|
padding: 10px 15px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.nav-btn:hover:not(:disabled) {
|
|
background: #e9ecef;
|
|
border-color: #adb5bd;
|
|
}
|
|
|
|
.nav-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.enhancement-counter {
|
|
font-weight: 600;
|
|
color: #495057;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.enhancement-display {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 30px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.original-image, .enhanced-image {
|
|
text-align: center;
|
|
}
|
|
|
|
.original-image h4, .enhanced-image h4 {
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.comparison-img {
|
|
max-width: 100%;
|
|
max-height: 300px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.enhancement-actions {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 12px 25px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.reject-btn {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.reject-btn:hover {
|
|
background: #c0392b;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.save-btn {
|
|
background: #27ae60;
|
|
color: white;
|
|
}
|
|
|
|
.save-btn:hover {
|
|
background: #229954;
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.enhancement-prompt {
|
|
background: #f8f9fa;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #667eea;
|
|
}
|
|
|
|
.enhancement-prompt h5 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.enhancement-prompt p {
|
|
color: #666;
|
|
line-height: 1.6;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.header h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.preferences-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.score-breakdown {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.risk-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 5px;
|
|
}
|
|
|
|
.risk-score, .risk-level {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.risk-scores {
|
|
gap: 8px;
|
|
}
|
|
|
|
.enhancement-display {
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.enhancement-actions {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.action-btn {
|
|
width: 100%;
|
|
padding: 15px;
|
|
}
|
|
|
|
.enhancement-controls {
|
|
gap: 15px;
|
|
}
|
|
|
|
.nav-btn {
|
|
padding: 12px 20px;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1><i class="fas fa-rocket"></i> Viral Velocity</h1>
|
|
<p>AI-Powered Social Media Image Scoring with Personalization</p>
|
|
</div>
|
|
|
|
<div class="main-content">
|
|
<div class="upload-section">
|
|
<h3><i class="fas fa-upload"></i> Upload Your Image</h3>
|
|
<div class="upload-area" id="uploadArea">
|
|
<div class="upload-icon">
|
|
<i class="fas fa-cloud-upload-alt"></i>
|
|
</div>
|
|
<div class="upload-text">Click to upload or drag and drop</div>
|
|
<div class="upload-hint">Supports JPG, PNG, GIF (Max 10MB)</div>
|
|
<input type="file" id="imageInput" accept="image/*" style="display: none;">
|
|
</div>
|
|
<div id="imagePreview" style="display: none; margin-top: 20px;">
|
|
<img id="previewImg" style="max-width: 300px; max-height: 300px; border-radius: 10px;">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="preferences-section">
|
|
<h3><i class="fas fa-cog"></i> Personalization Preferences</h3>
|
|
<div class="preferences-grid">
|
|
<div class="preference-group">
|
|
<label for="aesthetic">Aesthetic Style</label>
|
|
<select id="aesthetic">
|
|
<option value="">Select Aesthetic</option>
|
|
</select>
|
|
</div>
|
|
<div class="preference-group">
|
|
<label for="niche">Content Niche</label>
|
|
<select id="niche">
|
|
<option value="">Select Niche</option>
|
|
</select>
|
|
</div>
|
|
<div class="preference-group">
|
|
<label for="targetAudience">Target Audience</label>
|
|
<select id="targetAudience">
|
|
<option value="">Select Audience</option>
|
|
</select>
|
|
</div>
|
|
<div class="preference-group">
|
|
<label for="contentType">Content Type</label>
|
|
<select id="contentType">
|
|
<option value="">Select Content Type</option>
|
|
</select>
|
|
</div>
|
|
<div class="preference-group">
|
|
<label for="brandVoice">Brand Voice</label>
|
|
<select id="brandVoice">
|
|
<option value="">Select Brand Voice</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<button class="analyze-btn" id="analyzeBtn" disabled>
|
|
<i class="fas fa-magic"></i> Analyze Image
|
|
</button>
|
|
</div>
|
|
|
|
<div class="loading" id="loading">
|
|
<div class="spinner"></div>
|
|
<p>Analyzing your image with AI...</p>
|
|
</div>
|
|
|
|
<div class="results-section" id="resultsSection">
|
|
<div class="score-display">
|
|
<div class="final-score" id="finalScore">0</div>
|
|
<div class="score-label">Viral Velocity Score</div>
|
|
</div>
|
|
|
|
<div class="score-breakdown" id="scoreBreakdown">
|
|
<!-- Score cards will be inserted here -->
|
|
</div>
|
|
|
|
<div class="recommendations">
|
|
<h4><i class="fas fa-lightbulb"></i> Recommendations</h4>
|
|
<ul class="recommendation-list" id="recommendationList">
|
|
<!-- Recommendations will be inserted here -->
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/script.js"></script>
|
|
</body>
|
|
</html>
|