prachit-1999 / jacobsampledemo

0 stars 0 forks source link

Update the design for src/components/SAMPLE.tsx #8

Closed jacob-ai-bot[bot] closed 3 months ago

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

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

<div style={{ width: '100%', height: '100%', backgroundColor: '#fff' }}>
  <div style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', padding: '36px 0' }}>
    <div style={{ width: '241px', height: '63px', backgroundColor: '#3f3be1', borderRadius: '8px', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
      <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', textTransform: 'capitalize', color: '#fff' }}>Free UI Kit</span>
    </div>
    <div style={{ width: '241px', height: '63px', backgroundColor: '#3f3be1', borderRadius: '8px', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
      <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', textTransform: 'capitalize', color: '#fff' }}>Free UI Kit</span>
    </div>
    <div style={{ width: '241px', height: '63px', backgroundColor: '#3f3be1', borderRadius: '8px', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
      <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', textTransform: 'capitalize', color: '#fff' }}>Free UI Kit</span>
    </div>
    <div style={{ width: '241px', height: '63px', backgroundColor: '#3f3be1', borderRadius: '8px', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
      <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', textTransform: 'capitalize', color: '#fff' }}>Free UI Kit</span>
    </div>
    <div style={{ width: '241px', height: '63px', backgroundColor: '#3f3be1', borderRadius: '8px', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
      <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', textTransform: 'capitalize', color: '#fff' }}>Free UI Kit</span>
    </div>
  </div>
  <img src="/images/b43a871d87b92be2cfc046e3a74674be70764b7e.jpg" style={{ width: '307px', height: '307px', margin: '30px 0' }} />
  <div style={{ padding: '0 30px' }}>
    <p style={{ fontSize: '20px', lineHeight: '28px', color: '#000' }}>
      Hi! My name is Azamat, and I am a passionate web designer with a keen eye for detail and creativity. I have a strong knowledge in web design, allowing me to create visually stunning and user-friendly websites. I love collaborating with clients to bring their vision to life and create a unique online presence for their brand. My goal is to always create designs that not only look great but also effectively communicate the client's message. I am dedicated to providing top-notch design solutions and exceeding client expectations.
    </p>
    <p style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', color: '#0085f9' }}>
      This UI Kit I made during my work on my personal project, you can use it for free! Also subscribe and follow to my Instagram and Behance.
    </p>
    <div style={{ display: 'flex', alignItems: 'center' }}>
      <img src="/images/53a07f755b9afc3451ad88ccb4b871389711c55e.jpg" style={{ width: '26px', height: '26px', marginRight: '10px' }} />
      <span style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', textDecoration: 'underline', color: '#000' }}>Instagram</span>
      <img src="/images/42eb309d72c6375f9b5da4993ff0761598c5c5ba.jpg" style={{ width: '26px', height: '26px', margin: '0 10px' }} />
      <span style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', textDecoration: 'underline', color: '#000' }}>Behance</span>
    </div>
  </div>
  <div style={{ width: '100%', height: '60px', border: '3px solid #bab9fc', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
    <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '44px', color: '#3f3be1' }}>Navigation is clickable</span>
  </div>
  <div style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', padding: '20px 55px' }}>
    <div style={{ width: '256px', height: '640px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Component</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Tag</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Accordion</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Button</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Checkbox</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Radio</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Modal</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Notification</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Switch</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Textarea</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Dropdown</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Select</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Tab</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Menu</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Input</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Table</span>
      </div>
    </div>
    <div style={{ width: '256px', height: '160px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Style</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Typography</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Color</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Effect</span>
      </div>
    </div>
    <div style={{ width: '256px', height: '80px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Layout</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>12 column</span>
      </div>
    </div>
    <div style={{ width: '256px', height: '120px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Icon</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Feather icons</span>
      </div>
      <div style={{ width: '256px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '40px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Phosphor icons</span>
      </div>
    </div>
  </div>
</div>
import { AccessAlarm } from '@material-ui/icons';
const element = <AccessAlarm />
  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 3 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 3 months ago

Unfortunately, I ran into trouble working on this.

Here is some error information:

Command failed: npm run build

> jacobsampledemo@0.1.0 build
> react-scripts build

Creating an optimized production build...
Failed to compile.

Module not found: Error: Can't resolve './Components/SAMPLE' in '/mnt/tmp/tmp-98-Ull59rzCBmn1/src'