Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Update the intro #32

Mergedfukomerged 6 commits intomain fromrefs/pull/32/headmerged by fuko View on GitHub

fukocommented
  • Add cards to the intro page
  • Make the cards look pretty
  • Add the initial animations
  • Animate the intro modal

Summary by CodeRabbit

  • New Features

    • Introduced richer, animated feature cards with per-item entrance/exit animations and staggered sequencing.
    • Added an animated introductory paragraph in the hero overlay for a smoother entry.
  • Style

    • Replaced plain list items with responsive, emoji-driven card layouts for clearer visual hierarchy.
    • Improved overlay sizing, background styling, alignment, and overall animation flow.
✏️ Tip: You can customize this high-level summary in your review settings.
    1. 🚀 Preview Deployment

      Status: ✅ Ready!

      Preview URL: Open Preview

      Commit: ab058e1049c323ffa8caab0f4b014765832b1618

      Built and deployed successfully

    2. Walkthrough

      HomeIntro was refactored to add Framer Motion variants and staggered animations, convert static feature text to animated Card-based FeatureItem components (accepting title and emoji), and update the hero overlay to use AnimatePresence with motion-enabled content.

      Changes

      Cohort / File(s)Summary
      Motion & UI refactor
      src/components/HomeIntro.tsx
      Introduced Framer Motion container/item variants and AnimatePresence (initial: true); replaced plain list items with a responsive motion.ul of animated FeatureItem cards; expanded FeatureItem to accept title and emoji, render as motion.li wrapped in Card/CardHeader/CardDescription; adjusted hero overlay layout, card styling, and motion-enabled intro paragraph.

      Estimated code review effort

      🎯 3 (Moderate) | ⏱️ ~25 minutes

      Pre-merge checks and finishing touches

      ❌ Failed checks (1 warning, 1 inconclusive)
      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 0.00% which is insufficient. The required threshold is 80.00%.You can run @coderabbitai generate docstrings to improve docstring coverage.
      Title check❓ InconclusiveThe title 'Update the intro' is vague and generic, using non-specific language that does not clearly convey the main changes in the changeset.Consider using a more descriptive title that reflects the primary changes, such as 'Add animated cards to intro section' or 'Refactor intro with card-based animations'.
      ✅ Passed checks (1 passed)
      Check nameStatusExplanation
      Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      ✨ Finishing touches
      • 📝 Generate docstrings
        🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Post copyable unit tests in a comment
      • Commit unit tests in branch `update-intro`

      📜 Recent review details

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Pro

      📥 Commits

      Reviewing files that changed from the base of the PR and between f38734cdef7d75a67865002b537a018a6e5bf5aa and ab058e1049c323ffa8caab0f4b014765832b1618.

      📒 Files selected for processing (1)
      • src/components/HomeIntro.tsx
      🚧 Files skipped from review as they are similar to previous changes (1)
      • src/components/HomeIntro.tsx

      Comment `@coderabbitai help` to get the list of available commands and usage tips.
    3. Actionable comments posted: 2

      📜 Review details

      Configuration used: Path: .coderabbit.yaml

      Review profile: CHILL

      Plan: Pro

      📥 Commits

      Reviewing files that changed from the base of the PR and between d46d8d0dda0e8b26a9e201482606271e2f40dd08 and f38734cdef7d75a67865002b537a018a6e5bf5aa.

      📒 Files selected for processing (1)
      • src/components/HomeIntro.tsx
      🧰 Additional context used
      📓 Path-based instructions (1)
      **/*.{ts,tsx}

      📄 CodeRabbit inference engine (AGENTS.md)

      **/*.{ts,tsx}: Prefer functions over arrow functions for React components and everything else Prefer type declarations over interface declarations

      Files:

      • src/components/HomeIntro.tsx
      🧠 Learnings (2)
      📚 Learning: 2025-12-27T20:43:43.168Z
      Learnt from: CR
      Repo: fulopkovacs/trytanstackdb.com PR: 0
      File: AGENTS.md:0-0
      Timestamp: 2025-12-27T20:43:43.168Z
      Learning: Project uses TanStack Start framework with React, TanStack Router, shadcn/ui, and Tailwind CSS v4

      Applied to files:

      • src/components/HomeIntro.tsx
      📚 Learning: 2025-12-24T15:25:07.106Z
      Learnt from: fulopkovacs
      Repo: fulopkovacs/trytanstackdb.com PR: 22
      File: src/components/TodoBoards.tsx:63-81
      Timestamp: 2025-12-24T15:25:07.106Z
      Learning: In Tailwind CSS v4, prefer canonical classes using bg-linear-to-* (e.g., bg-linear-to-b, bg-linear-to-t, bg-linear-to-r) over the older bg-gradient-to-* syntax. This aligns with Tailwind LSP's suggestCanonicalClasses rule. Apply across TSX files (e.g., src/components/*.tsx); replace occurrences of bg-gradient-to-* with the corresponding bg-linear-to-* equivalents and verify gradients visually.

      Applied to files:

      • src/components/HomeIntro.tsx
      🧬 Code graph analysis (1)
      src/components/HomeIntro.tsx (2)
      src/components/ui/card.tsx (4)
      • Card (85-85)
      • CardHeader (86-86)
      • CardContent (91-91)
      • CardDescription (90-90)
      src/lib/utils.ts (1)
      • cn (4-6)
      🔇 Additional comments (4)
      src/components/HomeIntro.tsx (4)

      1-14: LGTM!

      Imports are appropriate and correctly organized for the animation and UI enhancements.


      27-34: LGTM!

      Clean animation variant definition with appropriate type annotation.


      36-57: LGTM!

      Component correctly uses function declaration style. The motion.li with variants={item} follows the parent-child animation pattern well.


      89-103: LGTM!

      The AnimatePresence with initial={true} and the motion.div with container variants and exit transition are well-configured for the intro modal animation.

      Resolvedby fuko
      OutdatedResolvedby fuko
    4. fuko merged this7f0bce3

    5. fuko closed this

Sign in to join this conversation.