Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +454 -19
- prompts.txt +1 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: analyse-de-site
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,454 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>DeepSite Pro - AI-Powered Website Analysis</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
body {
|
13 |
+
font-family: 'Inter', sans-serif;
|
14 |
+
background-color: #f8fafc;
|
15 |
+
}
|
16 |
+
|
17 |
+
.gradient-bg {
|
18 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
|
19 |
+
}
|
20 |
+
|
21 |
+
.card-glow:hover {
|
22 |
+
box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
|
23 |
+
}
|
24 |
+
|
25 |
+
.analysis-loader {
|
26 |
+
border: 3px solid #e2e8f0;
|
27 |
+
border-top: 3px solid #6366f1;
|
28 |
+
border-radius: 50%;
|
29 |
+
width: 30px;
|
30 |
+
height: 30px;
|
31 |
+
animation: spin 1s linear infinite;
|
32 |
+
}
|
33 |
+
|
34 |
+
@keyframes spin {
|
35 |
+
0% { transform: rotate(0deg); }
|
36 |
+
100% { transform: rotate(360deg); }
|
37 |
+
}
|
38 |
+
|
39 |
+
.result-fade-in {
|
40 |
+
animation: fadeIn 0.5s ease-in-out;
|
41 |
+
}
|
42 |
+
|
43 |
+
@keyframes fadeIn {
|
44 |
+
from { opacity: 0; transform: translateY(10px); }
|
45 |
+
to { opacity: 1; transform: translateY(0); }
|
46 |
+
}
|
47 |
+
</style>
|
48 |
+
</head>
|
49 |
+
<body class="min-h-screen">
|
50 |
+
<div class="gradient-bg text-white">
|
51 |
+
<div class="container mx-auto px-4 py-12">
|
52 |
+
<header class="flex justify-between items-center mb-12">
|
53 |
+
<div class="flex items-center space-x-2">
|
54 |
+
<i class="fas fa-robot text-2xl"></i>
|
55 |
+
<h1 class="text-2xl font-bold">DeepSite Pro</h1>
|
56 |
+
</div>
|
57 |
+
<nav class="hidden md:flex space-x-6">
|
58 |
+
<a href="#" class="hover:text-indigo-200 transition">Features</a>
|
59 |
+
<a href="#" class="hover:text-indigo-200 transition">Pricing</a>
|
60 |
+
<a href="#" class="hover:text-indigo-200 transition">API</a>
|
61 |
+
<a href="#" class="hover:text-indigo-200 transition">Docs</a>
|
62 |
+
</nav>
|
63 |
+
<button class="md:hidden text-xl">
|
64 |
+
<i class="fas fa-bars"></i>
|
65 |
+
</button>
|
66 |
+
</header>
|
67 |
+
|
68 |
+
<div class="max-w-4xl mx-auto text-center">
|
69 |
+
<h2 class="text-4xl md:text-5xl font-bold mb-6">AI-Powered Website Analysis</h2>
|
70 |
+
<p class="text-xl text-indigo-100 mb-10">Uncover deep insights about any website with our advanced AI technology. Analyze content, structure, SEO, and more in seconds.</p>
|
71 |
+
|
72 |
+
<div class="bg-white rounded-lg shadow-xl p-1 max-w-2xl mx-auto">
|
73 |
+
<div class="flex">
|
74 |
+
<input type="text" id="website-url" placeholder="Enter website URL (e.g., https://example.com)"
|
75 |
+
class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
|
76 |
+
<button id="analyze-btn" class="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-3 rounded-r-lg font-medium transition">
|
77 |
+
Analyze
|
78 |
+
</button>
|
79 |
+
</div>
|
80 |
+
</div>
|
81 |
+
|
82 |
+
<div class="mt-6 text-indigo-100">
|
83 |
+
<p>Try analyzing: <span class="font-medium cursor-pointer hover:text-white sample-url" data-url="https://openai.com">openai.com</span>,
|
84 |
+
<span class="font-medium cursor-pointer hover:text-white sample-url" data-url="https://github.com">github.com</span>,
|
85 |
+
<span class="font-medium cursor-pointer hover:text-white sample-url" data-url="https://tailwindcss.com">tailwindcss.com</span></p>
|
86 |
+
</div>
|
87 |
+
</div>
|
88 |
+
</div>
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<div class="container mx-auto px-4 py-16">
|
92 |
+
<div id="analysis-container" class="hidden">
|
93 |
+
<div class="flex justify-between items-center mb-8">
|
94 |
+
<h3 class="text-2xl font-bold text-gray-800">Analysis Results</h3>
|
95 |
+
<div class="flex space-x-3">
|
96 |
+
<button class="px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-gray-700 transition">
|
97 |
+
<i class="fas fa-download mr-2"></i> Export
|
98 |
+
</button>
|
99 |
+
<button class="px-4 py-2 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg transition">
|
100 |
+
<i class="fas fa-share-alt mr-2"></i> Share
|
101 |
+
</button>
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
|
105 |
+
<div id="results-area" class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
106 |
+
<!-- Results will be populated here by JavaScript -->
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<div id="loading-indicator" class="hidden flex-col items-center justify-center py-20">
|
111 |
+
<div class="analysis-loader mb-4"></div>
|
112 |
+
<p class="text-gray-600">Analyzing website, please wait...</p>
|
113 |
+
</div>
|
114 |
+
|
115 |
+
<div class="max-w-4xl mx-auto text-center mt-20">
|
116 |
+
<h3 class="text-3xl font-bold text-gray-800 mb-4">How DeepSite Pro Works</h3>
|
117 |
+
<p class="text-gray-600 mb-12">Our AI scans websites across multiple dimensions to provide comprehensive insights that help you understand and improve web presence.</p>
|
118 |
+
|
119 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
120 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition card-glow">
|
121 |
+
<div class="bg-indigo-100 w-14 h-14 rounded-full flex items-center justify-center mb-4 mx-auto">
|
122 |
+
<i class="fas fa-search text-indigo-600 text-xl"></i>
|
123 |
+
</div>
|
124 |
+
<h4 class="font-bold text-lg mb-2">Content Analysis</h4>
|
125 |
+
<p class="text-gray-600">Examine text content, readability, keywords, and semantic structure to optimize messaging.</p>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition card-glow">
|
129 |
+
<div class="bg-purple-100 w-14 h-14 rounded-full flex items-center justify-center mb-4 mx-auto">
|
130 |
+
<i class="fas fa-code text-purple-600 text-xl"></i>
|
131 |
+
</div>
|
132 |
+
<h4 class="font-bold text-lg mb-2">Technical SEO</h4>
|
133 |
+
<p class="text-gray-600">Check meta tags, headers, sitemaps, and other technical SEO factors affecting rankings.</p>
|
134 |
+
</div>
|
135 |
+
|
136 |
+
<div class="bg-white p-6 rounded-xl shadow-md hover:shadow-lg transition card-glow">
|
137 |
+
<div class="bg-pink-100 w-14 h-14 rounded-full flex items-center justify-center mb-4 mx-auto">
|
138 |
+
<i class="fas fa-chart-line text-pink-600 text-xl"></i>
|
139 |
+
</div>
|
140 |
+
<h4 class="font-bold text-lg mb-2">Performance Metrics</h4>
|
141 |
+
<p class="text-gray-600">Measure page speed, mobile-friendliness, and other critical performance indicators.</p>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
</div>
|
146 |
+
|
147 |
+
<footer class="bg-gray-50 border-t border-gray-200 py-12">
|
148 |
+
<div class="container mx-auto px-4">
|
149 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
150 |
+
<div>
|
151 |
+
<h5 class="font-bold text-lg mb-4">DeepSite Pro</h5>
|
152 |
+
<p class="text-gray-600">Advanced AI website analysis tool for developers, marketers, and SEO specialists.</p>
|
153 |
+
</div>
|
154 |
+
<div>
|
155 |
+
<h5 class="font-bold text-lg mb-4">Product</h5>
|
156 |
+
<ul class="space-y-2">
|
157 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">Features</a></li>
|
158 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">Pricing</a></li>
|
159 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">API</a></li>
|
160 |
+
</ul>
|
161 |
+
</div>
|
162 |
+
<div>
|
163 |
+
<h5 class="font-bold text-lg mb-4">Resources</h5>
|
164 |
+
<ul class="space-y-2">
|
165 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">Documentation</a></li>
|
166 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">Blog</a></li>
|
167 |
+
<li><a href="#" class="text-gray-600 hover:text-indigo-600 transition">Support</a></li>
|
168 |
+
</ul>
|
169 |
+
</div>
|
170 |
+
<div>
|
171 |
+
<h5 class="font-bold text-lg mb-4">Connect</h5>
|
172 |
+
<div class="flex space-x-4">
|
173 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition"><i class="fab fa-twitter"></i></a>
|
174 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition"><i class="fab fa-github"></i></a>
|
175 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition"><i class="fab fa-linkedin"></i></a>
|
176 |
+
<a href="#" class="text-gray-600 hover:text-indigo-600 transition"><i class="fab fa-discord"></i></a>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
|
181 |
+
<p>© 2023 DeepSite Pro. All rights reserved.</p>
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
</footer>
|
185 |
+
|
186 |
+
<script>
|
187 |
+
document.addEventListener('DOMContentLoaded', function() {
|
188 |
+
const analyzeBtn = document.getElementById('analyze-btn');
|
189 |
+
const websiteUrl = document.getElementById('website-url');
|
190 |
+
const analysisContainer = document.getElementById('analysis-container');
|
191 |
+
const loadingIndicator = document.getElementById('loading-indicator');
|
192 |
+
const resultsArea = document.getElementById('results-area');
|
193 |
+
const sampleUrls = document.querySelectorAll('.sample-url');
|
194 |
+
|
195 |
+
// Sample analysis data
|
196 |
+
const sampleAnalysisData = {
|
197 |
+
"https://openai.com": {
|
198 |
+
"content": {
|
199 |
+
"score": 92,
|
200 |
+
"readability": "Very High",
|
201 |
+
"keywords": ["AI", "research", "machine learning", "GPT", "models"]
|
202 |
+
},
|
203 |
+
"seo": {
|
204 |
+
"score": 88,
|
205 |
+
"metaTags": "Complete",
|
206 |
+
"headers": "Well structured"
|
207 |
+
},
|
208 |
+
"performance": {
|
209 |
+
"score": 95,
|
210 |
+
"loadTime": "1.2s",
|
211 |
+
"mobileFriendly": "Yes"
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"https://github.com": {
|
215 |
+
"content": {
|
216 |
+
"score": 85,
|
217 |
+
"readability": "High",
|
218 |
+
"keywords": ["code", "version control", "repository", "git", "developer"]
|
219 |
+
},
|
220 |
+
"seo": {
|
221 |
+
"score": 90,
|
222 |
+
"metaTags": "Complete",
|
223 |
+
"headers": "Excellent"
|
224 |
+
},
|
225 |
+
"performance": {
|
226 |
+
"score": 89,
|
227 |
+
"loadTime": "1.5s",
|
228 |
+
"mobileFriendly": "Yes"
|
229 |
+
}
|
230 |
+
},
|
231 |
+
"https://tailwindcss.com": {
|
232 |
+
"content": {
|
233 |
+
"score": 87,
|
234 |
+
"readability": "High",
|
235 |
+
"keywords": ["CSS", "framework", "utility", "design", "responsive"]
|
236 |
+
},
|
237 |
+
"seo": {
|
238 |
+
"score": 86,
|
239 |
+
"metaTags": "Complete",
|
240 |
+
"headers": "Good"
|
241 |
+
},
|
242 |
+
"performance": {
|
243 |
+
"score": 93,
|
244 |
+
"loadTime": "1.1s",
|
245 |
+
"mobileFriendly": "Yes"
|
246 |
+
}
|
247 |
+
}
|
248 |
+
};
|
249 |
+
|
250 |
+
// Sample URLs click handler
|
251 |
+
sampleUrls.forEach(url => {
|
252 |
+
url.addEventListener('click', function() {
|
253 |
+
websiteUrl.value = this.getAttribute('data-url');
|
254 |
+
});
|
255 |
+
});
|
256 |
+
|
257 |
+
// Analyze button click handler
|
258 |
+
analyzeBtn.addEventListener('click', function() {
|
259 |
+
const url = websiteUrl.value.trim();
|
260 |
+
|
261 |
+
if (!url) {
|
262 |
+
alert('Please enter a website URL');
|
263 |
+
return;
|
264 |
+
}
|
265 |
+
|
266 |
+
// Validate URL format
|
267 |
+
try {
|
268 |
+
new URL(url);
|
269 |
+
} catch (e) {
|
270 |
+
alert('Please enter a valid URL (e.g., https://example.com)');
|
271 |
+
return;
|
272 |
+
}
|
273 |
+
|
274 |
+
// Show loading indicator
|
275 |
+
analysisContainer.classList.add('hidden');
|
276 |
+
loadingIndicator.classList.remove('hidden');
|
277 |
+
|
278 |
+
// Simulate API call with timeout
|
279 |
+
setTimeout(() => {
|
280 |
+
loadingIndicator.classList.add('hidden');
|
281 |
+
|
282 |
+
// Check if we have sample data for this URL
|
283 |
+
let analysisData;
|
284 |
+
if (sampleAnalysisData[url]) {
|
285 |
+
analysisData = sampleAnalysisData[url];
|
286 |
+
} else {
|
287 |
+
// Generate random data for other URLs
|
288 |
+
analysisData = {
|
289 |
+
content: {
|
290 |
+
score: Math.floor(Math.random() * 30) + 70,
|
291 |
+
readability: ["Low", "Medium", "High", "Very High"][Math.floor(Math.random() * 4)],
|
292 |
+
keywords: ["sample", "website", "content", "analysis", "demo"]
|
293 |
+
},
|
294 |
+
seo: {
|
295 |
+
score: Math.floor(Math.random() * 30) + 70,
|
296 |
+
metaTags: ["Incomplete", "Partial", "Complete"][Math.floor(Math.random() * 3)],
|
297 |
+
headers: ["Poor", "Average", "Good", "Excellent"][Math.floor(Math.random() * 4)]
|
298 |
+
},
|
299 |
+
performance: {
|
300 |
+
score: Math.floor(Math.random() * 30) + 70,
|
301 |
+
loadTime: (Math.random() * 2 + 0.5).toFixed(1) + "s",
|
302 |
+
mobileFriendly: ["No", "Yes"][Math.floor(Math.random() * 2)]
|
303 |
+
}
|
304 |
+
};
|
305 |
+
}
|
306 |
+
|
307 |
+
// Display results
|
308 |
+
displayResults(url, analysisData);
|
309 |
+
analysisContainer.classList.remove('hidden');
|
310 |
+
}, 2000);
|
311 |
+
});
|
312 |
+
|
313 |
+
// Function to display analysis results
|
314 |
+
function displayResults(url, data) {
|
315 |
+
resultsArea.innerHTML = '';
|
316 |
+
|
317 |
+
// Add URL card
|
318 |
+
const urlCard = document.createElement('div');
|
319 |
+
urlCard.className = 'md:col-span-3 bg-white rounded-xl shadow-md p-6 result-fade-in';
|
320 |
+
urlCard.innerHTML = `
|
321 |
+
<div class="flex items-center justify-between mb-4">
|
322 |
+
<div class="flex items-center">
|
323 |
+
<div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center mr-3">
|
324 |
+
<i class="fas fa-globe text-indigo-600"></i>
|
325 |
+
</div>
|
326 |
+
<h4 class="font-bold text-lg">${url}</h4>
|
327 |
+
</div>
|
328 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm font-medium">Analysis Complete</span>
|
329 |
+
</div>
|
330 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
331 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
332 |
+
<p class="text-gray-500 text-sm mb-1">Overall Score</p>
|
333 |
+
<div class="flex items-center">
|
334 |
+
<div class="w-16 h-16 rounded-full flex items-center justify-center bg-indigo-100 text-indigo-800 font-bold text-xl mr-3">
|
335 |
+
${Math.round((data.content.score + data.seo.score + data.performance.score) / 3)}
|
336 |
+
</div>
|
337 |
+
<div>
|
338 |
+
<div class="h-2 bg-gray-200 rounded-full mb-1">
|
339 |
+
<div class="h-2 bg-indigo-600 rounded-full" style="width: ${Math.round((data.content.score + data.seo.score + data.performance.score) / 3)}%"></div>
|
340 |
+
</div>
|
341 |
+
<p class="text-gray-500 text-xs">Based on 3 categories</p>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
</div>
|
345 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
346 |
+
<p class="text-gray-500 text-sm mb-1">Last Analyzed</p>
|
347 |
+
<p class="font-medium">${new Date().toLocaleDateString()}</p>
|
348 |
+
</div>
|
349 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
350 |
+
<p class="text-gray-500 text-sm mb-1">Page Size</p>
|
351 |
+
<p class="font-medium">${(Math.random() * 2 + 0.5).toFixed(1)} MB</p>
|
352 |
+
</div>
|
353 |
+
</div>
|
354 |
+
`;
|
355 |
+
resultsArea.appendChild(urlCard);
|
356 |
+
|
357 |
+
// Add analysis category cards
|
358 |
+
const categories = [
|
359 |
+
{
|
360 |
+
title: "Content Analysis",
|
361 |
+
icon: "fas fa-search",
|
362 |
+
color: "indigo",
|
363 |
+
data: data.content
|
364 |
+
},
|
365 |
+
{
|
366 |
+
title: "Technical SEO",
|
367 |
+
icon: "fas fa-code",
|
368 |
+
color: "purple",
|
369 |
+
data: data.seo
|
370 |
+
},
|
371 |
+
{
|
372 |
+
title: "Performance Metrics",
|
373 |
+
icon: "fas fa-chart-line",
|
374 |
+
color: "pink",
|
375 |
+
data: data.performance
|
376 |
+
}
|
377 |
+
];
|
378 |
+
|
379 |
+
categories.forEach(category => {
|
380 |
+
const card = document.createElement('div');
|
381 |
+
card.className = 'bg-white rounded-xl shadow-md p-6 result-fade-in';
|
382 |
+
card.innerHTML = `
|
383 |
+
<div class="flex items-center mb-4">
|
384 |
+
<div class="w-10 h-10 bg-${category.color}-100 rounded-full flex items-center justify-center mr-3">
|
385 |
+
<i class="${category.icon} text-${category.color}-600"></i>
|
386 |
+
</div>
|
387 |
+
<h4 class="font-bold text-lg">${category.title}</h4>
|
388 |
+
</div>
|
389 |
+
<div class="mb-4">
|
390 |
+
<div class="flex items-center justify-between mb-1">
|
391 |
+
<span class="text-gray-600">Score</span>
|
392 |
+
<span class="font-bold text-${category.color}-600">${category.data.score}/100</span>
|
393 |
+
</div>
|
394 |
+
<div class="h-2 bg-gray-200 rounded-full">
|
395 |
+
<div class="h-2 bg-${category.color}-600 rounded-full" style="width: ${category.data.score}%"></div>
|
396 |
+
</div>
|
397 |
+
</div>
|
398 |
+
<div class="space-y-3">
|
399 |
+
${Object.entries(category.data)
|
400 |
+
.filter(([key]) => key !== 'score')
|
401 |
+
.map(([key, value]) => `
|
402 |
+
<div class="flex justify-between">
|
403 |
+
<span class="text-gray-600 capitalize">${key.replace(/([A-Z])/g, ' $1').trim()}</span>
|
404 |
+
<span class="font-medium">${value}</span>
|
405 |
+
</div>
|
406 |
+
`).join('')}
|
407 |
+
</div>
|
408 |
+
<button class="mt-4 w-full py-2 bg-${category.color}-50 hover:bg-${category.color}-100 text-${category.color}-600 rounded-lg transition font-medium">
|
409 |
+
View Details
|
410 |
+
</button>
|
411 |
+
`;
|
412 |
+
resultsArea.appendChild(card);
|
413 |
+
});
|
414 |
+
|
415 |
+
// Add recommendations card
|
416 |
+
const recCard = document.createElement('div');
|
417 |
+
recCard.className = 'md:col-span-3 bg-white rounded-xl shadow-md p-6 result-fade-in';
|
418 |
+
recCard.innerHTML = `
|
419 |
+
<div class="flex items-center mb-4">
|
420 |
+
<div class="w-10 h-10 bg-yellow-100 rounded-full flex items-center justify-center mr-3">
|
421 |
+
<i class="fas fa-lightbulb text-yellow-600"></i>
|
422 |
+
</div>
|
423 |
+
<h4 class="font-bold text-lg">Recommendations</h4>
|
424 |
+
</div>
|
425 |
+
<div class="space-y-4">
|
426 |
+
<div class="flex items-start">
|
427 |
+
<div class="flex-shrink-0 h-5 w-5 text-yellow-500 mt-1 mr-2">
|
428 |
+
<i class="fas fa-exclamation-circle"></i>
|
429 |
+
</div>
|
430 |
+
<p class="text-gray-700">Consider improving page load time by optimizing images and leveraging browser caching.</p>
|
431 |
+
</div>
|
432 |
+
<div class="flex items-start">
|
433 |
+
<div class="flex-shrink-0 h-5 w-5 text-yellow-500 mt-1 mr-2">
|
434 |
+
<i class="fas fa-exclamation-circle"></i>
|
435 |
+
</div>
|
436 |
+
<p class="text-gray-700">Add more descriptive meta tags to improve search engine visibility.</p>
|
437 |
+
</div>
|
438 |
+
<div class="flex items-start">
|
439 |
+
<div class="flex-shrink-0 h-5 w-5 text-green-500 mt-1 mr-2">
|
440 |
+
<i class="fas fa-check-circle"></i>
|
441 |
+
</div>
|
442 |
+
<p class="text-gray-700">Your content readability is excellent, maintaining this will help engage visitors.</p>
|
443 |
+
</div>
|
444 |
+
</div>
|
445 |
+
`;
|
446 |
+
resultsArea.appendChild(recCard);
|
447 |
+
|
448 |
+
// Scroll to results
|
449 |
+
analysisContainer.scrollIntoView({ behavior: 'smooth' });
|
450 |
+
}
|
451 |
+
});
|
452 |
+
</script>
|
453 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/analyse-de-site" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
454 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
https://huggingface.co/spaces/docto41/deepsite-pro
|