kleneway / jacb-ai-website

The jacb.ai marketing website
https://www.jacb.ai
MIT License
0 stars 0 forks source link

Create new file => /src/components/Testimonial_jklfdsk.tsx #39

Open jacob-ai-bot[bot] opened 2 months ago

jacob-ai-bot[bot] commented 2 months ago

A new design has been added to Figma for the file /src/components/Testimonial_jklfdsk.tsx. The design was converted into JSX. Here is what was provided:

```jsx
function Testimonial() {
  return (
    <div className="w-full bg-white flex flex-col items-center py-16">
      <div className="text-center mb-8">
        <p className="text-base text-blue-600">3940+ Happy Landingfolio Users</p>
        <h2 className="text-4xl font-bold text-gray-900 mt-2">Don’t just take our words</h2>
      </div>
      <div className="flex flex-col md:flex-row justify-center gap-8">
        <Quote
          imageUrl="/images/19f20f0750b4e198d5ba9d67a1acfa203715a7e4.jpg"
          rating={5}
          quote="We love Landingfolio! Our designers were using it for their projects, so we already knew what kind of design they want."
          name="Jenny Wilson"
          website="Grower.io"
        />
        <Quote
          imageUrl="/images/8cdcee1f5525376b47bcf91a5f80c99d6819e17e.jpg"
          rating={5}
          quote="We love Landingfolio! Our designers were using it for their projects, so we already knew what kind of design they want."
          name="Devon Lane"
          website="DLDesign.co"
        />
      </div>
    </div>
  );
}

function Quote({ imageUrl, rating, quote, name, website }) {
  return (
    <div className="flex flex-col md:flex-row bg-white rounded-lg shadow-lg p-6 max-w-md">
      <img src={imageUrl} alt={name} className="w-24 h-24 md:w-32 md:h-32 rounded-lg object-cover mr-6" />
      <div className="flex flex-col justify-between">
        <div className="flex items-center mb-2">
          {[...Array(rating)].map((_, i) => (
            <span key={i} className="text-blue-600">
              ★
            </span>
          ))}
        </div>
        <p className="text-lg text-gray-900 mb-4">{quote}</p>
        <div className="text-sm text-gray-900 font-semibold">{name}</div>
        <div className="text-sm text-gray-500">{website}</div>
      </div>
    </div>
  );
}
```
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEnvelope } from '@fortawesome/free-solid-svg-icons'
const element = <FontAwesomeIcon icon={faEnvelope} />
  1. For images, the figma code will likely list the image name. This image has already been saved to the public folder. You must use that image as the source for the image tag.
  2. IMPORTANT: The design team did not wire up any of the buttons or links, they assigned that critical task to you. You MUST implement the code to handle the click events.

Here are some important additional instructions from the product owner. You MUST follow these instructions, even if it means adjusting the JSX code provided above: Create a separate, sub-component called “Quote”. It should take in an imageUrl, rating, quote, name and website. Hardcode the information for these two users in the Testimonial component. Also make the number of “Happy Landingfolio Users” dynamic (but use 3490 as the default for now

Here is a temporary snapshot of your design. It will expire in 60 minutes for security purposes. snapshot

Here are the images from your design. These images will be downloaded to this branch and these links will expire in 60 minutes for security purposes. image image

jacob-ai-bot[bot] commented 2 months ago

JACoB here...

You mentioned me on this issue and I am busy taking a look at it.

I'll continue to comment on this issue with status as I make progress.

jacob-ai-bot[bot] commented 2 months ago

Update

I've completed my initial work on this issue and have created a pull request: Create /src/components/Testimonial_jklfdsk.tsx.

I will update this PR with a storybook story for this component.

jacob-ai-bot[bot] commented 2 months ago

Update

I've completed my work on this issue and have updated this pull request: Create /src/components/Testimonial_jklfdsk.tsx.

Please review my changes there.

jacob-ai-bot[bot] commented 2 months ago

Update

I've updated this pull request: Create /src/components/Testimonial_jklfdsk.tsx.

The changes currently result in an error, so I'll be making some additional changes before it is ready to merge.

jacob-ai-bot[bot] commented 2 months ago

Update

I've completed my work on this issue and have updated this pull request: Create /src/components/Testimonial_jklfdsk.tsx.

Please review my changes there.