-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGoCard-card.html
More file actions
327 lines (282 loc) · 9.71 KB
/
Copy pathGoCard-card.html
File metadata and controls
327 lines (282 loc) · 9.71 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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GoCard - GitHub Card</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Unbounded:wght@400;700&display=swap');
:root {
--bg: #fdf2f8; /* Soft pastel pink bg */
--card-bg: rgba(255, 255, 255, 0.85);
--primary: #f472b6; /* Pink */
--secondary: #60a5fa; /* Blue */
--accent: #fbbf24; /* Yellow */
--line: #1a1a1a;
}
body {
font-family: 'Space Grotesk', sans-serif;
background-color: var(--bg);
background-image: radial-gradient(var(--line) 1px, transparent 0);
background-size: 30px 30px;
background-attachment: fixed;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
}
.card {
position: relative;
background: var(--card-bg);
backdrop-filter: blur(12px);
border: 4px solid var(--line);
border-radius: 32px;
box-shadow: 12px 12px 0px var(--line);
width: 100%;
max-width: 550px;
padding: 40px;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover {
transform: translate(-4px, -4px);
box-shadow: 18px 18px 0px var(--line);
}
.card::before {
content: "";
position: absolute;
top: -20px;
right: -20px;
width: 100px;
height: 100px;
background: var(--accent);
border: 4px solid var(--line);
border-radius: 50%;
z-index: -1;
}
.header {
display: flex;
align-items: flex-start;
gap: 24px;
margin-bottom: 30px;
}
.avatar-container {
position: relative;
}
.avatar {
width: 80px;
height: 80px;
border-radius: 24px;
border: 4px solid var(--line);
background: #fff;
object-fit: cover;
transform: rotate(-3deg);
transition: transform 0.3s ease;
}
.card:hover .avatar {
transform: rotate(0deg) scale(1.1);
}
.repo-info {
flex: 1;
}
.owner-name {
font-size: 1rem;
font-weight: 500;
color: #4b5563;
margin-bottom: 4px;
}
.repo-name {
font-family: 'Unbounded', sans-serif;
font-size: 2rem;
font-weight: 700;
margin: 0;
line-height: 1.2;
word-break: break-all;
}
.description {
font-size: 1.1rem;
line-height: 1.6;
color: #374151;
margin-bottom: 30px;
min-height: 50px;
}
.stats {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 30px;
}
.pill {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 18px;
border: 3px solid var(--line);
border-radius: 16px;
font-weight: 700;
font-size: 0.95rem;
box-shadow: 4px 4px 0px var(--line);
transition: all 0.2s ease;
}
.pill:hover {
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0px var(--line);
}
.pill.stars { background: #fef08a; }
.pill.forks { background: #bae6fd; }
.pill.lang { background: #fecdd3; }
.readme-sec {
background: #fff;
border: 3px solid var(--line);
border-radius: 20px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 6px 6px 0px rgba(0,0,0,0.1);
}
.readme-title {
font-weight: 700;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.readme-content {
font-size: 0.9rem;
color: #4b5563;
line-height: 1.5;
white-space: pre-wrap;
max-height: 120px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
.footer {
display: flex;
justify-content: flex-end;
gap: 12px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 14px 28px;
background: #86efac;
color: var(--line);
text-decoration: none;
font-weight: 700;
font-size: 1rem;
border: 4px solid var(--line);
border-radius: 20px;
box-shadow: 6px 6px 0px var(--line);
transition: all 0.2s ease;
cursor: pointer;
}
.btn-secondary {
background: #bae6fd;
}
.btn:hover {
transform: translate(-2px, -2px);
box-shadow: 8px 8px 0px var(--line);
}
.btn.btn-secondary:hover {
background: #7dd3fc;
}
.btn:active {
transform: translate(2px, 2px);
box-shadow: 2px 2px 0px var(--line);
}
/* Decorative blobs */
.blob {
position: absolute;
z-index: -1;
filter: blur(40px);
opacity: 0.4;
}
.blob-1 { top: 10%; left: 10%; width: 100px; height: 100px; background: var(--primary); border-radius: 50%; }
.blob-2 { bottom: 10%; right: 10%; width: 120px; height: 120px; background: var(--secondary); border-radius: 50%; }
@media print {
.footer { display: none; }
}
/* Icon styling */
.icon { width: 18px; height: 18px; stroke-width: 2.5px; }
.lang-icon { width: 20px; height: 20px; object-fit: contain; }
</style>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
</head>
<body>
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="card">
<div class="header">
<div class="avatar-container">
<img class="avatar" src="https://avatars.githubusercontent.com/u/75571386?v=4" alt="avatar">
</div>
<div class="repo-info">
<div class="owner-name">@adeleeeeyyyy</div>
<h1 class="repo-name">GoCard</h1>
</div>
</div>
<p class="description">A professional, high-performance CLI tool built in Go that generates stunning, Neo-Brutalism style repository cards for your GitHub projects.</p>
<div class="stats">
<div class="pill stars" style="background: #fef08a;">
<i data-lucide="star" class="icon"></i>
0
</div>
<div class="pill forks" style="background: #bae6fd;">
<i data-lucide="git-fork" class="icon"></i>
0
</div>
<div class="pill lang" style="background: #fecdd3;">
<img id="lang-img" class="lang-icon" src="" alt="">
Go
</div>
</div>
<div class="readme-sec">
<div class="readme-title">
<i data-lucide="file-text" class="icon" style="width:14px; height:14px;"></i>
README.md Preview
</div>
<div class="readme-content"># 🚀 GitHub Repo Card CLI
A professional, high-performance CLI tool built in **Go** that generates stunning, **Neo-Brutalism** style repository cards for your GitHub projects.

*(Replace with actual generated image or screenshot)*
## ✨ Features
- **🎨 Stunning UI**: Modern Neo-Brutalism design with soft pastel colors, rounded corners, and glassmorphism.
- **✨ Professional Icons**: Integrated **Lucide Icons** for the UI and **Devicon/Simple Icons** for programming languages.
- **⚡ Fast & Lightweight**:
... [Readme cutted]</div>
</div>
<div class="footer">
<a href="https://github.com/adeleeeeyyyy/GoCard" target="_blank" class="btn">
View Repo
<i data-lucide="external-link" class="icon" style="margin-left:8px;"></i>
</a>
</div>
</div>
<script>
// Initialize Lucide icons
lucide.createIcons();
// Dynamic Language Icon Logic
const lang = "Go".toLowerCase().replace(/[+#]/g, (m) => ({ '+': 'plus', '#': 'sharp' }[m]));
const langImg = document.getElementById('lang-img');
if (langImg) {
// Priority 1: Devicon (Using concat since backticks break Go string)
langImg.src = "https://cdn.jsdelivr.net/gh/devicons/devicon/icons/" + lang + "/" + lang + "-original.svg";
// Fallback: Simple Icons if Devicon fails
langImg.onerror = () => {
langImg.src = "https://cdn.simpleicons.org/" + lang;
langImg.onerror = () => {
langImg.style.display = 'none'; // Hide if both fail
};
};
}
</script>
</body>
</html>