prachit-1999 / jacobsampledemo

0 stars 0 forks source link

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

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/SAMPLE.tsx. The design was converted into JSX. Here is what was provided:

function Thumbnail() {
  return (
    <div style={{ width: '100%', height: '100vh', backgroundColor: '#3f3be1', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }}>
      <img src="/images/2c3486efbf4298a1422dc6bbe8864a66248ab891.jpg" style={{ position: 'absolute', top: '-207px', left: '786px', width: '1753px', height: '1970px' }} />
      <div style={{ position: 'absolute', top: '96px', left: '136px', width: '180px', height: '180px', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
        <div style={{ width: '180px', height: '180px', backgroundColor: '#fff', borderRadius: '30px', position: 'absolute' }}></div>
        <img src="/images/c0b43593d57971541be796c6974868709a1b610b.jpg" style={{ width: '120px', height: '120px', position: 'absolute', top: '30px', left: '30px' }} />
      </div>
      <div style={{ position: 'absolute', top: '342px', left: '136px', fontSize: '120px', lineHeight: '20px', color: '#fff' }}>
        Free UI Kit
      </div>
      <div style={{ position: 'absolute', top: '556px', left: '136px', width: '292px', height: '229px' }}>
        <div style={{ display: 'flex', alignItems: 'center', marginBottom: '14px' }}>
          <div style={{ width: '52px', height: '52px', backgroundColor: '', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            {/* Vector icon here */}
          </div>
          <div style={{ marginLeft: '16px', fontSize: '40px', fontWeight: '500', lineHeight: '20px', color: '#fff' }}>
            Style
          </div>
        </div>
        <div style={{ display: 'flex', alignItems: 'center', marginBottom: '14px' }}>
          <div style={{ width: '52px', height: '52px', backgroundColor: '', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            {/* Vector icon here */}
          </div>
          <div style={{ marginLeft: '16px', fontSize: '40px', fontWeight: '500', lineHeight: '20px', color: '#fff' }}>
            Component
          </div>
        </div>
        <div style={{ display: 'flex', alignItems: 'center', marginBottom: '14px' }}>
          <div style={{ width: '52px', height: '52px', backgroundColor: '', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            {/* Vector icon here */}
          </div>
          <div style={{ marginLeft: '16px', fontSize: '40px', fontWeight: '500', lineHeight: '20px', color: '#fff' }}>
            Auto layout
          </div>
        </div>
        <div style={{ display: 'flex', alignItems: 'center' }}>
          <div style={{ width: '52px', height: '52px', backgroundColor: '', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
            {/* Vector icon here */}
          </div>
          <div style={{ marginLeft: '16px', fontSize: '40px', fontWeight: '500', lineHeight: '20px', color: '#fff' }}>
            Variant
          </div>
        </div>
      </div>
      <img src="/images/2e8a02f51d623989ab925a43170d55136f298273.jpg" style={{ position: 'absolute', top: '594px', left: '537px', width: '491.46px', height: '491.46px' }} />
    </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-IEeGa7IMtz4n/src'