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

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="bg-white w-[720px] h-[900px]">
      <div className="absolute top-[115px] left-[149px] w-[421px] h-[666px]">
        <button className="bg-blue-600 rounded-md shadow w-full h-11 flex justify-center items-center">
          <span className="text-white font-bold text-lg">Pay with PayPal</span>
        </button>
        <div className="mt-19 flex flex-col items-center">
          <span className="text-gray-500 text-lg">Or pay with card</span>
          <div className="flex w-full justify-between mt-3">
            <div className="w-1/3 border-t border-gray-300"></div>
            <div className="w-1/3 border-t border-gray-300"></div>
          </div>
        </div>
        <div className="mt-11">
          <label className="block text-gray-600 font-bold text-sm">Email</label>
          <input type="text" className="mt-1 w-full h-10 bg-white border border-gray-300 rounded-lg shadow-sm" />
        </div>
        <div className="mt-20">
          <label className="block text-gray-600 font-bold text-sm">Card Details</label>
          <input type="text" placeholder="1234 1234 1234 1234" className="mt-1 w-full h-10 bg-white border border-gray-300 rounded-t-lg shadow-sm" />
          <div className="flex">
            <input type="text" placeholder="MM / YY" className="w-1/2 h-10 bg-white border border-gray-300 border-r-0 rounded-bl-lg shadow-sm" />
            <input type="text" placeholder="CVC" className="w-1/2 h-10 bg-white border border-gray-300 rounded-br-lg shadow-sm" />
          </div>
        </div>
        <div className="mt-28">
          <label className="block text-gray-600 font-bold text-sm">Name on card</label>
          <input type="text" className="mt-1 w-full h-10 bg-white border border-gray-300 rounded-lg shadow-sm" />
        </div>
        <div className="mt-20">
          <label className="block text-gray-600 font-bold text-sm">Country or region</label>
          <select className="mt-1 w-full h-10 bg-white border border-gray-300 rounded-t-lg shadow-sm">
            <option>United States</option>
          </select>
          <input type="text" placeholder="ZIP" className="mt-1 w-full h-10 bg-white border border-gray-300 rounded-b-lg shadow-sm" />
        </div>
        <button className="mt-20 bg-blue-900 rounded-md shadow w-full h-12 flex justify-center items-center">
          <span className="text-white font-bold text-lg">Checkout</span>
        </button>
      </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.