Skip to content

A functional React component, stylized with Tailwind CSS, that takes User information gathered from a form and renders a "Testimonial" Card in a Responsive Design flex container that adjusts to different screen sizes.

Notifications You must be signed in to change notification settings

notavailable4u/testimony-card-component

Repository files navigation

Testimonial Card Component - React 19

A functional React component, stylized with Tailwind CSS, that takes User information gathered from a form and renders a "Testimonial" Card in a Responsive Design flex container that adjusts to different screen sizes, ensuring a good user experience across devices.

This project was based on a GreatFrontEnd project to develop a single Testimonial Card based on the Figma Design specifications.. (The source code for my submission on that project can be viewed at this repository:single-testimonial-card )

I created this component, which builds on that concept by adding the ability to generate multiple cards at once, with three choices for color theme, because I wanted to try out the new Form features in React 19 and to practice using Tailwind CSS and building projects with Vite.

Features

  • Renders a card for each user entered via the form which displays the user's profile picture, name, email, and comments.

  • Choice of three color schemes.

  • Component can be easily extended or modified to include additional user information or styling as needed.

  • The profile picture is a placeholder image imported from assets, which can easily be changed to the actual picture.

  • Styled with Tailwind CSS classes for a responsive and modern look.

  • The component uses a dark mode theme with appropriate styling for light and dark backgrounds.

  • The cards are displayed in a flex container that centers them both vertically and horizontally on the page.

  • Responsive Design adjusts to different screen sizes, ensuring a good user experience across devices.

  • Functional component that does not maintain any internal state, making it simple and efficient for rendering static data.

  • Modular design and reusability: component can be imported and used in other applications apps and websites or be used independently to generate code for the cards.

Tech Stack

Installation

  1. Clone the repository
git clone https://github.com/notavailable4u
  1. Navigate to project directory
cd dir
  1. Install Dependencies
npm install
  1. Start the dev server
npm run dev
  1. App will open in your browser at http://localhost:5173

Screenshots

Input Form

Screenshot of Input Form

Input Form - Dark Mode

Screenshot of Input Form Dark Mode

Testimonial Card - Original Theme - Gray Screenshot of Original Theme in Light and Dark Mode

Testimonial Card - Alternate Theme 1 - Blue Screenshot of Blue Theme in Light and Dark Mode

Testimonial Card - Alternate Theme 2 - Green Screenshot of Green Theme in Light and Dark Mode

Pixel 7 Pro Mockup View Screenshot of Pixel 7 Pro Mockup

About

A functional React component, stylized with Tailwind CSS, that takes User information gathered from a form and renders a "Testimonial" Card in a Responsive Design flex container that adjusts to different screen sizes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published