pixelperfectdivami / sample_Jacob_project

0 stars 0 forks source link

Create new file => src/pages/Profile_1.tsx #4

Open jacob-ai-bot[bot] opened 1 week ago

jacob-ai-bot[bot] commented 1 week ago

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

<div className="w-full h-screen bg-gray-100">
  <div className="shadow-md bg-white">
    <div className="flex justify-between items-center px-6 py-2">
      <img src="/images/9e3b9a52ca5a52135e32366ded420aea9cdbf8e4.jpg" alt="Logo" className="w-24 h-10" />
      <div className="flex items-center space-x-4">
        {/* Notification Icon */}
        <div className="w-9 h-9 rounded-full bg-gray-300 flex items-center justify-center">
          {/* Notification SVG Icon */}
        </div>
        <img src="/images/ba1f32d7bf4558ff5c63681db4a279740e951202.jpg" alt="Profile" className="w-8 h-8 rounded-full" />
        {/* Menu Icon */}
        <div className="w-10 h-10 flex flex-col justify-center space-y-1">
          {/* Menu SVG Lines */}
        </div>
      </div>
    </div>
  </div>
  <div className="px-8 py-4">
    <h2 className="text-xl text-gray-700">Profile Details</h2>
    <div className="flex space-x-8 mt-4">
      <div className="w-1/4 bg-white shadow-md rounded-lg p-4">
        <div className="flex flex-col items-center">
          <img src="/images/ba1f32d7bf4558ff5c63681db4a279740e951202.jpg" alt="Profile" className="w-32 h-32 rounded-full" />
          <h3 className="text-lg text-gray-800 mt-4">Mathew Thomas</h3>
          <p className="text-sm text-gray-600">28 yr | Male</p>
        </div>
        <div className="border-t border-gray-200 my-4"></div>
        <div className="flex items-center space-x-2">
          {/* Email Icon */}
          <p className="text-sm text-gray-800">matt.mathew@gmail.com</p>
        </div>
        <div className="flex items-center space-x-2 mt-2">
          {/* Phone Icon */}
          <p className="text-sm text-gray-800">626-358-7271</p>
        </div>
        <div className="flex items-center space-x-2 mt-2">
          {/* Address Icon */}
          <p className="text-sm text-gray-800">Maria A Mendoza De Zuniga, 2929 SW 19th St Oklahoma City, OK 73108-4410</p>
        </div>
        <div className="flex space-x-4 mt-4">
          <button className="w-1/2 py-2 border border-gray-600 rounded-full shadow-md text-gray-600">Edit</button>
          <button className="w-1/2 py-2 border border-gray-600 rounded-full shadow-md text-gray-600">Change Password</button>
        </div>
      </div>
      <div className="w-3/4">
        <h2 className="text-xl text-gray-700">Setting and Preferences</h2>
        <div className="border-t border-gray-200 mt-2"></div>
        <div className="mt-4">
          <h3 className="text-lg text-gray-800">Language</h3>
          <p className="text-sm text-gray-600">Select Language you are comfortable with</p>
          <div className="flex items-center mt-2 bg-gray-200 rounded-md p-2">
            <span className="text-base text-gray-800">English</span>
            {/* Dropdown Icon */}
          </div>
        </div>
        <div className="mt-6">
          <h3 className="text-lg text-gray-800">Notifications</h3>
          <p className="text-sm text-gray-600">Let us know how and when you would like to be notified</p>
          <div className="flex mt-4">
            <div className="w-1/4">
              <h4 className="text-sm text-gray-800">Scenarios</h4>
              <div className="mt-2">
                <p className="text-sm text-gray-800">Policy Updates</p>
                <p className="text-sm text-gray-800">Payment Reminder</p>
                <p className="text-sm text-gray-800">Claim Updates</p>
                <p className="text-sm text-gray-800">News and Blogs</p>
              </div>
            </div>
            <div className="w-1/4">
              <h4 className="text-sm text-gray-800">Via Mail</h4>
              <div className="mt-2">
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
              </div>
            </div>
            <div className="w-1/4">
              <h4 className="text-sm text-gray-800">Via SMS</h4>
              <div className="mt-2">
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
              </div>
            </div>
            <div className="w-1/4">
              <h4 className="text-sm text-gray-800">Push Notification</h4>
              <div className="mt-2">
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
                {/* Checkbox */}
              </div>
            </div>
          </div>
          <div className="flex justify-end mt-4">
            <div className="flex items-center">
              <span className="text-sm text-gray-800">Enable All</span>
              {/* Toggle Switch */}
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div className="bg-gray-200 py-4 mt-8">
    <div className="flex justify-between items-center px-8">
      <p className="text-sm text-gray-700">© 2024 Smart IMS. All rights reserved.</p>
      <div className="flex space-x-4">
        <a href="#" className="text-sm text-gray-700">Terms of Service</a>
        <a href="#" className="text-sm text-gray-700">Privacy Policy</a>
      </div>
    </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. image image image

jacob-ai-bot[bot] commented 1 week 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 1 week ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

Command failed: npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /mnt/tmp/tmp-103-PIMHGxxRyEod/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/mnt/tmp/tmp-103-PIMHGxxRyEod/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /opt/render/.cache/_logs/2024-09-16T10_41_05_015Z-debug-0.log