prachit-1999 / jacobsampledemo

0 stars 0 forks source link

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

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%', backgroundColor: '#fff', padding: '20px' }}>
  <div style={{ display: 'flex', justifyContent: 'center', marginBottom: '20px' }}>
    <div style={{ display: 'flex', gap: '20px' }}>
      <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>
  </div>
  <div style={{ display: 'flex', gap: '20px', marginBottom: '20px' }}>
    <img src="/images/b43a871d87b92be2cfc046e3a74674be70764b7e.jpg" alt="Profile" style={{ width: '307px', height: '307px' }} />
    <div>
      <p style={{ fontSize: '20px', lineHeight: '28px', color: '#000', marginBottom: '20px' }}>
        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', marginBottom: '20px' }}>
        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', gap: '10px' }}>
        <img src="/images/53a07f755b9afc3451ad88ccb4b871389711c55e.jpg" alt="Instagram Icon" style={{ width: '26px', height: '26px' }} />
        <span style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', textDecoration: 'underline', color: '#000' }}>Instagram</span>
        <img src="/images/42eb309d72c6375f9b5da4993ff0761598c5c5ba.jpg" alt="Behance Icon" style={{ width: '26px', height: '26px' }} />
        <span style={{ fontSize: '20px', fontWeight: 500, lineHeight: '28px', textDecoration: 'underline', color: '#000' }}>Behance</span>
      </div>
    </div>
  </div>
  <div style={{ width: '100%', height: '60px', border: '3px solid #bab9fc', display: 'flex', alignItems: 'center', paddingLeft: '40px', marginBottom: '20px' }}>
    <span style={{ fontSize: '36px', fontWeight: 500, lineHeight: '44px', color: '#3f3be1' }}>Navigation is clickable</span>
  </div>
  <div style={{ display: 'flex', gap: '20px', flexWrap: 'wrap' }}>
    <div style={{ width: '256px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Component</span>
        {/* Feather Icons/database */}
        {/* Feather Icons/chevron-up */}
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Tag</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Accordion</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Button</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Checkbox</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Radio</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Modal</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Notification</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Switch</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Textarea</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Dropdown</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Select</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Tab</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Menu</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Input</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Table</span>
      </div>
    </div>
    <div style={{ width: '256px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Style</span>
        {/* Feather Icons/droplet */}
        {/* Feather Icons/chevron-up */}
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Typography</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Color</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Effect</span>
      </div>
    </div>
    <div style={{ width: '256px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Layout</span>
        {/* Feather Icons/layout */}
        {/* Feather Icons/chevron-up */}
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>12 column</span>
      </div>
    </div>
    <div style={{ width: '256px', boxShadow: '0 4px 8px 0 rgba(0, 0, 0, 0.1)' }}>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#3f3be1', borderRadius: '4px 4px 0 0', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#fff' }}>Icon</span>
        {/* Feather Icons/smile */}
        {/* Feather Icons/chevron-up */}
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <span style={{ fontSize: '14px', lineHeight: '20px', color: '#424242' }}>Feather icons</span>
      </div>
      <div style={{ width: '100%', height: '40px', backgroundColor: '#fff', border: '1px solid #ececec', display: 'flex', alignItems: 'center', paddingLeft: '16px' }}>
        <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 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-6JQrhVJr2lyc/src'