prachit-1999 / jacobsampledemo

0 stars 0 forks source link

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

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:

function Card() {
  return (
    <div style={{
      width: '100%',
      maxWidth: '750px',
      height: '100%',
      maxHeight: '644.8px',
      backgroundColor: '#fefefe',
      borderRadius: '24px',
      boxShadow: '0 4px 32px 0 rgba(63, 64, 79, 0.14)',
      padding: '32px',
      boxSizing: 'border-box'
    }}>
      <div style={{
        width: '100%',
        height: '100%',
        display: 'flex',
        flexDirection: 'column'
      }}>
        <h1 style={{
          fontSize: '32px',
          lineHeight: '40px',
          color: '#2a2c3e',
          margin: '0 0 32px 0'
        }}>Привет!</h1>
        <div style={{
          width: '100%',
          height: '100%',
          display: 'flex',
          flexDirection: 'column',
          gap: '16px'
        }}>
          <p style={{
            fontSize: '18px',
            fontWeight: 500,
            lineHeight: '28px',
            color: '#2a2c3e',
            margin: '0'
          }}>Мы — команда дизайн-системы B2B продуктов Лаборатории Касперского. С этой части начинаем рассказывать о визуальном стиле наших продуктов.</p>
          <p style={{
            fontSize: '18px',
            fontWeight: 500,
            lineHeight: '28px',
            color: '#2a2c3e',
            margin: '0'
          }}>Публиковать будем небольшими порциями, поэтому обязательно подпишись на нас в Figma Community, чтобы не пропустить обновления. Не сдерживайся, ставь лайк, если понравилось.</p>
          <p style={{
            fontSize: '18px',
            fontWeight: 500,
            lineHeight: '28px',
            color: '#2a2c3e',
            margin: '0'
          }}>Будем выкладывать много интересного!</p>
        </div>
        <div style={{
          marginTop: '24px',
          display: 'flex',
          justifyContent: 'center',
          alignItems: 'center'
        }}>
          {/* Midori Group */}
          <div style={{
            width: '338px',
            height: '292.8px',
            position: 'relative'
          }}>
            {/* Vectors and Groups */}
            {/* Add the appropriate SVG or Vector components here */}
            {/* Example: */}
            {/* <Vector style={{ position: 'absolute', top: '320px', left: '365.8px', width: '59.33px', height: '66.7px', backgroundColor: '#ffe810' }} /> */}
          </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.

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-zSUlCbF56rHS/src'