Snak1nya commited on
Commit
d36f611
·
verified ·
1 Parent(s): e243320

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ Website/mcpso_servers_cleaned.json filter=lfs diff=lfs merge=lfs -text
Website/index.html ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>MCPZoo</title>
7
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
8
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
9
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
10
+ <link rel="stylesheet" href="styles.css">
11
+ </head>
12
+ <body>
13
+ <div class="app">
14
+ <!-- Sidebar Navigation -->
15
+ <nav class="sidebar">
16
+ <div class="sidebar-header">
17
+ <div class="logo">
18
+ <i class="fas fa-network-wired"></i>
19
+ <span>MCPZoo</span>
20
+ </div>
21
+ </div>
22
+ <ul class="nav-menu">
23
+ <li class="nav-item active" data-page="dashboard">
24
+ <i class="fas fa-chart-bar"></i>
25
+ <span>Dashboard</span>
26
+ </li>
27
+ <li class="nav-item" data-page="search">
28
+ <i class="fas fa-search"></i>
29
+ <span>Search</span>
30
+ </li>
31
+ </ul>
32
+ </nav>
33
+
34
+ <!-- Main Content -->
35
+ <main class="main-content">
36
+ <!-- Dashboard Page -->
37
+ <div id="dashboard" class="page active">
38
+ <header class="page-header">
39
+ <h1>MCPZoo Dashboard</h1>
40
+ <p>Explore the Model Context Protocol ecosystem</p>
41
+ </header>
42
+
43
+ <!-- Stats Grid -->
44
+ <div class="stats-grid">
45
+ <div class="stat-card">
46
+ <div class="stat-icon clients">
47
+ <i class="fas fa-desktop"></i>
48
+ </div>
49
+ <div class="stat-content">
50
+ <div class="stat-number" id="clients-count">0</div>
51
+ <div class="stat-label">Clients</div>
52
+ </div>
53
+ </div>
54
+ <div class="stat-card">
55
+ <div class="stat-icon servers">
56
+ <i class="fas fa-server"></i>
57
+ </div>
58
+ <div class="stat-content">
59
+ <div class="stat-number" id="servers-count">0</div>
60
+ <div class="stat-label">Servers</div>
61
+ </div>
62
+ </div>
63
+ <div class="stat-card">
64
+ <div class="stat-icon categories">
65
+ <i class="fas fa-tags"></i>
66
+ </div>
67
+ <div class="stat-content">
68
+ <div class="stat-number" id="categories-count">0</div>
69
+ <div class="stat-label">Categories</div>
70
+ </div>
71
+ </div>
72
+ <div class="stat-card">
73
+ <div class="stat-icon stars">
74
+ <i class="fas fa-star"></i>
75
+ </div>
76
+ <div class="stat-content">
77
+ <div class="stat-number" id="stars-count">0</div>
78
+ <div class="stat-label">Total Stars</div>
79
+ </div>
80
+ </div>
81
+ </div>
82
+
83
+ <!-- Charts -->
84
+ <div class="charts-container">
85
+ <div class="chart-card">
86
+ <h3>Category Distribution</h3>
87
+ <canvas id="categoryChart"></canvas>
88
+ </div>
89
+ <div class="chart-card">
90
+ <h3>Programming Languages</h3>
91
+ <canvas id="languageChart"></canvas>
92
+ </div>
93
+ </div>
94
+
95
+ <!-- Top Projects -->
96
+ <div class="top-projects">
97
+ <h3>Top Projects by Stars</h3>
98
+ <div class="projects-list" id="top-projects"></div>
99
+ </div>
100
+ </div>
101
+
102
+ <!-- Search Page -->
103
+ <div id="search" class="page">
104
+ <header class="page-header">
105
+ <h1>Search Projects</h1>
106
+ <p>Find MCP clients and servers</p>
107
+ </header>
108
+
109
+ <!-- Search Controls -->
110
+ <div class="search-controls">
111
+ <div class="search-box">
112
+ <i class="fas fa-search"></i>
113
+ <input type="text" id="search-input" placeholder="Search by name, description, or author...">
114
+ </div>
115
+ <div class="filters">
116
+ <select id="type-filter">
117
+ <option value="">All Types</option>
118
+ <option value="client">Clients</option>
119
+ <option value="server">Servers</option>
120
+ </select>
121
+ <select id="category-filter">
122
+ <option value="">All Categories</option>
123
+ </select>
124
+ <select id="language-filter">
125
+ <option value="">All Languages</option>
126
+ </select>
127
+ </div>
128
+ </div>
129
+
130
+ <!-- Results -->
131
+ <div class="search-results">
132
+ <div class="results-header">
133
+ <span id="results-count">0 results</span>
134
+ <div class="view-toggle">
135
+ <button class="view-btn active" data-view="grid">
136
+ <i class="fas fa-th"></i>
137
+ </button>
138
+ <button class="view-btn" data-view="list">
139
+ <i class="fas fa-list"></i>
140
+ </button>
141
+ </div>
142
+ </div>
143
+ <div class="results-grid" id="search-results"></div>
144
+
145
+ <!-- Pagination -->
146
+ <div class="pagination-container" id="pagination-container">
147
+ <div class="pagination">
148
+ <button class="page-btn prev-btn" id="prev-btn">
149
+ <i class="fas fa-chevron-left"></i>
150
+ Previous
151
+ </button>
152
+ <div class="page-numbers" id="page-numbers"></div>
153
+ <button class="page-btn next-btn" id="next-btn">
154
+ Next
155
+ <i class="fas fa-chevron-right"></i>
156
+ </button>
157
+ </div>
158
+ <div class="pagination-info">
159
+ <span id="pagination-info">Showing 1-20 of 100</span>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </div>
164
+ </main>
165
+ </div>
166
+
167
+ <!-- Project Modal -->
168
+ <div id="project-modal" class="modal">
169
+ <div class="modal-content">
170
+ <div class="modal-header">
171
+ <h2 id="modal-title"></h2>
172
+ <button class="modal-close">
173
+ <i class="fas fa-times"></i>
174
+ </button>
175
+ </div>
176
+ <div class="modal-body" id="modal-body"></div>
177
+ </div>
178
+ </div>
179
+
180
+ <script src="script.js"></script>
181
+ </body>
182
+ </html>
Website/mcpso_clients_cleaned.json ADDED
The diff for this file is too large to render. See raw diff
 
