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 #124

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-screen bg-white flex justify-center items-center">
      <div className="w-[421px] h-[666px]">
        <div className="w-full h-11 bg-blue-600 rounded-md shadow-md flex justify-center items-center">
          <p className="text-white text-lg font-bold">Pay with PayPal</p>
        </div>
        <div className="mt-8 flex flex-col items-center">
          <p className="text-gray-500 text-lg">Or pay with card</p>
          <div className="flex w-full justify-between mt-1">
            <div className="w-1/3 border-t border-gray-200"></div>
            <div className="w-1/3 border-t border-gray-200"></div>
          </div>
        </div>
        <div className="mt-7">
          <p className="text-gray-600 text-sm font-bold">Email</p>
          <div className="mt-1 w-full h-10 bg-white border border-gray-200 rounded-md shadow-sm"></div>
        </div>
        <div className="mt-10">
          <p className="text-gray-600 text-sm font-bold">Card Details</p>
          <div className="mt-1 w-full h-10 bg-white border border-gray-200 rounded-t-md shadow-sm"></div>
          <div className="flex justify-between mt-2">
            <div className="w-1/2 bg-white h-10 border border-gray-200 rounded-bl-md shadow-sm"></div>
            <div className="w-1/2 bg-white h-10 border border-gray-200 rounded-br-md shadow-sm"></div>
          </div>
        </div>
        <div className="mt-10">
          <p className="text-gray-600 text-sm font-bold">Name on card</p>
          <div className="mt-1 w-full h-10 bg-white border border-gray-200 rounded-md shadow-sm"></div>
        </div>
        <div className="mt-10">
          <p className="text-gray-600 text-sm font-bold">Country or region</p>
          <div className="mt-1 w-full h-10 bg-white border border-gray-200 rounded-t-md shadow-sm"></div>
          <div className="w-full h-10 bg-white border border-gray-200 rounded-b-md shadow-sm"></div>
        </div>
        <div className="mt-10 w-full h-12 bg-purple-800 rounded-md shadow-md flex justify-center items-center">
          <p className="text-white text-xl font-bold">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 completed my work on this issue and have updated this pull request: Create src/components/Checkout.tsx.

Please review my changes there.