prachit-1999 / jacobsampledemo

0 stars 0 forks source link

Create new file => /src/components/Test.tsx #6

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

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

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

<div style={{ width: '100%', height: '100%', backgroundColor: '#fff', display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
  <div style={{ width: '100%', height: '60px', borderBottom: '3px solid #bab9fc', display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: '0 40px' }}>
    <div style={{ fontSize: '36px', fontWeight: 500, lineHeight: '44px', color: '#3f3be1' }}>Style</div>
    <div style={{ display: 'flex', alignItems: 'center' }}>
      <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', color: '#3f3be1', marginRight: '10px' }}>Go to menu</div>
      {/* Vector Icon for ArrowBendRightUp */}
    </div>
  </div>
  <div style={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-between', padding: '40px' }}>
    <div style={{ width: '562px', backgroundColor: '#fff', borderRadius: '12px', boxShadow: '0 4px 13.7px 0 rgba(0, 0, 0, 0.1)', padding: '40px' }}>
      <div style={{ fontSize: '28px', fontWeight: 500, lineHeight: '36px', color: '#000' }}>Typography</div>
      <div style={{ fontSize: '28px', fontWeight: 500, lineHeight: '36px', color: '#000', marginTop: '95px' }}>We used front - Inter</div>
      <div style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', color: '#000', marginTop: '70px' }}>Body Text</div>
      <div style={{ display: 'flex', flexDirection: 'row', marginTop: '34px' }}>
        <div style={{ width: '204px', height: '40px', backgroundColor: '#c2c2c2', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
          <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', color: '#424242' }}>Regular</div>
        </div>
        <div style={{ width: '204px', height: '40px', backgroundColor: '#c2c2c2', display: 'flex', alignItems: 'center', padding: '0 16px', marginLeft: '16px' }}>
          <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', color: '#424242' }}>Medium</div>
        </div>
      </div>
      <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
        <div style={{ width: '204px', height: '36px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
          <div style={{ fontSize: '12px', lineHeight: '16px', color: '#424242' }}>12 px Text Example</div>
        </div>
        <div style={{ width: '204px', height: '36px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginLeft: '16px' }}>
          <div style={{ fontSize: '12px', fontWeight: 500, lineHeight: '16px', color: '#424242' }}>12 px Text Example</div>
        </div>
      </div>
      <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
        <div style={{ width: '204px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
          <div style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>14 px Text Example</div>
        </div>
        <div style={{ width: '204px', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginLeft: '16px' }}>
          <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', color: '#424242' }}>14 px Text Example</div>
        </div>
      </div>
      <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
        <div style={{ width: '204px', height: '44px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
          <div style={{ fontSize: '16px', lineHeight: '24px', color: '#424242' }}>16 px Text Example</div>
        </div>
        <div style={{ width: '204px', height: '44px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginLeft: '16px' }}>
          <div style={{ fontSize: '16px', fontWeight: 500, lineHeight: '24px', color: '#424242' }}>16 px Text Example</div>
        </div>
      </div>
      <div style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', color: '#000', marginTop: '112px' }}>Header Text</div>
      <div style={{ width: '408px', marginTop: '34px' }}>
        <div style={{ width: '408px', height: '40px', backgroundColor: '#c2c2c2', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
          <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', color: '#424242' }}>Medium</div>
        </div>
        <div style={{ width: '408px', height: '48px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginTop: '10px' }}>
          <div style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', color: '#424242' }}>20 px Text Example</div>
        </div>
        <div style={{ width: '408px', height: '56px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginTop: '10px' }}>
          <div style={{ fontSize: '28px', fontWeight: 500, lineHeight: '36px', color: '#424242' }}>28 px Text Example</div>
        </div>
        <div style={{ width: '408px', height: '64px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', padding: '0 16px', marginTop: '10px' }}>
          <div style={{ fontSize: '36px', fontWeight: 500, lineHeight: '44px', color: '#424242' }}>36 px Text Example</div>
        </div>
      </div>
    </div>
    <div style={{ width: '904px', backgroundColor: '#fff', borderRadius: '12px', boxShadow: '0 4px 13.7px 0 rgba(0, 0, 0, 0.1)', padding: '40px' }}>
      <div style={{ fontSize: '28px', fontWeight: 500, lineHeight: '36px', color: '#000' }}>Color</div>
      <div style={{ width: '840px', marginTop: '89px', boxShadow: '0 4px 13.7px 0 rgba(0, 0, 0, 0.1)', padding: '0 40px' }}>
        <div style={{ display: 'flex', flexDirection: 'row', height: '59px' }}>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}></div>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', color: '#000' }}>Main</div>
          </div>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', color: '#000' }}>Info</div>
          </div>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', color: '#000' }}>Danger</div>
          </div>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', color: '#000' }}>Warning</div>
          </div>
          <div style={{ width: '140px', height: '59px', backgroundColor: '#f5f5f5', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ fontSize: '14px', fontWeight: 500, lineHeight: '20px', textAlign: 'center', color: '#000' }}>Success</div>
          </div>
        </div>
        <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
            <div style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Pressed</div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#151280' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#30526a' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#560c0c' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#5f541a' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#072c0f' }}></div>
          </div>
        </div>
        <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
            <div style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Hover</div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#3431bb' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#5189b1' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#901515' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#9f8d2c' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#0c4a1a' }}></div>
          </div>
        </div>
        <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
            <div style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Default</div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#3f3be1' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#61a3d4' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#ad1919' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#bfa935' }}></div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#0f591f' }}></div>
          </div>
        </div>
        <div style={{ display: 'flex', flexDirection: 'row', marginTop: '10px' }}>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', padding: '0 16px' }}>
            <div style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Border</div>
          </div>
          <div style={{ width: '140px', height: '40px', backgroundColor: '#fff', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            <div style={{ width: '28px', height: '23.06px', backgroundColor: '#9a99e6' }}></
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.

jacob-ai-bot[bot] commented 5 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 5 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-A6iqPfF0oKqf/src'