Skip to content

feat: add landing page#4

Merged
cersho merged 8 commits into
mainfrom
cersho/feat-landing-page
Jun 14, 2026
Merged

feat: add landing page#4
cersho merged 8 commits into
mainfrom
cersho/feat-landing-page

Conversation

@cersho

@cersho cersho commented Jun 14, 2026

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gofiles-sdk-web Ready Ready Preview, Comment Jun 14, 2026 5:00am

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Launched a new home/landing page with comprehensive product overview, adapter directory, and workflow information.
    • Added site footer with project and resource links.
    • Introduced copy-to-clipboard functionality for install commands.
    • Added interactive code switcher with syntax-highlighted code samples.
  • Style

    • Enhanced button interactions with improved transitions and visual feedback.
    • Updated global styling for code blocks and scrollbar appearance.
    • Added landing page reveal animations and visual effects.
  • Chores

    • Added syntax highlighting library dependency.

Walkthrough

Removes the root /overview redirect and introduces a full marketing landing page under (home)/page.tsx. Adds custom Go Shiki themes wired into MDX config, a server/client ProviderCodeSwitcher for tabbed adapter code samples, Footer and HeroInstallCopy components, button active-state refinement, and CSS animations/variables supporting the landing layout.

Changes

Landing Home Page

Layer / File(s) Summary
Custom Go Shiki themes and dependency wiring
apps/web/package.json, apps/web/lib/shiki-themes.ts, apps/web/source.config.ts
Adds shiki ^4.2.0, defines goBlueDarkTheme/goBlueLightTheme with per-token Go scope mappings, and replaces string theme identifiers in source.config.ts MDX rehype options with the new theme objects.
ProviderCodeSwitcher server and client components
apps/web/components/provider-code-switcher.tsx, apps/web/components/provider-code-switcher-client.tsx
ProviderCodeSwitcher is an async RSC that builds per-adapter Go snippets, appends a shared upload operation, and runs Shiki highlighting in parallel for both themes. ProviderCodeSwitcherClient is the interactive tab/copy/dangerouslySetInnerHTML client layer.
Footer, HeroInstallCopy, and Button tweak
apps/web/components/footer.tsx, apps/web/components/hero-install-copy.tsx, apps/web/components/ui/button.tsx
Adds Footer with project/resource link columns, HeroInstallCopy with clipboard copy and 1.4 s feedback, and updates buttonVariants to a scale-based active transform with explicit transition properties.
Global CSS: shadow variables, animations, code-switcher styles
apps/web/app/globals.css
Extends Shiki selectors to .code-switcher-shiki, adds --shadow-border CSS variables, sets scrollbar styles, introduces @keyframes marquee, and defines landing-reveal animation utilities with delay variants and a reduced-motion override.
Home layout, route removal, and full landing page
apps/web/app/page.tsx, apps/web/app/(home)/layout.tsx, apps/web/app/(home)/page.tsx
Removes the old /overview redirect. Adds the (home) layout wrapping children in HomeLayout with Footer. Adds the full Home page including hero, adapter directory grid, workflow cards, ProviderCodeSwitcher embed, runtime controls, and a Start section.

Sequence Diagram(s)

sequenceDiagram
  participant Browser
  participant NextJS as Next.js RSC
  participant ProviderCodeSwitcher as ProviderCodeSwitcher (async RSC)
  participant Shiki as Shiki codeToHtml
  participant Client as ProviderCodeSwitcherClient

  Browser->>NextJS: GET /
  NextJS->>ProviderCodeSwitcher: render landing page section
  ProviderCodeSwitcher->>Shiki: highlight N samples × dark theme
  ProviderCodeSwitcher->>Shiki: highlight N samples × light theme
  Shiki-->>ProviderCodeSwitcher: pre-rendered HTML per sample
  ProviderCodeSwitcher->>Client: samples[] with highlightedHtmlDark/Light
  Client-->>Browser: tabbed switcher (tab click, clipboard copy, theme toggle)
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 A home page hops into view,
With code samples dressed in Go blue,
The footer lands with links in a row,
Shiki themes set the syntax aglow,
No more redirects — just fresh dew!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to assess whether any description is related to the changeset. Consider adding a description explaining the purpose of the landing page, key features, and any relevant context for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add landing page' directly and clearly describes the main change—the creation of a new landing page with multiple supporting components and styling.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cersho cersho merged commit 28f11b9 into main Jun 14, 2026
6 of 7 checks passed
@cersho cersho deleted the cersho/feat-landing-page branch June 14, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant