This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Rebuild homepage into a skills marketplace with DFY services#2
Open
ctrlswing wants to merge 1 commit into
Open
Rebuild homepage into a skills marketplace with DFY services#2ctrlswing wants to merge 1 commit into
ctrlswing wants to merge 1 commit into
Conversation
Turn the single-page advertorial landing into a full storefront while keeping the dark/amber/mono editorial aesthetic. - Typed skill catalog (src/data/skills.ts): 5 available skills across 3 labs + 3 coming-soon placeholders, with helpers + price formatting - Pages: new storefront home, /skills catalog grouped by lab, /skills/[slug] detail (SSG via generateStaticParams + generateMetadata), and the original advertorial moved to /advertorial - Components: SkillCard, SkillGrid, Navigation, CartDrawer, Footer, SkillBuyActions, reusable DFYSection - Cart: React context (items + drawer state) with nav count badge - Stripe: POST /api/checkout builds a Checkout Session from cart slugs; gracefully handles missing STRIPE_SECRET_KEY and non-purchasable items - Global chrome + metadata in layout; OG/Twitter tags updated - Extend @theme tokens (card surfaces, strong line); add stripe dep Next.js 16: async params via PageProps/RouteContext helpers. Kit subscribe route and SignupForm left untouched. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebuilds channel47.dev from a single-page advertorial landing into a full skills marketplace with a done-for-you path — keeping and extending the existing dark / amber / mono editorial aesthetic.
What's new
Skill data layer —
src/data/skills.ts: typedSkillinterface (slug, title, descriptions, lab, price, tags, status, complementarySkills, includes), 5 available skills across 3 labs (Foundations → Research → Conversion) + 3 coming-soon placeholders. Helpers:getSkill,getAvailableSkills,getComingSoonSkills,getSkillsByLab,getComplementarySkills,formatPrice.Pages
/— storefront: compact "Skills for vibe marketers" hero, featured grid, DFY section (the only Book-a-call CTA), social proof (3.2k+ / $6M+ / MIT), email capture (reusesSignupForm)./skills— full catalog grouped by lab; coming-soon cards dimmed with badges./skills/[slug]— detail page (SSG viagenerateStaticParams+generateMetadata): buy box, what's-included, "works well with", DFY branch. All 8 prerendered./advertorial— the original landing moved here intact (inline header/footer removed since chrome is now global).Components —
SkillCard,SkillGrid,Navigation(sticky, cart count badge),CartDrawer(slide-in, Escape + scroll-lock),Footer,SkillBuyActions, reusableDFYSection.Cart —
src/context/cart.tsx: React context (items + drawer open state), add/remove/clear, nav count badge.Stripe checkout —
POST /api/checkoutbuilds a Checkout Session from cart slugs (filters to purchasable). Gracefully handles missingSTRIPE_SECRET_KEY(→503, friendly message) and empty/coming-soon carts (→400).stripeadded to deps;.env.exampledocuments the keys.Layout & meta — global
CartProvider+Navigation+Footer+CartDrawer; metadata + OG/Twitter tags updated for the new purpose. Extended@themetokens (card surfaces, strong line).Notes
paramshandled via the generatedPageProps/RouteContexthelpers; Turbopack default build.SignupFormleft untouched as required.npm run build(clean, 8 SSG skill pages),npm run lint(clean), and all flows screenshotted in-browser (home, cart drawer, detail, catalog, mobile).Follow-ups (placeholders to swap)
src/lib/site.ts(cal.com/ctrlswing/dfy).price_data; wire real Price IDs when ready.🤖 Generated with Claude Code