+ {/* Phase 9: Skeleton loader */}
+ {!badgeLoaded && !badgeError && (
+
-
-
- {[
- {
- step: '01',
- title: 'Enter Username',
- desc: 'Input your GitHub username above. We validate format and fetch your profile statistics in real-time.',
- },
- {
- step: '02',
- title: 'Generate Badge',
- desc: 'Instantly build your 3D isometric monolith from your commit logs and configure styles to match your README.',
- },
- {
- step: '03',
- title: 'Add to README',
- desc: 'Copy the generated Markdown snippet and embed it into your profile. Your monolith updates as you code.',
- },
- ].map((item, idx) => (
-
-
-
- {item.step}
-
-
+
+
+
+
+
+ GitHub user not found
+
+
+ Please check the username and try again.
+
+
+
+ )}
-
- {item.title}
-
-
{item.desc}
-
- ))}
+ {/* The actual badge image */}
+
setBadgeResult({ username: activeBadgeUser, status: 'loaded' })}
+ onError={() => setBadgeResult({ username: activeBadgeUser, status: 'error' })}
+ />
+
+ {/* CTA below sample: invite to generate own */}
+
+ {showSample && badgeLoaded && (
+
+ ↑ Enter your GitHub username above to generate your own 3D badge
+
+ )}
+
+