Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: testimonials alignment on the What the experts are saying section #3501

Closed

Conversation

Kalprajsinh
Copy link

@Kalprajsinh Kalprajsinh commented Dec 20, 2024

Description

  • Improving the heading styling for better visual hierarchy.
  • Refining the grid layout to be more responsive and well-spaced.
  • Adding modern card styling for individual testimonials, including shadows, rounded corners, and hover effects.
  • Highlighting the third testimonial by making it span full width for emphasis.

Before

image

After

image

Related issue(s)
Fixes #3487
Fixes #3498

Summary by CodeRabbit

  • New Features

    • Added a new testimonial entry highlighting the importance of event-driven applications.
  • Improvements

    • Enhanced layout and styling of the testimonials section for better responsiveness and visual appeal.
    • Standardized appearance of individual testimonials with new padding, background, shadow effects, and rounded corners.
  • Bug Fixes

    • Adjusted margins and layout for improved spacing and organization of testimonials.

Copy link

coderabbitai bot commented Dec 20, 2024

Walkthrough

The pull request focuses on improving the testimonials section of the homepage by enhancing its layout and styling. The changes include adjusting the grid layout, standardizing the appearance of testimonial components, and modifying spacing and visual elements. A new testimonial from Jonathan Schabowsky has been added, replacing the previous entry, and the overall design has been refined to create a more consistent and visually appealing presentation.

Changes

File Change Summary
pages/[lang]/index.tsx - Increased heading margin from mb-4 to mb-8
- Modified testimonials grid layout with gap of 8
- Updated Testimonial component styling with p-6, white background, shadow, and rounded corners
- Replaced Jonathan Schabowsky's testimonial with a new entry spanning all columns

Assessment against linked issues

