-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
120 lines (111 loc) · 5.39 KB
/
Copy pathindex.html
File metadata and controls
120 lines (111 loc) · 5.39 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Language Analyzer</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="container">
<header class="header">
<h1>GitHub Language Analyzer</h1>
<p class="header__subtitle">Analyze programming languages across all repositories of any GitHub user or organization</p>
</header>
<main class="main">
<div class="analyzer-form card">
<div class="card__body">
<div class="form-group">
<label for="username" class="form-label">GitHub Username or Organization</label>
<div class="input-group">
<input
type="text"
id="username"
class="form-control"
placeholder="e.g., octocat, microsoft, facebook"
autocomplete="off"
>
<button type="button" id="analyzeBtn" class="btn btn--primary">
<span id="analyzeText">Analyze</span>
<div id="loadingSpinner" class="spinner hidden"></div>
</button>
</div>
</div>
<div class="form-group">
<div class="checkbox-group">
<label class="checkbox-label">
<input type="checkbox" id="isOrganization">
<span class="checkmark"></span>
This is an organization
</label>
</div>
</div>
</div>
</div>
<div id="errorMessage" class="error-card card hidden">
<div class="card__body">
<div class="error-content">
<div class="error-icon">⚠️</div>
<div class="error-text">
<h3>Error</h3>
<p id="errorText"></p>
</div>
</div>
</div>
</div>
<div id="resultsSection" class="results-section hidden">
<div class="profile-info card">
<div class="card__body">
<div class="profile-header">
<img id="profileAvatar" class="profile-avatar" src="" alt="Profile">
<div class="profile-details">
<h2 id="profileName"></h2>
<p id="profileBio" class="profile-bio"></p>
<div class="profile-stats">
<span id="repoCount" class="stat"></span>
<span id="lastUpdated" class="last-updated"></span>
</div>
</div>
<button id="refreshBtn" class="btn btn--outline refresh-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M3 3v5h5"></path>
<path d="m3 8 9-5 9 5v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path>
<path d="m9 22 9-4 9 4"></path>
<path d="M3 3l2.5 2.5"></path>
</svg>
Refresh
</button>
</div>
</div>
</div>
<div class="language-analysis card">
<div class="card__body">
<div class="analysis-header">
<h3>Language Distribution</h3>
<div class="chart-controls">
<button id="chartTypeBar" class="btn btn--sm chart-toggle active">Bar Chart</button>
<button id="chartTypePie" class="btn btn--sm chart-toggle">Pie Chart</button>
</div>
</div>
<div class="chart-container" style="position: relative; height: 400px;">
<canvas id="languageChart"></canvas>
</div>
<div class="language-stats">
<h4>Language Statistics</h4>
<div id="languageList" class="language-list"></div>
</div>
</div>
</div>
<div class="repository-info card">
<div class="card__body">
<h3>Repository Summary</h3>
<div id="repoSummary" class="repo-summary"></div>
</div>
</div>
</div>
</main>
</div>
<script src="app.js"></script>
</body>
</html>