-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
261 lines (247 loc) · 13.7 KB
/
index.html
File metadata and controls
261 lines (247 loc) · 13.7 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GitHub Profile README Generator</title>
<meta name="description" content="Generate a professional GitHub profile README instantly from any GitHub username. Free, no login required." />
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- Header -->
<header class="header">
<div class="header-inner">
<div class="logo">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
</svg>
<span>Profile README Generator</span>
</div>
<a href="https://github.com/swatikulkarni123/github-profile-generator" target="_blank" rel="noopener" class="header-link header-star-btn">
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M12 .587l3.668 7.431 8.332 1.21-6.029 5.874 1.42 8.311L12 19.897l-7.391 3.516 1.42-8.311L0 9.228l8.332-1.21z"/></svg>
Star on GitHub
</a>
</div>
</header>
<!-- Hero Section -->
<main>
<section class="hero">
<h1>GitHub Profile README Generator</h1>
<p class="subtitle">Enter a GitHub username. Get a professional profile README in seconds.</p>
<div class="search-box">
<div class="input-wrapper">
<svg class="input-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>
<input
type="text"
id="username-input"
placeholder="Enter GitHub username (e.g. torvalds)"
autocomplete="off"
spellcheck="false"
autofocus
/>
<button id="generate-btn" type="button">
<span class="btn-text">Generate README</span>
<span class="btn-loader" hidden>
<svg class="spinner" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v4m0 12v4m-7.07-3.93 2.83-2.83m8.48-8.48 2.83-2.83M2 12h4m12 0h4M4.93 4.93l2.83 2.83m8.48 8.48 2.83 2.83"/></svg>
</span>
</button>
</div>
<div id="error-msg" class="error-msg" hidden></div>
</div>
</section>
<!-- Results (hidden until generated) -->
<section id="results" class="results" hidden>
<!-- User Profile Card -->
<div class="profile-card" id="profile-card">
<img id="avatar" class="avatar" src="" alt="" />
<div class="profile-info">
<h2 id="profile-name"></h2>
<p id="profile-bio" class="profile-bio"></p>
<div class="profile-stats">
<div class="stat"><span id="stat-repos" class="stat-value">0</span><span class="stat-label">Repos</span></div>
<div class="stat"><span id="stat-stars" class="stat-value">0</span><span class="stat-label">Stars</span></div>
<div class="stat"><span id="stat-followers" class="stat-value">0</span><span class="stat-label">Followers</span></div>
<div class="stat"><span id="stat-following" class="stat-value">0</span><span class="stat-label">Following</span></div>
</div>
</div>
</div>
<!-- Languages Chart -->
<div class="section-card">
<h3>Top Languages</h3>
<div id="languages-chart" class="languages-chart"></div>
</div>
<!-- Top Repos -->
<div class="section-card">
<h3>Top Repositories</h3>
<div id="top-repos" class="top-repos"></div>
</div>
<!-- Style Selector -->
<div class="section-card customize-section">
<h3>Customize Your README</h3>
<div class="style-selector">
<label class="style-label">Choose Style</label>
<div class="style-options" id="style-options">
<button class="style-btn active" data-style="classic">
<span class="style-preview style-preview-classic"></span>
<span class="style-name">Classic</span>
<span class="style-desc">Badges, stats, wave header</span>
</button>
<button class="style-btn" data-style="minimal">
<span class="style-preview style-preview-minimal"></span>
<span class="style-name">Minimal</span>
<span class="style-desc">Clean, simple, professional</span>
</button>
<button class="style-btn" data-style="hacker">
<span class="style-preview style-preview-hacker"></span>
<span class="style-name">Hacker</span>
<span class="style-desc">Terminal, code aesthetic</span>
</button>
<button class="style-btn" data-style="elegant">
<span class="style-preview style-preview-elegant"></span>
<span class="style-name">Elegant</span>
<span class="style-desc">Centered, refined, subtle</span>
</button>
<button class="style-btn" data-style="portfolio">
<span class="style-preview style-preview-portfolio"></span>
<span class="style-name">Portfolio</span>
<span class="style-desc">Developer portfolio showcase</span>
</button>
<button class="style-btn" data-style="futuristic">
<span class="style-preview style-preview-futuristic"></span>
<span class="style-name">Futuristic</span>
<span class="style-desc">AI-inspired neon glow</span>
</button>
<button class="style-btn" data-style="resume">
<span class="style-preview style-preview-resume"></span>
<span class="style-name">Resume</span>
<span class="style-desc">Clean professional resume</span>
</button>
<button class="style-btn" data-style="gradient">
<span class="style-preview style-preview-gradient"></span>
<span class="style-name">Gradient</span>
<span class="style-desc">Modern colorful gradients</span>
</button>
<button class="style-btn" data-style="opensource">
<span class="style-preview style-preview-opensource"></span>
<span class="style-name">Open Source</span>
<span class="style-desc">Open source warrior vibe</span>
</button>
<button class="style-btn" data-style="compact">
<span class="style-preview style-preview-compact"></span>
<span class="style-name">Compact Pro</span>
<span class="style-desc">Dense, info-packed layout</span>
</button>
<button class="style-btn" data-style="animated">
<span class="style-preview style-preview-animated"></span>
<span class="style-name">Animated</span>
<span class="style-desc">Typing effect, animations</span>
</button>
<button class="style-btn" data-style="startup">
<span class="style-preview style-preview-startup"></span>
<span class="style-name">Startup</span>
<span class="style-desc">Startup founder aesthetic</span>
</button>
<button class="style-btn" data-style="devops">
<span class="style-preview style-preview-devops"></span>
<span class="style-name">DevOps</span>
<span class="style-desc">Cloud & infrastructure</span>
</button>
<button class="style-btn" data-style="mobile">
<span class="style-preview style-preview-mobile"></span>
<span class="style-name">Mobile Dev</span>
<span class="style-desc">Mobile developer focus</span>
</button>
<button class="style-btn" data-style="aiml">
<span class="style-preview style-preview-aiml"></span>
<span class="style-name">AI/ML</span>
<span class="style-desc">AI & machine learning</span>
</button>
<button class="style-btn" data-style="pastel">
<span class="style-preview style-preview-pastel"></span>
<span class="style-name">Pastel</span>
<span class="style-desc">Cute pastel kawaii style</span>
</button>
<button class="style-btn" data-style="monochrome">
<span class="style-preview style-preview-monochrome"></span>
<span class="style-name">Monochrome</span>
<span class="style-desc">Black & white elegance</span>
</button>
<button class="style-btn" data-style="timeline">
<span class="style-preview style-preview-timeline"></span>
<span class="style-name">Timeline</span>
<span class="style-desc">Story-style timeline</span>
</button>
<button class="style-btn" data-style="badges">
<span class="style-preview style-preview-badges"></span>
<span class="style-name">Badge Lover</span>
<span class="style-desc">Maximum badges everywhere</span>
</button>
<button class="style-btn" data-style="premium">
<span class="style-preview style-preview-premium"></span>
<span class="style-name">Premium</span>
<span class="style-desc">Premium developer brand</span>
</button>
</div>
</div>
<div class="section-reorder">
<label class="style-label">Reorder Sections <span class="drag-hint">Drag to rearrange</span></label>
<ul id="section-list" class="section-list">
<li class="section-item" data-section="header" draggable="true"><span class="drag-handle">☰</span> Header & Bio</li>
<li class="section-item" data-section="about" draggable="true"><span class="drag-handle">☰</span> About Me</li>
<li class="section-item" data-section="techStack" draggable="true"><span class="drag-handle">☰</span> Tech Stack</li>
<li class="section-item" data-section="topProjects" draggable="true"><span class="drag-handle">☰</span> Top Projects</li>
<li class="section-item" data-section="stats" draggable="true"><span class="drag-handle">☰</span> GitHub Stats</li>
<li class="section-item" data-section="languages" draggable="true"><span class="drag-handle">☰</span> Top Languages</li>
<li class="section-item" data-section="streak" draggable="true"><span class="drag-handle">☰</span> Streak Stats</li>
<li class="section-item" data-section="trophies" draggable="true"><span class="drag-handle">☰</span> Trophies</li>
<li class="section-item" data-section="connect" draggable="true"><span class="drag-handle">☰</span> Connect</li>
<li class="section-item" data-section="footer" draggable="true"><span class="drag-handle">☰</span> Footer</li>
</ul>
</div>
</div>
<!-- README Preview -->
<div class="section-card readme-section">
<div class="readme-header">
<h3>Generated README.md</h3>
<div class="readme-actions">
<button id="copy-btn" class="action-btn" title="Copy markdown">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
<span>Copy</span>
</button>
<button id="download-btn" class="action-btn action-btn-primary" title="Download README.md">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
<span>Download README.md</span>
</button>
</div>
</div>
<!-- Tabs: Preview / Raw Markdown -->
<div class="tabs">
<button class="tab active" data-tab="preview">Preview</button>
<button class="tab" data-tab="raw">Raw Markdown</button>
</div>
<div id="tab-preview" class="tab-content active">
<div id="readme-preview" class="readme-preview"></div>
</div>
<div id="tab-raw" class="tab-content">
<pre id="readme-raw" class="readme-raw"></pre>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="visitor-stats">
<img src="https://visitor-badge.laobi.icu/badge?page_id=swatikulkarni123.github-profile-generator&left_color=%23161b22&right_color=%2358a6ff&left_text=Unique%20Visitors" alt="Unique Visitors" />
<span class="generation-counter" id="generation-counter"></span>
</div>
<p>Built with vanilla HTML, CSS & JS — No frameworks, no paid APIs.</p>
<p>Uses <a href="https://docs.github.com/en/rest" target="_blank" rel="noopener">GitHub Public API</a> • Free & open source</p>
</footer>
<!-- Markdown rendering (lightweight, from CDN) -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="js/github-api.js"></script>
<script src="js/generator.js"></script>
<script src="js/app.js"></script>
</body>
</html>