-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
132 lines (111 loc) · 4.87 KB
/
index.html
File metadata and controls
132 lines (111 loc) · 4.87 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DevPulse — GitHub Portfolio & Dynamic Badge Builder</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<!-- Header -->
<header>
<h1>DevPulse</h1>
<p>Analyze your GitHub profile and build gorgeous, live stats cards for your READMEs.</p>
</header>
<!-- Search Input Panel -->
<div class="panel">
<div class="search-box">
<input type="text" id="usernameInput" placeholder="Enter your GitHub username (e.g., Lord1Egypt)..." value="Lord1Egypt">
<button id="searchBtn">Generate</button>
</div>
</div>
<!-- Loading Screen -->
<div id="loader" class="panel hidden" style="text-align: center; padding: 50px 0;">
<div style="font-size: 1.5rem; margin-bottom: 15px; color: var(--accent-color);">⏳ Analyzing GitHub Profile...</div>
<p style="color: var(--text-muted);">Fetching repository statistics and building visual cards.</p>
</div>
<!-- Main Dashboard Grid -->
<div id="dashboard" class="dashboard-grid hidden">
<!-- Left Sidebar: Profile & Stats -->
<div style="display: flex; flex-direction: column; gap: 30px;">
<!-- Profile Panel -->
<div class="panel profile-card">
<div class="avatar-wrapper">
<img id="userAvatar" src="" alt="User Avatar">
</div>
<h2 id="userName">Akim</h2>
<div class="username" id="userLogin">@Lord1Egypt</div>
<p class="bio" id="userBio">Full stack developer and AI tools enthusiast.</p>
<div class="stats-grid">
<div class="stat-item">
<span class="val" id="statRepos">0</span>
<span class="lbl">Repos</span>
</div>
<div class="stat-item">
<span class="val" id="statStars">0</span>
<span class="lbl">Stars</span>
</div>
<div class="stat-item">
<span class="val" id="statForks">0</span>
<span class="lbl">Forks</span>
</div>
<div class="stat-item">
<span class="val" id="statFollowers">0</span>
<span class="lbl">Followers</span>
</div>
</div>
</div>
</div>
<!-- Right Column: Badge Designer -->
<div style="display: flex; flex-direction: column; gap: 30px;">
<!-- Designer Panel -->
<div class="panel badge-designer">
<div>
<h3 class="designer-title">🎨 Customize Your GitHub Stats Badge</h3>
<p style="color: var(--text-muted); font-size: 0.95rem;">Choose a style configuration and paste the Markdown directly into your profile README.md.</p>
</div>
<!-- Theme buttons -->
<div style="display: flex; flex-direction: column; gap: 8px;">
<label style="font-size: 0.85rem; font-weight: 600; color: var(--text-muted);">Select Theme</label>
<div class="theme-selector">
<button class="theme-btn active" data-theme-name="dark">Dark Theme</button>
<button class="theme-btn" data-theme-name="light">Light Theme</button>
<button class="theme-btn" data-theme-name="cyber">Cyber Cyan</button>
<button class="theme-btn" data-theme-name="neon">Neon Magenta</button>
</div>
</div>
<!-- Badge Live Preview -->
<div style="display: flex; flex-direction: column; gap: 8px;">
<label style="font-size: 0.85rem; font-weight: 600; color: var(--text-muted);">Live Preview</label>
<div class="badge-preview">
<img id="badgePreviewImg" src="" alt="Grounded Badge Card Preview">
</div>
</div>
<!-- Copy Codes -->
<div class="copy-area">
<label>Markdown Code (For GitHub profile README.md)</label>
<div class="copy-input-group">
<input type="text" id="markdownCode" readonly>
<button id="copyMdBtn">Copy</button>
</div>
</div>
<div class="copy-area">
<label>Direct Image URL</label>
<div class="copy-input-group">
<input type="text" id="imageUrlCode" readonly>
<button id="copyUrlBtn">Copy</button>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer>
<p>DevPulse · <a href="https://github.com/Lord1Egypt/devpulse" target="_blank">View Repository</a></p>
<p style="margin-top: 8px;">Made with ❤️ by <a href="https://github.com/Lord1Egypt" target="_blank">Lord1Egypt</a></p>
</footer>
</div>
<script src="index.js"></script>
</body>
</html>