Objective Addressed Explanation
Consistent testimonial alignment [#3487]
Improve visual appeal of expert statements [#3498]

Poem

🐰 Testimonials dance with grace,
Aligned in their newfound space,
Shadows soft, corners round,
A layout that truly astounds!
Rabbit's design, a visual treat! 🎨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Beta)
  • @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.

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

netlify bot commented Dec 20, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit cd73934
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/6765d5e5544a5c00089b514e
😎 Deploy Preview https://deploy-preview-3501--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Kalprajsinh Kalprajsinh changed the title fix: Testimonials alignment on the 'What the experts are saying' section fix: Testimonials alignment on the What the experts are saying section Dec 20, 2024
@Kalprajsinh Kalprajsinh changed the title fix: Testimonials alignment on the What the experts are saying section fix: testimonials alignment on the What the experts are saying section Dec 20, 2024
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 (3)
pages/[lang]/index.tsx (3)

198-198: LGTM: Responsive grid layout with a minor enhancement suggestion

The responsive grid layout effectively handles different screen sizes. Consider adding hover states to enhance interactivity.

-          <ul className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'>
+          <ul className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8 [&>li:hover]:scale-105 [&>li]:transition-transform'>

200-200: Complete the shadow transition effect

The transition-shadow class is defined but no hover state is implemented to utilize this transition.

-              className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
+              className='p-6 bg-white shadow-md hover:shadow-xl border-t rounded-lg transition-shadow'

Also applies to: 207-207, 214-214, 221-221


220-226: Enhance visual hierarchy of the highlighted testimonial

While the testimonial spans full width, consider additional visual enhancements to better distinguish it as a featured testimonial.

-              className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow col-span-full'
+              className='p-6 bg-white shadow-lg border-t-2 border-t-primary-500 rounded-lg transition-shadow col-span-full md:p-8'
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24a52ca and cd73934.

📒 Files selected for processing (1)
  • pages/[lang]/index.tsx (1 hunks)
🔇 Additional comments (1)
pages/[lang]/index.tsx (1)

195-195: LGTM: Improved heading spacing

The increased margin provides better visual separation between the heading and testimonials section.

Comment on lines +198 to +226
<ul className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'>
<Testimonial
className='md:pr-10 lg:pr-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Microservices underline the need for event-based communication in distributed architectures. AsyncAPI brings the richness of the REST API ecosystem to asynchronous APIs.'
authorAvatar='/img/testimonials/matt-mclarty.jpg'
authorName='Matt McLarty'
authorDescription='Global Leader of API Strategy at MuleSoft'
/>
<Testimonial
className='md:pl-10 lg:pl-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Event-driven APIs need love too! AsyncAPI brings the many benefits of a machine/human-readable specification to these nuanced approaches.'
authorAvatar='/img/testimonials/bill-doerrfeld.jpg'
authorName='Bill Doerrfeld'
authorDescription='Editor in Chief at Nordic APIs'
/>
<Testimonial
className='md:pr-10 lg:pr-16'
text="Developers need to be able to quickly and consistently create event-driven applications that provide business value and react to customer needs in realtime. I can't count how many times I've heard developers ask for OpenAPI/Swagger style tools for the asynchronous and event-driven world, and that is exactly what the AsyncAPI initiative is making a reality."
authorAvatar='/img/testimonials/jonathan-schabowsky.jpg'
authorName='Jonathan Schabowsky'
authorDescription='Sr. Architect, Office of the CTO at Solace'
/>
<Testimonial
className='md:pl-10 lg:pl-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='We’ve been focusing on event-driven APIs since 2014 and thank the AsyncAPI contributors every day for driving the community towards common standards.'
authorAvatar='/img/testimonials/eric-horesnyi.jpg'
authorName='Eric Horesnyi'
authorDescription='CEO at Streamdata.io'
/>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow col-span-full'
text="Developers need to be able to quickly and consistently create event-driven applications that provide business value and react to customer needs in realtime. I can't count how many times I've heard developers ask for OpenAPI/Swagger style tools for the asynchronous and event-driven world, and that is exactly what the AsyncAPI initiative is making a reality."
authorAvatar='/img/testimonials/jonathan-schabowsky.jpg'
authorName='Jonathan Schabowsky'
authorDescription='Sr. Architect, Office of the CTO at Solace'
/>
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Enhance accessibility for testimonials section

Consider adding ARIA attributes to improve screen reader experience.

-          <ul className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'>
+          <ul 
+            className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'
+            role="list"
+            aria-label="Customer testimonials"
+          >
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<ul className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'>
<Testimonial
className='md:pr-10 lg:pr-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Microservices underline the need for event-based communication in distributed architectures. AsyncAPI brings the richness of the REST API ecosystem to asynchronous APIs.'
authorAvatar='/img/testimonials/matt-mclarty.jpg'
authorName='Matt McLarty'
authorDescription='Global Leader of API Strategy at MuleSoft'
/>
<Testimonial
className='md:pl-10 lg:pl-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Event-driven APIs need love too! AsyncAPI brings the many benefits of a machine/human-readable specification to these nuanced approaches.'
authorAvatar='/img/testimonials/bill-doerrfeld.jpg'
authorName='Bill Doerrfeld'
authorDescription='Editor in Chief at Nordic APIs'
/>
<Testimonial
className='md:pr-10 lg:pr-16'
text="Developers need to be able to quickly and consistently create event-driven applications that provide business value and react to customer needs in realtime. I can't count how many times I've heard developers ask for OpenAPI/Swagger style tools for the asynchronous and event-driven world, and that is exactly what the AsyncAPI initiative is making a reality."
authorAvatar='/img/testimonials/jonathan-schabowsky.jpg'
authorName='Jonathan Schabowsky'
authorDescription='Sr. Architect, Office of the CTO at Solace'
/>
<Testimonial
className='md:pl-10 lg:pl-16'
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='We’ve been focusing on event-driven APIs since 2014 and thank the AsyncAPI contributors every day for driving the community towards common standards.'
authorAvatar='/img/testimonials/eric-horesnyi.jpg'
authorName='Eric Horesnyi'
authorDescription='CEO at Streamdata.io'
/>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow col-span-full'
text="Developers need to be able to quickly and consistently create event-driven applications that provide business value and react to customer needs in realtime. I can't count how many times I've heard developers ask for OpenAPI/Swagger style tools for the asynchronous and event-driven world, and that is exactly what the AsyncAPI initiative is making a reality."
authorAvatar='/img/testimonials/jonathan-schabowsky.jpg'
authorName='Jonathan Schabowsky'
authorDescription='Sr. Architect, Office of the CTO at Solace'
/>
<ul
className='mx-auto grid max-w-screen-xl gap-8 md:grid-cols-2 lg:grid-cols-3 md:px-6 lg:px-8'
role="list"
aria-label="Customer testimonials"
>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Microservices underline the need for event-based communication in distributed architectures. AsyncAPI brings the richness of the REST API ecosystem to asynchronous APIs.'
authorAvatar='/img/testimonials/matt-mclarty.jpg'
authorName='Matt McLarty'
authorDescription='Global Leader of API Strategy at MuleSoft'
/>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='Event-driven APIs need love too! AsyncAPI brings the many benefits of a machine/human-readable specification to these nuanced approaches.'
authorAvatar='/img/testimonials/bill-doerrfeld.jpg'
authorName='Bill Doerrfeld'
authorDescription='Editor in Chief at Nordic APIs'
/>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow'
text='We've been focusing on event-driven APIs since 2014 and thank the AsyncAPI contributors every day for driving the community towards common standards.'
authorAvatar='/img/testimonials/eric-horesnyi.jpg'
authorName='Eric Horesnyi'
authorDescription='CEO at Streamdata.io'
/>
<Testimonial
className='p-6 bg-white shadow-md border-t rounded-lg transition-shadow col-span-full'
text="Developers need to be able to quickly and consistently create event-driven applications that provide business value and react to customer needs in realtime. I can't count how many times I've heard developers ask for OpenAPI/Swagger style tools for the asynchronous and event-driven world, and that is exactly what the AsyncAPI initiative is making a reality."
authorAvatar='/img/testimonials/jonathan-schabowsky.jpg'
authorName='Jonathan Schabowsky'
authorDescription='Sr. Architect, Office of the CTO at Solace'
/>

@asyncapi-bot
Copy link
Contributor

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 36
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-3501--asyncapi-website.netlify.app/

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.59%. Comparing base (24a52ca) to head (cd73934).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3501   +/-   ##
=======================================
  Coverage   86.59%   86.59%           
=======================================
  Files          21       21           
  Lines         664      664           
=======================================
  Hits          575      575           
  Misses         89       89           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anshgoyalevil
Copy link
Member

The previous design looks more uniform as compared to this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants