Skip to content

Conversation

@elonpart2
Copy link
Contributor

@elonpart2 elonpart2 commented Jun 28, 2025

Summary by CodeRabbit

  • New Features
    • Introduced a testimonials section to the Home page, showcasing user feedback with animated marquee cards.
    • Testimonials display user images or initials, names, tags, and product-related descriptions.
    • Added smooth horizontal scrolling animations with pause-on-hover and alternating directions for visual dynamism.
    • Enhanced the section with gradient backgrounds, animated headings, and a responsive layout.

@vercel
Copy link

vercel bot commented Jun 28, 2025

@sanwalsulehri is attempting to deploy a commit to the tweakcn OSS program Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link

coderabbitai bot commented Jun 28, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

A new Testimonials React component was created featuring animated marquee rows displaying user testimonials with images, names, tags, and descriptions. This component was imported and added to the home page between the Roadmap and FAQ sections. No other exports or logic were changed.

Changes

File(s) Change Summary
components/home/testimonials.tsx Added new Testimonials component with animated marquee testimonial cards, responsive layout, and hover pause functionality.
app/page.tsx Imported and inserted Testimonials component between Roadmap and FAQ on the home page.

Poem

In the garden of code where new features bloom,
Testimonials now sparkle, dispelling the gloom.
With cards that animate and words that delight,
Users’ kind voices now shine ever bright.
A hop, a skip, a grateful cheer—
More stories for all, the home page to endear!
🐇✨


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🧹 Nitpick comments (3)
components/home/testimonials.tsx (3)

10-58: Consider moving testimonial data to a separate configuration file.

The hard-coded testimonial data makes the component less maintainable and reusable. Consider extracting this to a separate configuration file or data source.

+// testimonials.config.ts
+export const testimonialsData = [
+  {
+    image: man1.src,
+    name: "Sanwal Sulehri",
+    tag: "sanwalakram12",
+    description: "Playing around with @tweakcn suddenly made me feeling inspired to launch that side project."
+  },
+  // ... rest of testimonials
+];

// testimonials.tsx
+import { testimonialsData } from './testimonials.config';

-const testimonials = [
-  // ... hard-coded data
-];
+const testimonials = testimonialsData;

70-73: Follow consistent naming conventions.

The variable _itemVariant uses an underscore prefix which is unconventional for React components. Consider using a more descriptive name.

-const _itemVariant = {
+const itemVariant = {
   hidden: { opacity: 0, y: 20 },
   show: { opacity: 1, y: 0 },
 };

// Update usage
-              variants={_itemVariant}
+              variants={itemVariant}

117-127: Consider adding loading states for images.

The current implementation doesn't handle image loading states, which could cause layout shift during loading.

                    {testimonial.image ? (
                      <img
                        src={testimonial.image}
                        alt={testimonial.name}
                        className="h-12 w-12 rounded-full object-cover"
+                       loading="lazy"
+                       onError={(e) => {
+                         e.currentTarget.style.display = 'none';
+                         // Show fallback
+                       }}
                      />
                    ) : (
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1370ee9 and 3a6052e.

⛔ Files ignored due to path filters (7)
  • assets/girl1.png is excluded by !**/*.png
  • assets/girl2.png is excluded by !**/*.png
  • assets/girl3.png is excluded by !**/*.png
  • assets/man1.png is excluded by !**/*.png
  • assets/man2.png is excluded by !**/*.png
  • assets/reviewer.png is excluded by !**/*.png
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • app/page.tsx (2 hunks)
  • components/home/testimonials.tsx (1 hunks)
  • package.json (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
app/page.tsx (1)
components/home/testimonials.tsx (1)
  • Testimonials (75-145)
🪛 Biome (1.9.4)
components/home/testimonials.tsx

[error] 135-135: Avoid passing content using the dangerouslySetInnerHTML prop.

Setting content using code can expose users to cross-site scripting (XSS) attacks

(lint/security/noDangerouslySetInnerHtml)

🔇 Additional comments (1)
app/page.tsx (1)

10-10: Clean integration of the Testimonials component.

The component is properly imported and well-positioned in the page flow between Roadmap and FAQ sections.

Also applies to: 45-45

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
components/home/testimonials.tsx (2)

13-50: Consider extracting testimonials data to a separate file.

The testimonials data is well-structured, but for better organization and maintainability, consider moving it to a separate data file (e.g., data/testimonials.ts).

+// Create data/testimonials.ts
+export const testimonials = [
+  // ... testimonials data
+];

-// Testimonials Data
-const testimonials = [
-  // ... testimonials data moved to separate file
-];
+import { testimonials } from '@/data/testimonials';

172-204: Clean implementation with minor optimization opportunity.

The main component structure is well-organized with appropriate animations and responsive design. Consider memoizing the MarqueeRow components to prevent unnecessary re-renders.

+import { memo } from 'react';

+const MemoizedMarqueeRow = memo(MarqueeRow);

         {/* 🚀 Two Marquee Rows */}
         <div className="flex flex-col gap-y-0">
-          <MarqueeRow items={testimonials} reverse={false} />
-          <MarqueeRow items={testimonials} reverse={true} />
+          <MemoizedMarqueeRow items={testimonials} reverse={false} />
+          <MemoizedMarqueeRow items={testimonials} reverse={true} />
         </div>
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ecfb474 and 04a9942.

📒 Files selected for processing (1)
  • components/home/testimonials.tsx (1 hunks)
🔇 Additional comments (1)
components/home/testimonials.tsx (1)

137-165: Well-implemented testimonial cards with good accessibility.

The card rendering is well-structured with proper image fallbacks, semantic HTML, and accessible alt text. The removal of dangerouslySetInnerHTML (as noted in past comments) improves security.

@jnsahaj
Copy link
Owner

jnsahaj commented Jul 3, 2025

Won't be able to merge it this week. Next week :)

@elonpart2
Copy link
Contributor Author

Ok no problem !

@elonpart2
Copy link
Contributor Author

i think you wanna change something in UI feel free to ask me but plz merge this!!!!!!

@jnsahaj
Copy link
Owner

jnsahaj commented Jul 14, 2025

Haven't gotten around to hunting for good tweets yet :(
Let me get this done in a day or two

@jnsahaj
Copy link
Owner

jnsahaj commented Jul 16, 2025

This week - for sure

@jnsahaj jnsahaj changed the base branch from main to feature/testimonials July 20, 2025 20:35
@jnsahaj jnsahaj merged commit fcb5987 into jnsahaj:feature/testimonials Jul 20, 2025
1 of 2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Jul 20, 2025
jnsahaj added a commit that referenced this pull request Jul 20, 2025
* Beautiful twitter testimonials on Home page #126 added (#128)

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

* Beautiful twitter testimonials on Home page #126 added

---------

Co-authored-by: sanwalsulehri <[email protected]>
Co-authored-by: Sahaj Jain <[email protected]>

* feat: Add real testimonial tweets

* add testimonials to pricing page

* use avatar

---------

Co-authored-by: Sanwal Sulehrii <[email protected]>
Co-authored-by: sanwalsulehri <[email protected]>
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.

3 participants