Website/mcpso_servers_cleaned.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc14fc4fe5c68b73e77cbaa3e64fc2b58616a8e61d0e96d92b8fd861702b9e20
3
+ size 13158383
Website/script.js ADDED
@@ -0,0 +1,817 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Global variables
2
+ let clientsData = [];
3
+ let serversData = [];
4
+ let allData = [];
5
+ let filteredData = [];
6
+ let currentView = 'grid';
7
+ let currentPage = 1;
8
+ let itemsPerPage = 20;
9
+ let totalPages = 1;
10
+
11
+ // DOM Elements
12
+ const navItems = document.querySelectorAll('.nav-item');
13
+ const pages = document.querySelectorAll('.page');
14
+ const searchInput = document.getElementById('search-input');
15
+ const typeFilter = document.getElementById('type-filter');
16
+ const categoryFilter = document.getElementById('category-filter');
17
+ const languageFilter = document.getElementById('language-filter');
18
+ const searchResults = document.getElementById('search-results');
19
+ const resultsCount = document.getElementById('results-count');
20
+ const viewButtons = document.querySelectorAll('.view-btn');
21
+ const modal = document.getElementById('project-modal');
22
+ const modalTitle = document.getElementById('modal-title');
23
+ const modalBody = document.getElementById('modal-body');
24
+ const modalClose = document.querySelector('.modal-close');
25
+ const paginationContainer = document.getElementById('pagination-container');
26
+ const prevBtn = document.getElementById('prev-btn');
27
+ const nextBtn = document.getElementById('next-btn');
28
+ const pageNumbers = document.getElementById('page-numbers');
29
+ const paginationInfo = document.getElementById('pagination-info');
30
+
31
+ // Initialize app
32
+ document.addEventListener('DOMContentLoaded', async () => {
33
+ await loadData();
34
+ setupEventListeners();
35
+ updateDashboard();
36
+ initializeSearch();
37
+ });
38
+
39
+ // Load data from JSON files with optimization
40
+ async function loadData() {
41
+ try {
42
+ showLoading();
43
+
44
+ const [clientsResponse, serversResponse] = await Promise.all([
45
+ fetch('mcpso_clients_cleaned.json'),
46
+ fetch('mcpso_servers_cleaned.json')
47
+ ]);
48
+
49
+ if (!clientsResponse.ok || !serversResponse.ok) {
50
+ throw new Error('Failed to fetch data');
51
+ }
52
+
53
+ clientsData = await clientsResponse.json();
54
+ serversData = await serversResponse.json();
55
+
56
+ // Combine all data and deduplicate by GitHub repository
57
+ const rawData = [
58
+ ...clientsData.map(item => ({ ...item, type: 'client' })),
59
+ ...serversData.map(item => ({ ...item, type: 'server' }))
60
+ ];
61
+
62
+ // Process and deduplicate data
63
+ allData = processAndDeduplicateData(rawData);
64
+ filteredData = [...allData];
65
+
66
+ console.log(`Loaded ${clientsData.length} clients and ${serversData.length} servers (${allData.length} total projects)`);
67
+
68
+ hideLoading();
69
+ } catch (error) {
70
+ console.error('Error loading data:', error);
71
+ showError('Failed to load data. Please refresh the page.');
72
+ hideLoading();
73
+ }
74
+ }
75
+
76
+ // Setup event listeners
77
+ function setupEventListeners() {
78
+ // Navigation
79
+ navItems.forEach(item => {
80
+ item.addEventListener('click', () => switchPage(item.dataset.page));
81
+ });
82
+
83
+ // Search and filters
84
+ searchInput.addEventListener('input', debounce(performSearch, 300));
85
+ typeFilter.addEventListener('change', performSearch);
86
+ categoryFilter.addEventListener('change', performSearch);
87
+ languageFilter.addEventListener('change', performSearch);
88
+
89
+ // View toggle
90
+ viewButtons.forEach(btn => {
91
+ btn.addEventListener('click', () => toggleView(btn.dataset.view));
92
+ });
93
+
94
+ // Modal
95
+ modalClose.addEventListener('click', closeModal);
96
+ modal.addEventListener('click', (e) => {
97
+ if (e.target === modal) closeModal();
98
+ });
99
+
100
+ document.addEventListener('keydown', (e) => {
101
+ if (e.key === 'Escape') closeModal();
102
+ });
103
+
104
+ // Pagination
105
+ prevBtn.addEventListener('click', () => {
106
+ if (currentPage > 1) {
107
+ currentPage--;
108
+ renderSearchResults();
109
+ renderPagination();
110
+ }
111
+ });
112
+
113
+ nextBtn.addEventListener('click', () => {
114
+ if (currentPage < totalPages) {
115
+ currentPage++;
116
+ renderSearchResults();
117
+ renderPagination();
118
+ }
119
+ });
120
+ }
121
+
122
+ // Switch between pages
123
+ function switchPage(pageId) {
124
+ // Update navigation
125
+ navItems.forEach(item => {
126
+ item.classList.toggle('active', item.dataset.page === pageId);
127
+ });
128
+
129
+ // Update pages
130
+ pages.forEach(page => {
131
+ page.classList.toggle('active', page.id === pageId);
132
+ });
133
+
134
+ // Initialize page-specific content
135
+ if (pageId === 'search') {
136
+ // Reset pagination when switching to search page
137
+ currentPage = 1;
138
+ performSearch();
139
+ populateFilters();
140
+ }
141
+ }
142
+
143
+ // Process and deduplicate data based on GitHub repository
144
+ function processAndDeduplicateData(rawData) {
145
+ const githubMap = new Map();
146
+ const processedData = [];
147
+
148
+ for (const item of rawData) {
149
+ // Only process items with valid GitHub data
150
+ if (item.github && item.github.full_name && item.github.stargazers_count >= 0) {
151
+ const githubKey = item.github.full_name.toLowerCase();
152
+
153
+ // Extract real project name from GitHub URL
154
+ const realName = extractProjectNameFromGithub(item.github.full_name);
155
+
156
+ // Check if we already have this repository
157
+ if (githubMap.has(githubKey)) {
158
+ const existing = githubMap.get(githubKey);
159
+ // Keep the one with more complete information or higher stars
160
+ if (item.github.stargazers_count > existing.github.stargazers_count ||
161
+ (item.github.stargazers_count === existing.github.stargazers_count &&
162
+ item.description && item.description.length > (existing.description || '').length)) {
163
+ githubMap.set(githubKey, { ...item, displayName: realName });
164
+ }
165
+ } else {
166
+ githubMap.set(githubKey, { ...item, displayName: realName });
167
+ }
168
+ } else {
169
+ // For items without GitHub data, keep them as is but filter out obviously invalid names
170
+ if (isValidProjectName(item.name)) {
171
+ processedData.push({ ...item, displayName: item.name });
172
+ }
173
+ }
174
+ }
175
+
176
+ // Add deduplicated GitHub projects
177
+ processedData.push(...Array.from(githubMap.values()));
178
+
179
+ return processedData;
180
+ }
181
+
182
+ // Extract project name from GitHub full_name
183
+ function extractProjectNameFromGithub(fullName) {
184
+ if (!fullName) return 'Unknown';
185
+ const parts = fullName.split('/');
186
+ return parts[parts.length - 1] || 'Unknown';
187
+ }
188
+
189
+ // Check if project name is valid (filter out test names)
190
+ function isValidProjectName(name) {
191
+ if (!name || typeof name !== 'string') return false;
192
+
193
+ const invalidPatterns = [
194
+ /^[0-9]+$/, // Pure numbers: 1, 11, 12, 11111
195
+ /^test$/i, // Just "test"
196
+ /^[a-z]$/i, // Single letters
197
+ /^.{1,2}$/, // Too short (1-2 characters)
198
+ ];
199
+
200
+ return !invalidPatterns.some(pattern => pattern.test(name.trim()));
201
+ }
202
+
203
+ // Update dashboard statistics and charts
204
+ function updateDashboard() {
205
+ updateStatistics();
206
+ renderCharts();
207
+ renderTopProjects();
208
+ }
209
+
210
+ // Update statistics
211
+ function updateStatistics() {
212
+ const clientsCount = clientsData.length;
213
+ const serversCount = serversData.length;
214
+
215
+ const categories = new Set([
216
+ ...clientsData.map(item => item.category).filter(Boolean),
217
+ ...serversData.map(item => item.category).filter(Boolean)
218
+ ]);
219
+
220
+ const totalStars = allData
221
+ .filter(item => item.github && item.github.stargazers_count)
222
+ .reduce((sum, item) => sum + item.github.stargazers_count, 0);
223
+
224
+ animateNumber('clients-count', clientsCount);
225
+ animateNumber('servers-count', serversCount);
226
+ animateNumber('categories-count', categories.size);
227
+ animateNumber('stars-count', formatNumber(totalStars));
228
+ }
229
+
230
+ // Animate numbers
231
+ function animateNumber(elementId, target) {
232
+ const element = document.getElementById(elementId);
233
+ const start = 0;
234
+ const duration = 1000;
235
+ const startTime = performance.now();
236
+
237
+ function update(currentTime) {
238
+ const elapsed = currentTime - startTime;
239
+ const progress = Math.min(elapsed / duration, 1);
240
+
241
+ const current = Math.floor(progress * (
242
+ typeof target === 'string'
243
+ ? parseInt(target.replace(/[^\d]/g, ''))
244
+ : target
245
+ ));
246
+
247
+ element.textContent = typeof target === 'string'
248
+ ? formatNumber(current)
249
+ : current;
250
+
251
+ if (progress < 1) {
252
+ requestAnimationFrame(update);
253
+ } else {
254
+ element.textContent = target;
255
+ }
256
+ }
257
+
258
+ requestAnimationFrame(update);
259
+ }
260
+
261
+ // Format numbers
262
+ function formatNumber(num) {
263
+ if (num >= 1000000) {
264
+ return (num / 1000000).toFixed(1) + 'M';
265
+ } else if (num >= 1000) {
266
+ return (num / 1000).toFixed(1) + 'K';
267
+ }
268
+ return num.toString();
269
+ }
270
+
271
+ // Render charts
272
+ function renderCharts() {
273
+ renderCategoryChart();
274
+ renderLanguageChart();
275
+ }
276
+
277
+ // Category distribution chart
278
+ function renderCategoryChart() {
279
+ const ctx = document.getElementById('categoryChart').getContext('2d');
280
+
281
+ const categoryCount = {};
282
+ allData.forEach(item => {
283
+ if (item.category) {
284
+ const category = formatCategoryName(item.category);
285
+ categoryCount[category] = (categoryCount[category] || 0) + 1;
286
+ }
287
+ });
288
+
289
+ const sortedCategories = Object.entries(categoryCount)
290
+ .sort((a, b) => b[1] - a[1])
291
+ .slice(0, 8);
292
+
293
+ new Chart(ctx, {
294
+ type: 'doughnut',
295
+ data: {
296
+ labels: sortedCategories.map(([category]) => category),
297
+ datasets: [{
298
+ data: sortedCategories.map(([, count]) => count),
299
+ backgroundColor: [
300
+ '#3b82f6', '#10b981', '#8b5cf6', '#f59e0b',
301
+ '#ef4444', '#06b6d4', '#84cc16', '#f97316'
302
+ ],
303
+ borderWidth: 0,
304
+ borderRadius: 4
305
+ }]
306
+ },
307
+ options: {
308
+ responsive: true,
309
+ maintainAspectRatio: false,
310
+ plugins: {
311
+ legend: {
312
+ position: 'bottom',
313
+ labels: {
314
+ padding: 20,
315
+ usePointStyle: true,
316
+ font: { family: 'Inter' }
317
+ }
318
+ }
319
+ }
320
+ }
321
+ });
322
+ }
323
+
324
+ // Language distribution chart
325
+ function renderLanguageChart() {
326
+ const ctx = document.getElementById('languageChart').getContext('2d');
327
+
328
+ const languageCount = {};
329
+ allData.forEach(item => {
330
+ if (item.github && item.github.language) {
331
+ const lang = item.github.language;
332
+ languageCount[lang] = (languageCount[lang] || 0) + 1;
333
+ }
334
+ });
335
+
336
+ const sortedLanguages = Object.entries(languageCount)
337
+ .sort((a, b) => b[1] - a[1])
338
+ .slice(0, 10);
339
+
340
+ new Chart(ctx, {
341
+ type: 'bar',
342
+ data: {
343
+ labels: sortedLanguages.map(([lang]) => lang),
344
+ datasets: [{
345
+ label: 'Projects',
346
+ data: sortedLanguages.map(([, count]) => count),
347
+ backgroundColor: '#3b82f6',
348
+ borderRadius: 6,
349
+ borderSkipped: false
350
+ }]
351
+ },
352
+ options: {
353
+ responsive: true,
354
+ maintainAspectRatio: false,
355
+ plugins: {
356
+ legend: { display: false }
357
+ },
358
+ scales: {
359
+ y: {
360
+ beginAtZero: true,
361
+ grid: { color: '#f3f4f6' },
362
+ ticks: { font: { family: 'Inter' } }
363
+ },
364
+ x: {
365
+ grid: { display: false },
366
+ ticks: { font: { family: 'Inter' } }
367
+ }
368
+ }
369
+ }
370
+ });
371
+ }
372
+
373
+ // Render top projects
374
+ function renderTopProjects() {
375
+ const container = document.getElementById('top-projects');
376
+
377
+ const topProjects = allData
378
+ .filter(item => item.github && item.github.stargazers_count > 0)
379
+ .sort((a, b) => b.github.stargazers_count - a.github.stargazers_count)
380
+ .slice(0, 10);
381
+
382
+ if (topProjects.length === 0) {
383
+ container.innerHTML = `
384
+ <div class="empty-state">
385
+ <i class="fas fa-star"></i>
386
+ <p>No projects with GitHub data found</p>
387
+ </div>
388
+ `;
389
+ return;
390
+ }
391
+
392
+ container.innerHTML = topProjects.map((project, index) => `
393
+ <div class="project-item" onclick="showProjectModal('${project.id}')">
394
+ <div class="project-rank">#${index + 1}</div>
395
+ <div class="project-github">
396
+ <a href="${project.url}" target="_blank" onclick="event.stopPropagation()">
397
+ <i class="fab fa-github"></i>
398
+ ${project.github.full_name}
399
+ </a>
400
+ </div>
401
+ <div class="project-stars">
402
+ <i class="fas fa-star"></i>
403
+ ${formatNumber(project.github.stargazers_count)}
404
+ </div>
405
+ </div>
406
+ `).join('');
407
+ }
408
+
409
+ // Initialize search page
410
+ function initializeSearch() {
411
+ populateFilters();
412
+ performSearch();
413
+ }
414
+
415
+ // Populate filter dropdowns
416
+ function populateFilters() {
417
+ // Categories
418
+ const categories = [...new Set(allData.map(item => item.category).filter(Boolean))].sort();
419
+ populateSelect(categoryFilter, categories, formatCategoryName);
420
+
421
+ // Languages
422
+ const languages = [...new Set(allData
423
+ .filter(item => item.github && item.github.language)
424
+ .map(item => item.github.language)
425
+ )].sort();
426
+ populateSelect(languageFilter, languages);
427
+ }
428
+
429
+ // Populate select element
430
+ function populateSelect(selectElement, options, formatter = null) {
431
+ // Clear existing options (except first one)
432
+ while (selectElement.children.length > 1) {
433
+ selectElement.removeChild(selectElement.lastChild);
434
+ }
435
+
436
+ options.forEach(option => {
437
+ const optionEl = document.createElement('option');
438
+ optionEl.value = option;
439
+ optionEl.textContent = formatter ? formatter(option) : option;
440
+ selectElement.appendChild(optionEl);
441
+ });
442
+ }
443
+
444
+ // Perform search and filtering
445
+ function performSearch() {
446
+ const query = searchInput.value.toLowerCase().trim();
447
+ const type = typeFilter.value;
448
+ const category = categoryFilter.value;
449
+ const language = languageFilter.value;
450
+
451
+ filteredData = allData.filter(item => {
452
+ // Text search (use displayName for better search experience)
453
+ const searchName = item.displayName || item.name;
454
+ const matchesQuery = !query ||
455
+ searchName.toLowerCase().includes(query) ||
456
+ (item.description || '').toLowerCase().includes(query) ||
457
+ item.author_name.toLowerCase().includes(query) ||
458
+ (item.tags || '').toLowerCase().includes(query);
459
+
460
+ // Type filter
461
+ const matchesType = !type || item.type === type;
462
+
463
+ // Category filter
464
+ const matchesCategory = !category || item.category === category;
465
+
466
+ // Language filter
467
+ const matchesLanguage = !language ||
468
+ (item.github && item.github.language === language);
469
+
470
+ return matchesQuery && matchesType && matchesCategory && matchesLanguage;
471
+ });
472
+
473
+ // Reset to first page when search changes
474
+ currentPage = 1;
475
+ totalPages = Math.ceil(filteredData.length / itemsPerPage);
476
+
477
+ updateResultsCount();
478
+ renderSearchResults();
479
+ renderPagination();
480
+ }
481
+
482
+ // Update results count
483
+ function updateResultsCount() {
484
+ const count = filteredData.length;
485
+ resultsCount.textContent = `${count} result${count !== 1 ? 's' : ''}`;
486
+ }
487
+
488
+ // Render search results
489
+ function renderSearchResults() {
490
+ const container = searchResults;
491
+
492
+ if (filteredData.length === 0) {
493
+ container.innerHTML = `
494
+ <div class="empty-state">
495
+ <i class="fas fa-search"></i>
496
+ <h3>No results found</h3>
497
+ <p>Try adjusting your search criteria</p>
498
+ </div>
499
+ `;
500
+ paginationContainer.style.display = 'none';
501
+ return;
502
+ }
503
+
504
+ // Calculate pagination
505
+ const startIndex = (currentPage - 1) * itemsPerPage;
506
+ const endIndex = startIndex + itemsPerPage;
507
+ const currentItems = filteredData.slice(startIndex, endIndex);
508
+
509
+ container.className = `results-grid ${currentView === 'list' ? 'list-view' : ''}`;
510
+
511
+ container.innerHTML = currentItems.map(item => createProjectCard(item)).join('');
512
+ paginationContainer.style.display = 'block';
513
+ }
514
+
515
+ // Create project card HTML
516
+ function createProjectCard(item) {
517
+ const tags = item.tags ? item.tags.split(',').map(tag => tag.trim()).slice(0, 4) : [];
518
+ const github = item.github;
519
+
520
+ return `
521
+ <div class="project-card" onclick="showProjectModal('${item.id}')">
522
+ <div class="project-header">
523
+ <div class="project-info">
524
+ <div class="project-title">${escapeHtml(item.displayName || item.name)}</div>
525
+ <div class="project-author">by ${escapeHtml(item.author_name)}</div>
526
+ </div>
527
+ <span class="project-type ${item.type}">${item.type}</span>
528
+ </div>
529
+
530
+ <div class="project-meta">
531
+ ${github ? `
532
+ <div class="project-stats">
533
+ <span class="stat-item">
534
+ <i class="fas fa-star"></i>
535
+ ${formatNumber(github.stargazers_count || 0)}
536
+ </span>
537
+ <span class="stat-item">
538
+ <i class="fas fa-code-branch"></i>
539
+ ${formatNumber(github.forks_count || 0)}
540
+ </span>
541
+ ${github.language ? `
542
+ <span class="stat-item">
543
+ <i class="fas fa-code"></i>
544
+ ${escapeHtml(github.language)}
545
+ </span>
546
+ ` : ''}
547
+ </div>
548
+ ` : ''}
549
+
550
+ ${item.category ? `
551
+ <div class="category-badge">${formatCategoryName(item.category)}</div>
552
+ ` : ''}
553
+ </div>
554
+
555
+ ${tags.length > 0 ? `
556
+ <div class="project-tags">
557
+ ${tags.map(tag => `<span class="tag">${escapeHtml(tag)}</span>`).join('')}
558
+ ${tags.length > 4 ? `<span class="tag more">+${item.tags.split(',').length - 4}</span>` : ''}
559
+ </div>
560
+ ` : ''}
561
+ </div>
562
+ `;
563
+ }
564
+
565
+ // Toggle view mode
566
+ function toggleView(view) {
567
+ currentView = view;
568
+ viewButtons.forEach(btn => {
569
+ btn.classList.toggle('active', btn.dataset.view === view);
570
+ });
571
+ renderSearchResults();
572
+ }
573
+
574
+ // Render pagination
575
+ function renderPagination() {
576
+ if (totalPages <= 1) {
577
+ paginationContainer.style.display = 'none';
578
+ return;
579
+ }
580
+
581
+ paginationContainer.style.display = 'block';
582
+
583
+ // Update prev/next buttons
584
+ prevBtn.disabled = currentPage === 1;
585
+ nextBtn.disabled = currentPage === totalPages;
586
+
587
+ // Generate page numbers
588
+ const maxVisiblePages = 7;
589
+ let startPage, endPage;
590
+
591
+ if (totalPages <= maxVisiblePages) {
592
+ startPage = 1;
593
+ endPage = totalPages;
594
+ } else {
595
+ const halfVisible = Math.floor(maxVisiblePages / 2);
596
+ if (currentPage <= halfVisible) {
597
+ startPage = 1;
598
+ endPage = maxVisiblePages;
599
+ } else if (currentPage + halfVisible >= totalPages) {
600
+ startPage = totalPages - maxVisiblePages + 1;
601
+ endPage = totalPages;
602
+ } else {
603
+ startPage = currentPage - halfVisible;
604
+ endPage = currentPage + halfVisible;
605
+ }
606
+ }
607
+
608
+ let pagesHTML = '';
609
+
610
+ // First page and ellipsis
611
+ if (startPage > 1) {
612
+ pagesHTML += `<button class="page-number" onclick="goToPage(1)">1</button>`;
613
+ if (startPage > 2) {
614
+ pagesHTML += `<span class="page-number ellipsis">...</span>`;
615
+ }
616
+ }
617
+
618
+ // Page numbers
619
+ for (let i = startPage; i <= endPage; i++) {
620
+ pagesHTML += `<button class="page-number ${i === currentPage ? 'active' : ''}" onclick="goToPage(${i})">${i}</button>`;
621
+ }
622
+
623
+ // Last page and ellipsis
624
+ if (endPage < totalPages) {
625
+ if (endPage < totalPages - 1) {
626
+ pagesHTML += `<span class="page-number ellipsis">...</span>`;
627
+ }
628
+ pagesHTML += `<button class="page-number" onclick="goToPage(${totalPages})">${totalPages}</button>`;
629
+ }
630
+
631
+ pageNumbers.innerHTML = pagesHTML;
632
+
633
+ // Update pagination info
634
+ const startItem = (currentPage - 1) * itemsPerPage + 1;
635
+ const endItem = Math.min(currentPage * itemsPerPage, filteredData.length);
636
+ paginationInfo.textContent = `Showing ${startItem}-${endItem} of ${filteredData.length}`;
637
+ }
638
+
639
+ // Go to specific page
640
+ function goToPage(page) {
641
+ if (page >= 1 && page <= totalPages && page !== currentPage) {
642
+ currentPage = page;
643
+ renderSearchResults();
644
+ renderPagination();
645
+
646
+ // Scroll to top of results
647
+ searchResults.scrollIntoView({ behavior: 'smooth', block: 'start' });
648
+ }
649
+ }
650
+
651
+ // Show project modal
652
+ function showProjectModal(itemId) {
653
+ const item = allData.find(project => project.id == itemId);
654
+ if (!item) return;
655
+
656
+ modalTitle.textContent = item.displayName || item.name;
657
+
658
+ const github = item.github;
659
+ const tags = item.tags ? item.tags.split(',').map(tag => tag.trim()) : [];
660
+
661
+ modalBody.innerHTML = `
662
+ <div class="modal-grid">
663
+ <div class="modal-info">
664
+ <div class="info-row">
665
+ <span class="info-label">Author</span>
666
+ <span class="info-value">${escapeHtml(item.author_name)}</span>
667
+ </div>
668
+ <div class="info-row">
669
+ <span class="info-label">Type</span>
670
+ <span class="info-value">
671
+ <span class="project-type ${item.type}">${item.type}</span>
672
+ </span>
673
+ </div>
674
+ ${item.category ? `
675
+ <div class="info-row">
676
+ <span class="info-label">Category</span>
677
+ <span class="info-value">
678
+ <span class="category-badge">${formatCategoryName(item.category)}</span>
679
+ </span>
680
+ </div>
681
+ ` : ''}
682
+ ${item.url ? `
683
+ <div class="info-row">
684
+ <span class="info-label">Website</span>
685
+ <span class="info-value">
686
+ <a href="${escapeHtml(item.url)}" target="_blank" class="external-link">
687
+ <i class="fas fa-external-link-alt"></i>
688
+ Visit Project
689
+ </a>
690
+ </span>
691
+ </div>
692
+ ` : ''}
693
+ </div>
694
+
695
+ ${github ? `
696
+ <div class="modal-github">
697
+ <h4><i class="fab fa-github"></i> GitHub Repository</h4>
698
+ <div class="github-stats">
699
+ <div class="github-stat">
700
+ <div class="github-stat-value">${formatNumber(github.stargazers_count || 0)}</div>
701
+ <div class="github-stat-label"><i class="fas fa-star"></i> Stars</div>
702
+ </div>
703
+ <div class="github-stat">
704
+ <div class="github-stat-value">${formatNumber(github.forks_count || 0)}</div>
705
+ <div class="github-stat-label"><i class="fas fa-code-branch"></i> Forks</div>
706
+ </div>
707
+ <div class="github-stat">
708
+ <div class="github-stat-value">${formatNumber(github.open_issues_count || 0)}</div>
709
+ <div class="github-stat-label"><i class="fas fa-exclamation-circle"></i> Issues</div>
710
+ </div>
711
+ <div class="github-stat">
712
+ <div class="github-stat-value">${formatNumber(github.contributors_count || 0)}</div>
713
+ <div class="github-stat-label"><i class="fas fa-users"></i> Contributors</div>
714
+ </div>
715
+ ${github.language ? `
716
+ <div class="github-stat">
717
+ <div class="github-stat-value">${escapeHtml(github.language)}</div>
718
+ <div class="github-stat-label"><i class="fas fa-code"></i> Language</div>
719
+ </div>
720
+ ` : ''}
721
+ ${github.license ? `
722
+ <div class="github-stat">
723
+ <div class="github-stat-value">${escapeHtml(github.license)}</div>
724
+ <div class="github-stat-label"><i class="fas fa-balance-scale"></i> License</div>
725
+ </div>
726
+ ` : ''}
727
+ </div>
728
+ ${github.full_name ? `
729
+ <a href="https://github.com/${escapeHtml(github.full_name)}" target="_blank" class="github-link">
730
+ <i class="fab fa-github"></i>
731
+ View on GitHub
732
+ </a>
733
+ ` : ''}
734
+ </div>
735
+ ` : ''}
736
+ </div>
737
+
738
+ ${item.description ? `
739
+ <div class="modal-section">
740
+ <h4>Description</h4>
741
+ <p class="description-text">${escapeHtml(item.description)}</p>
742
+ </div>
743
+ ` : ''}
744
+
745
+ ${tags.length > 0 ? `
746
+ <div class="modal-section">
747
+ <h4>Tags</h4>
748
+ <div class="project-tags">
749
+ ${tags.map(tag => `<span class="tag">${escapeHtml(tag)}</span>`).join('')}
750
+ </div>
751
+ </div>
752
+ ` : ''}
753
+ `;
754
+
755
+ modal.classList.add('active');
756
+ }
757
+
758
+ // Close modal
759
+ function closeModal() {
760
+ modal.classList.remove('active');
761
+ }
762
+
763
+ // Utility functions
764
+ function escapeHtml(text) {
765
+ const div = document.createElement('div');
766
+ div.textContent = text;
767
+ return div.innerHTML;
768
+ }
769
+
770
+ function formatCategoryName(category) {
771
+ if (!category) return '';
772
+
773
+ const categoryMap = {
774
+ 'developer-tools': 'Developer Tools',
775
+ 'communication': 'Communication',
776
+ 'ai-chatbot': 'AI Chatbot',
777
+ 'research-and-data': 'Research & Data',
778
+ 'security': 'Security',
779
+ 'speech-processing': 'Speech Processing',
780
+ 'location-services': 'Location Services',
781
+ 'browser-automation': 'Browser Automation',
782
+ 'databases': 'Databases',
783
+ 'knowledge-and-memory': 'Knowledge & Memory',
784
+ 'cloud-platforms': 'Cloud Platforms',
785
+ 'finance': 'Finance'
786
+ };
787
+
788
+ return categoryMap[category] ||
789
+ category.replace(/-/g, ' ').replace(/\b\w/g, l => l.toUpperCase());
790
+ }
791
+
792
+ function debounce(func, wait) {
793
+ let timeout;
794
+ return function executedFunction(...args) {
795
+ const later = () => {
796
+ clearTimeout(timeout);
797
+ func(...args);
798
+ };
799
+ clearTimeout(timeout);
800
+ timeout = setTimeout(later, wait);
801
+ };
802
+ }
803
+
804
+ function showLoading() {
805
+ // You can implement loading states here
806
+ console.log('Loading...');
807
+ }
808
+
809
+ function hideLoading() {
810
+ // You can implement hiding loading states here
811
+ console.log('Loading complete');
812
+ }
813
+
814
+ function showError(message) {
815
+ console.error(message);
816
+ // You can implement error notification here
817
+ }
Website/server.py ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """
3
+ Simple HTTP server for running MCP data display website
4
+ """
5
+
6
+ import http.server
7
+ import socketserver
8
+ import json
9
+ import os
10
+ import webbrowser
11
+ from pathlib import Path
12
+
13
+ class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
14
+ def end_headers(self):
15
+ # Add CORS headers to allow local file access
16
+ self.send_header('Access-Control-Allow-Origin', '*')
17
+ self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
18
+ self.send_header('Access-Control-Allow-Headers', 'Content-Type')
19
+ super().end_headers()
20
+
21
+ def do_GET(self):
22
+ # Redirect root path to display page
23
+ if self.path == '/':
24
+ self.path = '/index.html'
25
+
26
+ # Handle JSON file requests, ensure correct Content-Type
27
+ if self.path.endswith('.json'):
28
+ try:
29
+ # Get file path
30
+ file_path = self.path.lstrip('/')
31
+
32
+ # Check if file exists
33
+ if os.path.exists(file_path):
34
+ self.send_response(200)
35
+ self.send_header('Content-Type', 'application/json; charset=utf-8')
36
+ self.end_headers()
37
+
38
+ # Read and send JSON file
39
+ with open(file_path, 'rb') as f:
40
+ self.wfile.write(f.read())
41
+ return
42
+ else:
43
+ self.send_error(404, f"File not found: {file_path}")
44
+ return
45
+ except Exception as e:
46
+ self.send_error(500, f"Error reading file: {str(e)}")
47
+ return
48
+
49
+ # Use default handling for other files
50
+ super().do_GET()
51
+
52
+ def main():
53
+ # Set server parameters
54
+ PORT = 8000
55
+ HOST = 'localhost'
56
+
57
+ # Check if required files exist
58
+ required_files = [
59
+ 'index.html',
60
+ 'styles.css',
61
+ 'script.js',
62
+ 'mcpso_clients_cleaned.json',
63
+ 'mcpso_servers_cleaned.json'
64
+ ]
65
+
66
+ missing_files = [f for f in required_files if not os.path.exists(f)]
67
+ if missing_files:
68
+ print(f"❌ Missing required files: {', '.join(missing_files)}")
69
+ return
70
+
71
+ # Create server
72
+ with socketserver.TCPServer((HOST, PORT), CustomHTTPRequestHandler) as httpd:
73
+ print(f"🌐 MCP data display website started successfully!")
74
+ print(f"📍 Server address: http://{HOST}:{PORT}")
75
+ print(f"🔗 Access link: http://{HOST}:{PORT}/index.html")
76
+ print(f"⏹️ Press Ctrl+C to stop server")
77
+ print()
78
+
79
+ # Try to automatically open browser
80
+ try:
81
+ webbrowser.open(f'http://{HOST}:{PORT}/index.html')
82
+ print("🎉 Browser opened automatically")
83
+ except:
84
+ print("💡 Please manually open the above link in your browser")
85
+
86
+ print()
87
+
88
+ try:
89
+ httpd.serve_forever()
90
+ except KeyboardInterrupt:
91
+ print("\n👋 Server stopped")
92
+
93
+ if __name__ == "__main__":
94
+ main()
Website/styles.css ADDED
@@ -0,0 +1,1115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Reset and Base Styles */
2
+ * {
3
+ margin: 0;
4
+ padding: 0;
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ :root {
9
+ --primary: #3b82f6;
10
+ --primary-dark: #2563eb;
11
+ --secondary: #10b981;
12
+ --danger: #ef4444;
13
+ --warning: #f59e0b;
14
+ --info: #06b6d4;
15
+ --purple: #8b5cf6;
16
+
17
+ --gray-50: #f9fafb;
18
+ --gray-100: #f3f4f6;
19
+ --gray-200: #e5e7eb;
20
+ --gray-300: #d1d5db;
21
+ --gray-400: #9ca3af;
22
+ --gray-500: #6b7280;
23
+ --gray-600: #4b5563;
24
+ --gray-700: #374151;
25
+ --gray-800: #1f2937;
26
+ --gray-900: #111827;
27
+
28
+ --white: #ffffff;
29
+ --black: #000000;
30
+
31
+ --sidebar-width: 260px;
32
+ --header-height: 80px;
33
+
34
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
35
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
36
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
37
+ --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
38
+
39
+ --radius-sm: 6px;
40
+ --radius-md: 8px;
41
+ --radius-lg: 12px;
42
+ --radius-xl: 16px;
43
+ --radius-2xl: 20px;
44
+ }
45
+
46
+ body {
47
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
48
+ background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
49
+ color: var(--gray-900);
50
+ line-height: 1.6;
51
+ overflow-x: hidden;
52
+ }
53
+
54
+ /* App Layout */
55
+ .app {
56
+ display: flex;
57
+ min-height: 100vh;
58
+ }
59
+
60
+ /* Sidebar */
61
+ .sidebar {
62
+ width: var(--sidebar-width);
63
+ background: var(--white);
64
+ border-right: 1px solid var(--gray-200);
65
+ box-shadow: var(--shadow-lg);
66
+ position: fixed;
67
+ top: 0;
68
+ left: 0;
69
+ height: 100vh;
70
+ z-index: 100;
71
+ }
72
+
73
+ .sidebar-header {
74
+ padding: 24px;
75
+ border-bottom: 1px solid var(--gray-200);
76
+ }
77
+
78
+ .logo {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: 12px;
82
+ font-size: 20px;
83
+ font-weight: 700;
84
+ color: var(--gray-900);
85
+ }
86
+
87
+ .logo i {
88
+ color: var(--primary);
89
+ font-size: 24px;
90
+ }
91
+
92
+ .nav-menu {
93
+ list-style: none;
94
+ padding: 24px 0;
95
+ }
96
+
97
+ .nav-item {
98
+ display: flex;
99
+ align-items: center;
100
+ gap: 12px;
101
+ padding: 12px 24px;
102
+ color: var(--gray-600);
103
+ cursor: pointer;
104
+ transition: all 0.2s ease;
105
+ font-weight: 500;
106
+ }
107
+
108
+ .nav-item:hover {
109
+ background: var(--gray-50);
110
+ color: var(--gray-900);
111
+ }
112
+
113
+ .nav-item.active {
114
+ background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
115
+ color: var(--primary);
116
+ border-right: 3px solid var(--primary);
117
+ }
118
+
119
+ .nav-item i {
120
+ font-size: 18px;
121
+ width: 20px;
122
+ }
123
+
124
+ /* Main Content */
125
+ .main-content {
126
+ flex: 1;
127
+ margin-left: var(--sidebar-width);
128
+ padding: 32px;
129
+ min-height: 100vh;
130
+ }
131
+
132
+ /* Page */
133
+ .page {
134
+ display: none;
135
+ animation: fadeIn 0.3s ease;
136
+ }
137
+
138
+ .page.active {
139
+ display: block;
140
+ }
141
+
142
+ @keyframes fadeIn {
143
+ from { opacity: 0; transform: translateY(20px); }
144
+ to { opacity: 1; transform: translateY(0); }
145
+ }
146
+
147
+ .page-header {
148
+ margin-bottom: 32px;
149
+ }
150
+
151
+ .page-header h1 {
152
+ font-size: 32px;
153
+ font-weight: 700;
154
+ color: var(--gray-900);
155
+ margin-bottom: 8px;
156
+ }
157
+
158
+ .page-header p {
159
+ color: var(--gray-600);
160
+ font-size: 16px;
161
+ }
162
+
163
+ /* Stats Grid */
164
+ .stats-grid {
165
+ display: grid;
166
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
167
+ gap: 24px;
168
+ margin-bottom: 32px;
169
+ }
170
+
171
+ .stat-card {
172
+ background: var(--white);
173
+ border-radius: var(--radius-xl);
174
+ padding: 24px;
175
+ box-shadow: var(--shadow-md);
176
+ border: 1px solid var(--gray-200);
177
+ transition: all 0.3s ease;
178
+ display: flex;
179
+ align-items: center;
180
+ gap: 16px;
181
+ }
182
+
183
+ .stat-card:hover {
184
+ transform: translateY(-4px);
185
+ box-shadow: var(--shadow-xl);
186
+ }
187
+
188
+ .stat-icon {
189
+ width: 60px;
190
+ height: 60px;
191
+ border-radius: var(--radius-lg);
192
+ display: flex;
193
+ align-items: center;
194
+ justify-content: center;
195
+ font-size: 24px;
196
+ color: var(--white);
197
+ }
198
+
199
+ .stat-icon.clients { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
200
+ .stat-icon.servers { background: linear-gradient(135deg, var(--secondary), #059669); }
201
+ .stat-icon.categories { background: linear-gradient(135deg, var(--purple), #7c3aed); }
202
+ .stat-icon.stars { background: linear-gradient(135deg, var(--warning), #d97706); }
203
+
204
+ .stat-number {
205
+ font-size: 28px;
206
+ font-weight: 700;
207
+ color: var(--gray-900);
208
+ line-height: 1;
209
+ }
210
+
211
+ .stat-label {
212
+ color: var(--gray-600);
213
+ font-weight: 500;
214
+ margin-top: 4px;
215
+ }
216
+
217
+ /* Charts */
218
+ .charts-container {
219
+ display: grid;
220
+ grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
221
+ gap: 24px;
222
+ margin-bottom: 32px;
223
+ }
224
+
225
+ .chart-card {
226
+ background: var(--white);
227
+ border-radius: var(--radius-xl);
228
+ padding: 24px;
229
+ box-shadow: var(--shadow-md);
230
+ border: 1px solid var(--gray-200);
231
+ }
232
+
233
+ .chart-card h3 {
234
+ margin-bottom: 16px;
235
+ color: var(--gray-900);
236
+ font-weight: 600;
237
+ }
238
+
239
+ .chart-card canvas {
240
+ max-height: 300px;
241
+ }
242
+
243
+ /* Top Projects */
244
+ .top-projects {
245
+ background: var(--white);
246
+ border-radius: var(--radius-xl);
247
+ padding: 24px;
248
+ box-shadow: var(--shadow-md);
249
+ border: 1px solid var(--gray-200);
250
+ }
251
+
252
+ .top-projects h3 {
253
+ margin-bottom: 8px;
254
+ color: var(--gray-900);
255
+ font-weight: 600;
256
+ }
257
+
258
+ .performance-note {
259
+ display: flex;
260
+ align-items: center;
261
+ gap: 8px;
262
+ padding: 8px 12px;
263
+ background: rgba(59, 130, 246, 0.1);
264
+ border: 1px solid rgba(59, 130, 246, 0.2);
265
+ border-radius: var(--radius-md);
266
+ color: var(--primary);
267
+ font-size: 12px;
268
+ margin-bottom: 16px;
269
+ }
270
+
271
+ .performance-note i {
272
+ font-size: 14px;
273
+ }
274
+
275
+ .project-item {
276
+ display: flex;
277
+ align-items: center;
278
+ gap: 12px;
279
+ padding: 12px 0;
280
+ border-bottom: 1px solid var(--gray-100);
281
+ transition: all 0.2s ease;
282
+ cursor: pointer;
283
+ }
284
+
285
+ .project-item:last-child {
286
+ border-bottom: none;
287
+ }
288
+
289
+ .project-item:hover {
290
+ background: var(--gray-50);
291
+ margin: 0 -16px;
292
+ padding: 12px 16px;
293
+ border-radius: var(--radius-md);
294
+ }
295
+
296
+ .project-rank {
297
+ font-weight: 700;
298
+ color: var(--primary);
299
+ font-size: 14px;
300
+ min-width: 28px;
301
+ flex-shrink: 0;
302
+ }
303
+
304
+ .project-github {
305
+ flex: 1;
306
+ min-width: 0;
307
+ }
308
+
309
+ .project-github a {
310
+ display: flex;
311
+ align-items: center;
312
+ gap: 8px;
313
+ color: var(--gray-700);
314
+ text-decoration: none;
315
+ font-weight: 500;
316
+ font-size: 14px;
317
+ white-space: nowrap;
318
+ overflow: hidden;
319
+ text-overflow: ellipsis;
320
+ transition: color 0.2s ease;
321
+ }
322
+
323
+ .project-github a:hover {
324
+ color: var(--primary);
325
+ }
326
+
327
+ .project-github a i {
328
+ color: var(--gray-500);
329
+ font-size: 16px;
330
+ flex-shrink: 0;
331
+ }
332
+
333
+ .project-stars {
334
+ color: var(--gray-600);
335
+ font-size: 14px;
336
+ display: flex;
337
+ align-items: center;
338
+ gap: 4px;
339
+ font-weight: 600;
340
+ flex-shrink: 0;
341
+ min-width: 60px;
342
+ justify-content: flex-end;
343
+ }
344
+
345
+ .project-stars i {
346
+ color: var(--warning);
347
+ }
348
+
349
+ /* Search Controls */
350
+ .search-controls {
351
+ background: var(--white);
352
+ border-radius: var(--radius-xl);
353
+ padding: 24px;
354
+ box-shadow: var(--shadow-md);
355
+ border: 1px solid var(--gray-200);
356
+ margin-bottom: 24px;
357
+ }
358
+
359
+ .search-box {
360
+ position: relative;
361
+ margin-bottom: 16px;
362
+ }
363
+
364
+ .search-box i {
365
+ position: absolute;
366
+ left: 16px;
367
+ top: 50%;
368
+ transform: translateY(-50%);
369
+ color: var(--gray-400);
370
+ }
371
+
372
+ .search-box input {
373
+ width: 100%;
374
+ padding: 12px 16px 12px 48px;
375
+ border: 2px solid var(--gray-200);
376
+ border-radius: var(--radius-lg);
377
+ font-size: 16px;
378
+ background: var(--white);
379
+ transition: all 0.2s ease;
380
+ }
381
+
382
+ .search-box input:focus {
383
+ outline: none;
384
+ border-color: var(--primary);
385
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
386
+ }
387
+
388
+ .filters {
389
+ display: flex;
390
+ gap: 16px;
391
+ flex-wrap: wrap;
392
+ }
393
+
394
+ .filters select {
395
+ padding: 10px 16px;
396
+ border: 2px solid var(--gray-200);
397
+ border-radius: var(--radius-md);
398
+ background: var(--white);
399
+ font-size: 14px;
400
+ color: var(--gray-700);
401
+ cursor: pointer;
402
+ transition: all 0.2s ease;
403
+ }
404
+
405
+ .filters select:focus {
406
+ outline: none;
407
+ border-color: var(--primary);
408
+ }
409
+
410
+ /* Search Results */
411
+ .search-results {
412
+ background: var(--white);
413
+ border-radius: var(--radius-xl);
414
+ padding: 24px;
415
+ box-shadow: var(--shadow-md);
416
+ border: 1px solid var(--gray-200);
417
+ }
418
+
419
+ .results-header {
420
+ display: flex;
421
+ justify-content: space-between;
422
+ align-items: center;
423
+ margin-bottom: 20px;
424
+ padding-bottom: 16px;
425
+ border-bottom: 1px solid var(--gray-200);
426
+ }
427
+
428
+ #results-count {
429
+ color: var(--gray-600);
430
+ font-weight: 500;
431
+ }
432
+
433
+ .view-toggle {
434
+ display: flex;
435
+ gap: 8px;
436
+ }
437
+
438
+ .view-btn {
439
+ padding: 8px 12px;
440
+ border: 2px solid var(--gray-200);
441
+ background: var(--white);
442
+ border-radius: var(--radius-md);
443
+ cursor: pointer;
444
+ transition: all 0.2s ease;
445
+ color: var(--gray-600);
446
+ }
447
+
448
+ .view-btn:hover {
449
+ border-color: var(--primary);
450
+ color: var(--primary);
451
+ }
452
+
453
+ .view-btn.active {
454
+ background: var(--primary);
455
+ border-color: var(--primary);
456
+ color: var(--white);
457
+ }
458
+
459
+ .results-grid {
460
+ display: grid;
461
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
462
+ gap: 20px;
463
+ min-height: 200px;
464
+ }
465
+
466
+ .results-grid.list-view {
467
+ grid-template-columns: 1fr;
468
+ }
469
+
470
+ .results-grid.list-view .project-card {
471
+ height: auto;
472
+ flex-direction: row;
473
+ align-items: flex-start;
474
+ padding: 16px 20px;
475
+ }
476
+
477
+ .results-grid.list-view .project-header {
478
+ flex: 1;
479
+ margin-right: 20px;
480
+ }
481
+
482
+ .results-grid.list-view .project-meta {
483
+ flex-direction: row;
484
+ align-items: center;
485
+ gap: 20px;
486
+ flex: none;
487
+ min-width: 300px;
488
+ }
489
+
490
+ .results-grid.list-view .project-tags {
491
+ margin-top: 0;
492
+ flex: 1;
493
+ }
494
+
495
+ /* Pagination */
496
+ .pagination-container {
497
+ margin-top: 32px;
498
+ padding: 24px 0;
499
+ border-top: 2px solid var(--gray-100);
500
+ }
501
+
502
+ .pagination {
503
+ display: flex;
504
+ justify-content: center;
505
+ align-items: center;
506
+ gap: 16px;
507
+ margin-bottom: 16px;
508
+ }
509
+
510
+ .page-btn {
511
+ display: flex;
512
+ align-items: center;
513
+ gap: 8px;
514
+ padding: 10px 16px;
515
+ border: 2px solid var(--gray-200);
516
+ background: var(--white);
517
+ border-radius: var(--radius-md);
518
+ cursor: pointer;
519
+ transition: all 0.2s ease;
520
+ color: var(--gray-700);
521
+ font-weight: 500;
522
+ font-size: 14px;
523
+ }
524
+
525
+ .page-btn:hover:not(:disabled) {
526
+ border-color: var(--primary);
527
+ color: var(--primary);
528
+ transform: translateY(-1px);
529
+ }
530
+
531
+ .page-btn:disabled {
532
+ opacity: 0.5;
533
+ cursor: not-allowed;
534
+ transform: none;
535
+ }
536
+
537
+ .page-numbers {
538
+ display: flex;
539
+ gap: 4px;
540
+ }
541
+
542
+ .page-number {
543
+ display: flex;
544
+ align-items: center;
545
+ justify-content: center;
546
+ width: 40px;
547
+ height: 40px;
548
+ border: 2px solid var(--gray-200);
549
+ background: var(--white);
550
+ border-radius: var(--radius-md);
551
+ cursor: pointer;
552
+ transition: all 0.2s ease;
553
+ color: var(--gray-700);
554
+ font-weight: 500;
555
+ font-size: 14px;
556
+ }
557
+
558
+ .page-number:hover {
559
+ border-color: var(--primary);
560
+ color: var(--primary);
561
+ }
562
+
563
+ .page-number.active {
564
+ background: var(--primary);
565
+ border-color: var(--primary);
566
+ color: var(--white);
567
+ }
568
+
569
+ .page-number.ellipsis {
570
+ border: none;
571
+ cursor: default;
572
+ background: transparent;
573
+ }
574
+
575
+ .page-number.ellipsis:hover {
576
+ border: none;
577
+ color: var(--gray-700);
578
+ }
579
+
580
+ .pagination-info {
581
+ text-align: center;
582
+ color: var(--gray-600);
583
+ font-size: 14px;
584
+ font-weight: 500;
585
+ }
586
+
587
+ /* Project Card */
588
+ .project-card {
589
+ border: 2px solid var(--gray-200);
590
+ border-radius: var(--radius-lg);
591
+ padding: 20px;
592
+ background: var(--white);
593
+ transition: all 0.3s ease;
594
+ cursor: pointer;
595
+ display: flex;
596
+ flex-direction: column;
597
+ gap: 16px;
598
+ height: 200px;
599
+ }
600
+
601
+ .project-card:hover {
602
+ transform: translateY(-4px);
603
+ box-shadow: var(--shadow-lg);
604
+ border-color: var(--primary);
605
+ }
606
+
607
+ .project-header {
608
+ display: flex;
609
+ justify-content: space-between;
610
+ align-items: flex-start;
611
+ flex-shrink: 0;
612
+ }
613
+
614
+ .project-info {
615
+ flex: 1;
616
+ min-width: 0;
617
+ }
618
+
619
+ .project-title {
620
+ font-size: 18px;
621
+ font-weight: 600;
622
+ color: var(--gray-900);
623
+ margin-bottom: 4px;
624
+ overflow: hidden;
625
+ text-overflow: ellipsis;
626
+ white-space: nowrap;
627
+ }
628
+
629
+ .project-author {
630
+ color: var(--gray-600);
631
+ font-size: 14px;
632
+ overflow: hidden;
633
+ text-overflow: ellipsis;
634
+ white-space: nowrap;
635
+ }
636
+
637
+ .project-type {
638
+ padding: 6px 10px;
639
+ border-radius: var(--radius-md);
640
+ font-size: 11px;
641
+ font-weight: 700;
642
+ text-transform: uppercase;
643
+ letter-spacing: 0.5px;
644
+ flex-shrink: 0;
645
+ margin-left: 12px;
646
+ }
647
+
648
+ .project-type.client {
649
+ background: linear-gradient(135deg, var(--primary), var(--primary-dark));
650
+ color: white;
651
+ }
652
+
653
+ .project-type.server {
654
+ background: linear-gradient(135deg, var(--secondary), #059669);
655
+ color: white;
656
+ }
657
+
658
+ /* Smaller project type badges in stats */
659
+ .project-stats .project-type {
660
+ font-size: 10px;
661
+ padding: 3px 8px;
662
+ border-radius: 12px;
663
+ font-weight: 700;
664
+ text-transform: uppercase;
665
+ letter-spacing: 0.5px;
666
+ }
667
+
668
+ .project-meta {
669
+ display: flex;
670
+ flex-direction: column;
671
+ gap: 12px;
672
+ flex: 1;
673
+ }
674
+
675
+ .project-stats {
676
+ display: flex;
677
+ gap: 20px;
678
+ font-size: 13px;
679
+ color: var(--gray-600);
680
+ }
681
+
682
+ .stat-item {
683
+ display: flex;
684
+ align-items: center;
685
+ gap: 6px;
686
+ font-weight: 500;
687
+ }
688
+
689
+ .stat-item i {
690
+ color: var(--gray-400);
691
+ font-size: 12px;
692
+ }
693
+
694
+ .project-tags {
695
+ display: flex;
696
+ flex-wrap: wrap;
697
+ gap: 6px;
698
+ margin-top: auto;
699
+ }
700
+
701
+ .tag {
702
+ background: var(--gray-100);
703
+ color: var(--gray-700);
704
+ padding: 4px 8px;
705
+ border-radius: var(--radius-sm);
706
+ font-size: 11px;
707
+ font-weight: 500;
708
+ border: 1px solid var(--gray-200);
709
+ }
710
+
711
+ .tag.more {
712
+ background: var(--gray-200);
713
+ color: var(--gray-500);
714
+ font-weight: 600;
715
+ }
716
+
717
+ .category-badge {
718
+ background: linear-gradient(135deg, var(--purple), #7c3aed);
719
+ color: var(--white);
720
+ padding: 4px 10px;
721
+ border-radius: var(--radius-md);
722
+ font-size: 11px;
723
+ font-weight: 600;
724
+ text-transform: capitalize;
725
+ display: inline-block;
726
+ align-self: flex-start;
727
+ box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
728
+ }
729
+
730
+ /* Modal */
731
+ .modal {
732
+ display: none;
733
+ position: fixed;
734
+ top: 0;
735
+ left: 0;
736
+ width: 100%;
737
+ height: 100%;
738
+ background: rgba(0, 0, 0, 0.5);
739
+ z-index: 1000;
740
+ backdrop-filter: blur(4px);
741
+ }
742
+
743
+ .modal.active {
744
+ display: flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ animation: fadeIn 0.3s ease;
748
+ }
749
+
750
+ .modal-content {
751
+ background: var(--white);
752
+ border-radius: var(--radius-2xl);
753
+ max-width: 600px;
754
+ width: 90%;
755
+ max-height: 80vh;
756
+ overflow-y: auto;
757
+ box-shadow: var(--shadow-xl);
758
+ animation: slideUp 0.3s ease;
759
+ }
760
+
761
+ @keyframes slideUp {
762
+ from { transform: translateY(50px); opacity: 0; }
763
+ to { transform: translateY(0); opacity: 1; }
764
+ }
765
+
766
+ .modal-header {
767
+ display: flex;
768
+ justify-content: space-between;
769
+ align-items: center;
770
+ padding: 24px;
771
+ border-bottom: 1px solid var(--gray-200);
772
+ }
773
+
774
+ .modal-header h2 {
775
+ color: var(--gray-900);
776
+ font-weight: 600;
777
+ }
778
+
779
+ .modal-close {
780
+ background: none;
781
+ border: none;
782
+ font-size: 20px;
783
+ color: var(--gray-400);
784
+ cursor: pointer;
785
+ padding: 8px;
786
+ border-radius: var(--radius-md);
787
+ transition: all 0.2s ease;
788
+ }
789
+
790
+ .modal-close:hover {
791
+ background: var(--gray-100);
792
+ color: var(--gray-600);
793
+ }
794
+
795
+ .modal-body {
796
+ padding: 24px;
797
+ }
798
+
799
+ .modal-grid {
800
+ display: grid;
801
+ grid-template-columns: 1fr;
802
+ gap: 24px;
803
+ margin-bottom: 24px;
804
+ }
805
+
806
+ @media (min-width: 600px) {
807
+ .modal-grid {
808
+ grid-template-columns: 1fr 1fr;
809
+ }
810
+ }
811
+
812
+ .modal-info {
813
+ display: flex;
814
+ flex-direction: column;
815
+ gap: 16px;
816
+ }
817
+
818
+ .info-row {
819
+ display: flex;
820
+ justify-content: space-between;
821
+ align-items: center;
822
+ padding: 12px 0;
823
+ border-bottom: 1px solid var(--gray-100);
824
+ }
825
+
826
+ .info-row:last-child {
827
+ border-bottom: none;
828
+ }
829
+
830
+ .info-label {
831
+ font-weight: 600;
832
+ color: var(--gray-700);
833
+ font-size: 14px;
834
+ }
835
+
836
+ .info-value {
837
+ color: var(--gray-900);
838
+ font-weight: 500;
839
+ }
840
+
841
+ .external-link {
842
+ display: inline-flex;
843
+ align-items: center;
844
+ gap: 6px;
845
+ color: var(--primary);
846
+ text-decoration: none;
847
+ font-weight: 500;
848
+ font-size: 14px;
849
+ transition: all 0.2s ease;
850
+ }
851
+
852
+ .external-link:hover {
853
+ color: var(--primary-dark);
854
+ transform: translateX(2px);
855
+ }
856
+
857
+ .modal-github h4 {
858
+ display: flex;
859
+ align-items: center;
860
+ gap: 8px;
861
+ margin-bottom: 16px;
862
+ color: var(--gray-900);
863
+ font-weight: 600;
864
+ font-size: 16px;
865
+ }
866
+
867
+ .github-stats {
868
+ display: grid;
869
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
870
+ gap: 12px;
871
+ margin-bottom: 20px;
872
+ }
873
+
874
+ .github-stat {
875
+ text-align: center;
876
+ padding: 16px 12px;
877
+ background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
878
+ border-radius: var(--radius-lg);
879
+ border: 1px solid var(--gray-200);
880
+ transition: all 0.2s ease;
881
+ }
882
+
883
+ .github-stat:hover {
884
+ transform: translateY(-2px);
885
+ box-shadow: var(--shadow-md);
886
+ }
887
+
888
+ .github-stat-value {
889
+ font-size: 20px;
890
+ font-weight: 700;
891
+ color: var(--gray-900);
892
+ margin-bottom: 4px;
893
+ }
894
+
895
+ .github-stat-label {
896
+ font-size: 12px;
897
+ color: var(--gray-600);
898
+ font-weight: 500;
899
+ display: flex;
900
+ align-items: center;
901
+ justify-content: center;
902
+ gap: 4px;
903
+ }
904
+
905
+ .github-stat-label i {
906
+ font-size: 10px;
907
+ }
908
+
909
+ .github-link {
910
+ display: inline-flex;
911
+ align-items: center;
912
+ gap: 8px;
913
+ background: linear-gradient(135deg, var(--primary), var(--primary-dark));
914
+ color: var(--white);
915
+ padding: 12px 20px;
916
+ border-radius: var(--radius-lg);
917
+ text-decoration: none;
918
+ font-weight: 600;
919
+ transition: all 0.3s ease;
920
+ box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
921
+ }
922
+
923
+ .github-link:hover {
924
+ transform: translateY(-2px);
925
+ box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
926
+ }
927
+
928
+ .modal-section {
929
+ margin-bottom: 20px;
930
+ padding-top: 20px;
931
+ border-top: 1px solid var(--gray-200);
932
+ }
933
+
934
+ .modal-section:first-child {
935
+ border-top: none;
936
+ padding-top: 0;
937
+ }
938
+
939
+ .modal-section h4 {
940
+ margin-bottom: 12px;
941
+ color: var(--gray-900);
942
+ font-weight: 600;
943
+ font-size: 16px;
944
+ }
945
+
946
+ .description-text {
947
+ line-height: 1.6;
948
+ color: var(--gray-700);
949
+ font-size: 15px;
950
+ }
951
+
952
+ /* Loading States */
953
+ .loading {
954
+ display: flex;
955
+ justify-content: center;
956
+ align-items: center;
957
+ height: 200px;
958
+ }
959
+
960
+ .spinner {
961
+ width: 40px;
962
+ height: 40px;
963
+ border: 4px solid var(--gray-200);
964
+ border-top: 4px solid var(--primary);
965
+ border-radius: 50%;
966
+ animation: spin 1s linear infinite;
967
+ }
968
+
969
+ @keyframes spin {
970
+ 0% { transform: rotate(0deg); }
971
+ 100% { transform: rotate(360deg); }
972
+ }
973
+
974
+ /* Empty States */
975
+ .empty-state {
976
+ text-align: center;
977
+ padding: 60px 20px;
978
+ color: var(--gray-500);
979
+ }
980
+
981
+ .empty-state i {
982
+ font-size: 48px;
983
+ margin-bottom: 16px;
984
+ color: var(--gray-300);
985
+ }
986
+
987
+ .empty-state h3 {
988
+ margin-bottom: 8px;
989
+ color: var(--gray-600);
990
+ }
991
+
992
+ /* Responsive Design */
993
+ @media (max-width: 768px) {
994
+ .sidebar {
995
+ transform: translateX(-100%);
996
+ transition: transform 0.3s ease;
997
+ }
998
+
999
+ .sidebar.open {
1000
+ transform: translateX(0);
1001
+ }
1002
+
1003
+ .main-content {
1004
+ margin-left: 0;
1005
+ padding: 16px;
1006
+ }
1007
+
1008
+ .page-header h1 {
1009
+ font-size: 24px;
1010
+ }
1011
+
1012
+ .stats-grid {
1013
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
1014
+ gap: 16px;
1015
+ }
1016
+
1017
+ .stat-card {
1018
+ padding: 16px;
1019
+ gap: 12px;
1020
+ }
1021
+
1022
+ .stat-icon {
1023
+ width: 48px;
1024
+ height: 48px;
1025
+ font-size: 20px;
1026
+ }
1027
+
1028
+ .stat-number {
1029
+ font-size: 24px;
1030
+ }
1031
+
1032
+ .charts-container {
1033
+ grid-template-columns: 1fr;
1034
+ gap: 16px;
1035
+ }
1036
+
1037
+ .filters {
1038
+ flex-direction: column;
1039
+ }
1040
+
1041
+ .filters select {
1042
+ width: 100%;
1043
+ }
1044
+
1045
+ .results-grid {
1046
+ grid-template-columns: 1fr;
1047
+ gap: 16px;
1048
+ }
1049
+
1050
+ .project-card {
1051
+ height: auto;
1052
+ min-height: 160px;
1053
+ }
1054
+
1055
+ .project-title {
1056
+ font-size: 16px;
1057
+ }
1058
+
1059
+ .project-stats {
1060
+ gap: 16px;
1061
+ }
1062
+
1063
+ .modal-grid {
1064
+ grid-template-columns: 1fr;
1065
+ }
1066
+
1067
+ .github-stats {
1068
+ grid-template-columns: repeat(2, 1fr);
1069
+ }
1070
+
1071
+ .results-grid.list-view .project-card {
1072
+ flex-direction: column;
1073
+ height: auto;
1074
+ }
1075
+
1076
+ .results-grid.list-view .project-header {
1077
+ margin-right: 0;
1078
+ margin-bottom: 12px;
1079
+ }
1080
+
1081
+ .results-grid.list-view .project-meta {
1082
+ flex-direction: column;
1083
+ align-items: flex-start;
1084
+ gap: 12px;
1085
+ min-width: auto;
1086
+ }
1087
+
1088
+ /* Pagination mobile styles */
1089
+ .pagination {
1090
+ flex-direction: column;
1091
+ gap: 12px;
1092
+ }
1093
+
1094
+ .page-numbers {
1095
+ order: -1;
1096
+ flex-wrap: wrap;
1097
+ justify-content: center;
1098
+ max-width: 100%;
1099
+ }
1100
+
1101
+ .page-btn {
1102
+ padding: 8px 12px;
1103
+ font-size: 12px;
1104
+ }
1105
+
1106
+ .page-number {
1107
+ width: 36px;
1108
+ height: 36px;
1109
+ font-size: 12px;
1110
+ }
1111
+
1112
+ .pagination-info {
1113
+ font-size: 12px;
1114
+ }
1115
+ }