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

Create new file => src/pages/NewFile002.tsx #844

Open
otto-ai-app bot opened this issue Nov 3, 2023 · 7 comments
Open

Create new file => src/pages/NewFile002.tsx #844

otto-ai-app bot opened this issue Nov 3, 2023 · 7 comments
Assignees

Comments

@otto-ai-app
Copy link

otto-ai-app bot commented Nov 3, 2023

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

import React from 'react';

const FigMLComponent = () => {
  return (
    <div className="w-80 h-80 p-0">
      <div className="w-80 h-80 bg-gray-300">
        <p className="mt-20 ml-3 text-sm text-blue-700">Header</p>
        <div className="mt-3 ml-14 w-28 h-5 bg-red-700"></div>
      </div>
    </div>
  );
}

export default FigMLComponent;
  • @otto Here are your instructions for creating the new file:
  1. Create a new file with the name src/pages/NewFile002.tsx.
  2. Copy the code above into the new file.
  3. Write additional code as needed to create the complete, working component or file. Note that the code is not guaranteed to be perfect, so you may need to make some adjustments. Specifically, ONLY use valid TailwindCSS classes. For arbitrary values, convert to standard TailwindCSS classes as often as possible. Use the custom Tailwind.config color names if there is an exact match.
  4. 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.
  5. Be sure to create any functions or other code that is needed to make the component work.
  6. Do your best to make the code match the design as closely as possible. Bias towards using flexbox and other modern TailwindCSS features vs hardcoding widths or heights.
  7. There may be icons or images in the design. These will need to be replaced with the real icons or images.
  8. You can use the FontAwesome icon kit to add icons. Here is some example code of how to use it:

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEnvelope } from '@fortawesome/free-solid-svg-icons'
const element =

  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.
Copy link
Author

otto-ai-app bot commented Nov 3, 2023

Otto 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.

1 similar comment
Copy link
Author

otto-ai-app bot commented Nov 3, 2023

Otto 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
Author

otto-ai-app bot commented Nov 3, 2023

Good news!

I've completed my work on this issue and have created a pull request: Create src/pages/NewFile002.tsx.

Please review my changes there.

Copy link
Author

otto-ai-app bot commented Nov 3, 2023

Otto 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
Author

otto-ai-app bot commented Nov 3, 2023

Good news!

I've completed my work on this issue and have created a pull request: Create src/pages/NewFile002.tsx.

Please review my changes there.

Copy link
Author

otto-ai-app bot commented Nov 3, 2023

Otto 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
Author

otto-ai-app bot commented Nov 3, 2023

Good news!

I've completed my work on this issue and have created a pull request: Create src/pages/NewFile002.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