PioneerSquareLabs / jacb-ai-website

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

Create new file => src/components/Checkout.tsx #117

Closed jacob-local-kevin[bot] closed 4 months ago

jacob-local-kevin[bot] commented 4 months ago

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

function Checkout() {
  return (
    <div className="w-full h-full bg-white flex justify-center items-center">
      <div className="w-[421px] h-[666px]">
        <div className="w-full h-[44px] bg-blue-600 rounded-md shadow-md flex justify-center items-center">
          <p className="text-white font-bold text-lg">Pay with PayPal</p>
        </div>
        <div className="flex flex-col items-center mt-6">
          <p className="text-gray-500 text-lg">Or pay with card</p>
          <div className="flex mt-2">
            <div className="w-[139px] h-px bg-gray-200"></div>
            <div className="w-[140px] h-px bg-gray-200"></div>
          </div>
        </div>
        <div className="mt-4">
          <p className="text-sm font-bold text-gray-600">Email</p>
          <div className="mt-2 w-full h-[40px] bg-white border border-gray-300 rounded-md shadow-sm"></div>
        </div>
        <div className="mt-4">
          <p className="text-sm font-bold text-gray-600">Card Details</p>
          <div className="mt-2 w-full h-[40px] bg-white border border-gray-300 rounded-t-md shadow-sm">
            <p className="text-lg text-gray-500 pl-2">1234 1234 1234 1234</p>
          </div>
          <div className="flex justify-between items-center px-2 mt-2">
            <div className="w-[211px] h-[40px] bg-white border border-gray-300 rounded-bl-md"></div>
            <div className="w-[210px] h-[40px] bg-white border border-gray-300 rounded-br-md"></div>
          </div>
        </div>
        <div className="mt-4">
          <p className="text-sm font-bold text-gray-600">Name on card</p>
          <div className="mt-2 w-full h-[40px] bg-white border border-gray-300 rounded-md shadow-sm"></div>
        </div>
        <div className="mt-4">
          <p className="text-sm font-bold text-gray-600">Country or region</p>
          <div className="mt-2 w-full h-[40px] bg-white border border-gray-300 rounded-t-md shadow-sm">
            <p className="text-lg text-gray-900 pl-2">United States</p>
          </div>
          <div className="w-full h-[40px] bg-white border border-gray-300 rounded-b-md shadow-sm">
            <p className="text-lg text-gray-500 pl-2">ZIP</p>
          </div>
        </div>
        <div className="mt-4 w-full h-[48px] bg-blue-900 rounded-md shadow-md flex justify-center items-center">
          <p className="text-white font-bold text-xl">Checkout</p>
        </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 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.

jacob-local-kevin[bot] commented 4 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-local-kevin[bot] commented 4 months ago

Update

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

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

jacob-local-kevin[bot] commented 4 months ago

Update

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

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

jacob-local-kevin[bot] commented 4 months ago

Update

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

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

jacob-local-kevin[bot] commented 4 months ago

Update

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

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