-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (76 loc) · 5.11 KB
/
Copy pathindex.html
File metadata and controls
80 lines (76 loc) · 5.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<title>GitHub Trending</title>
</head>
<body class="bg-gray-100">
<div class="container mx-auto px-4 py-8">
<div class="flex justify-between items-center mb-8">
<h1 class="text-4xl font-bold text-center flex-1">GitHub Trending</h1>
<button id="settings-btn" class="bg-gray-200 hover:bg-gray-300 text-gray-700 font-medium py-2 px-4 rounded-lg transition-colors duration-200 flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
</svg>
Language Settings
</button>
</div>
<div class="space-y-8" id="trending-container">
<!-- Language sections will be dynamically inserted here -->
</div>
</div>
<!-- Settings Modal -->
<div id="settings-modal" class="fixed inset-0 bg-black bg-opacity-50 hidden z-50">
<div class="flex items-center justify-center min-h-screen p-4">
<div class="bg-white rounded-lg max-w-2xl w-full max-h-[90vh] overflow-hidden flex flex-col">
<div class="p-6 border-b border-gray-200 flex-shrink-0">
<div class="flex justify-between items-center">
<h2 class="text-xl font-semibold">Language Settings</h2>
<button id="close-settings" class="text-gray-400 hover:text-gray-600">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</button>
</div>
<p class="text-gray-600 text-sm mt-2">Select which programming languages to display in trending sections. Overall Trending is always shown.</p>
</div>
<div class="p-6 overflow-y-auto flex-1">
<!-- Language Selection Grid -->
<div class="grid grid-cols-2 md:grid-cols-3 gap-3 mb-6" id="language-checkboxes">
<!-- Language checkboxes will be inserted here -->
</div>
<!-- Add Custom Language Section -->
<div class="p-4 bg-gray-50 rounded-lg">
<h3 class="text-sm font-medium text-gray-700 mb-3">Add Custom Language</h3>
<div class="flex gap-2">
<input type="text" id="custom-language-input" placeholder="Enter language name..."
class="flex-1 px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
<button id="add-custom-language"
class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-colors text-sm">
Add
</button>
</div>
<p class="text-xs text-gray-500 mt-2">Note: Custom languages may not have trending data available on GitHub.</p>
</div>
</div>
<div class="p-6 border-t border-gray-200 flex justify-end space-x-3 flex-shrink-0">
<button id="reset-settings" class="px-4 py-2 text-gray-600 hover:text-gray-800 transition-colors">Reset to Default</button>
<button id="cancel-settings" class="px-4 py-2 bg-gray-200 text-gray-700 rounded hover:bg-gray-300 transition-colors">Cancel</button>
<button id="save-settings" class="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700 transition-colors">Save Changes</button>
</div>
</div>
</div>
</div>
<script src="language-settings.js"></script>
<script src="cache-manager.js"></script>
<script src="data-fetcher.js"></script>
<script src="ui-components.js"></script>
<script src="drag-manager.js"></script>
<script src="settings-manager.js"></script>
<script src="app-main.js"></script>
</body>
</html>