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

Tugbanur-React week1 #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Tugbanur-f
Copy link

No description provided.

@Tugbanur-f
Copy link
Author

Here is the deployed link: Netlify App URL

Copy link

@MaryRichelle MaryRichelle left a comment

Choose a reason for hiding this comment

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

Great Job.
I would suggest moving categories.jsx and products.jsx files into components folder and creating a separate files CSS file for each component.

className="product-image"
/>
<h4>{product.title}</h4>
</div>

Choose a reason for hiding this comment

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

Great work.
It would be good to create a separate Product component and move the code for each product card into it. This will make the code simpler and easier to reuse.

I noticed that when you click on different categories, the app's height changes because the images take time to load. To fix this, try giving the product cards and images a fixed height and width. This will keep everything looking neat and stable, even while the images are loading.

Copy link
Author

Choose a reason for hiding this comment

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

It didn't fixed images but I will try to find solution to that. Thank you for your feedbacks.

Copy link

@MaryRichelle MaryRichelle Nov 17, 2024

Choose a reason for hiding this comment

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

try searching on the web what is the meaning of fix height in CSS ? you will find a solution.

@Tugbanur-f
Copy link
Author

I see there you approved my pull request but can you please Label it too. :) Because somenone from hyf is checking our assignments is it approved or not. They follow from the label.

@@ -3,6 +3,8 @@
gap: 16px;
justify-content: center;
grid-template-columns: repeat(2, 1fr);
height: fixed;

Choose a reason for hiding this comment

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

There is no such property, value in CSS like height :fixed;
"fixed height" refers to setting a specific, unchanging height for an element. When an element has a fixed height, it will always occupy the exact height specified, regardless of its content or the surrounding layout.
like height:200px;
it will always be 200px tall, even if the content inside the element is less or more than that height.

@MaryRichelle
Copy link

I see there you approved my pull request but can you please Label it too. :) Because somenone from hyf is checking our assignments is it approved or not. They follow from the label.

I have already informed your instructors for the react module about this. we are facing an issue. I will update the label as soon as the issue is resolved

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

Successfully merging this pull request may close these issues.

2 participants