Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jacob-ai-bot bot opened this issue May 28, 2024 · 2 comments
Closed

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

jacob-ai-bot bot opened this issue May 28, 2024 · 2 comments
Assignees

Comments

@jacob-ai-bot
Copy link
Contributor

jacob-ai-bot bot commented May 28, 2024

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: '360px', height: '176px', backgroundColor: '#fff', borderRadius: '8px', overflow: 'hidden', boxShadow: '0 2px 4px rgba(0, 0, 0, 0.1)' }}>
  <div style={{ backgroundColor: '#0052cc', padding: '16px', display: 'flex', alignItems: 'center' }}>
    <div style={{ flexGrow: 1 }}>
      <img src="/images/logo.png" alt="Jira Logo" style={{ height: '24px' }} />
    </div>
  </div>
  <div style={{ padding: '16px' }}>
    <div style={{ display: 'flex', alignItems: 'center', padding: '8px 0' }}>
      <img src="/images/icon-design.png" alt="Design Icon" style={{ height: '16px', marginRight: '8px' }} />
      <span style={{ fontSize: '14px', color: '#172b4d' }}>Create issue from design</span>
    </div>
    <div style={{ display: 'flex', alignItems: 'center', padding: '8px 0' }}>
      <img src="/images/icon-import.png" alt="Import Icon" style={{ height: '16px', marginRight: '8px' }} />
      <span style={{ fontSize: '14px', color: '#172b4d' }}>Import an issue or project</span>
    </div>
  </div>
</div>
  • @jacob-ai-bot Here are your instructions for updating the codebase:
  1. Use the details in the code above to update the file. Note that the code is not guaranteed to be perfect, so you may need to make some adjustments.
  2. The code above is from the design team and will likely have placeholder text. Find the places where the placeholder text will need to be replaced by the real data from the code.
  3. There may be some data or features that are shown in the designs that are not in the existing code. These are likely new features that need to be added but they might just be from the design and not needed.
  4. Do your best to make the code match the design as closely as possible. Bias towards using flexbox vs hardcoding widths or heights.
  5. There may be icons or images in the design. These will need to be replaced with the real icons or images.
  6. You can use the Material UI icon kit to add icons. Here is some example code of how to use it:
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.

Copy link
Contributor Author

jacob-ai-bot bot commented May 28, 2024

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.

Copy link
Contributor Author

jacob-ai-bot bot commented May 28, 2024

Update

I've completed my work on this issue and have created a pull request: JACoB PR for Issue Update the design for src/components/SAMPLE.tsx.

Please review my changes there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant