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

The Desgin along with components ready #23

Merged
merged 3 commits into from
Oct 25, 2024

Conversation

yashwanthvarma18
Copy link
Contributor

DataCard6 Component

Component Creation

A new React component named DataCard6 was created in the src/components/DataCard directory. This component is responsible for displaying a grid of image cards and a community section.

Importing Assets

The component imports:

  • React
  • A CSS file for styling: DataCard6.css
  • Nine image files (image1.png to image9.png) used within the component to display different images on the cards.

Component Structure

Inside the DataCard6 component:

  • An array of card objects is defined, each containing an id, image, and alt text.
  • The component returns a JSX structure that includes:
    • A grid layout for the cards
    • A community section with:
      • A heading
      • A paragraph
      • A button

Integration into the App

The DataCard6 component is imported and used in the main App component located in src/App.jsx. It is rendered within the App component's return statement, allowing it to be displayed on the main page of the application.

Application Setup

The App component is rendered in the main.jsx file using React's createRoot method, which mounts the application to the DOM element with the ID root.

Here is the ScreenShot of the work

image
I tried my level best the code is well structured and I done the outline of the desgin you can now easily change pictures
Thank You !

@yashwanthvarma18
Copy link
Contributor Author

@siwamsingh please review it and merge it took me hours to do it

@dakshsinghrathore
Copy link
Member

@yashwanthvarma18 kindly fix the conflicts and we will be reviewing it asap.

@yashwanthvarma18
Copy link
Contributor Author

@dakshsinghrathore what is the issue in PR
What should i do to resolve them

@yashwanthvarma18
Copy link
Contributor Author

@dakshsinghrathore There is no conflict i just imported the Datacard-6 into App.jsx
You can review and merge this your wish should i include it or just creating is enough

@yashwanthvarma18
Copy link
Contributor Author

@dakshsinghrathore @siwamsingh Please review and merge it

Copy link
Member

@dakshsinghrathore dakshsinghrathore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 🙌🏼

@dakshsinghrathore dakshsinghrathore merged commit 4b1d50d into dscnsec:main Oct 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants