Latest solutions
Expenses Chart Component Solution using React and TailwindCSS
#accessibility#tailwind-css#vite#reactSubmitted 11 months agoNewsletter sign-up form with success message Solution
#accessibility#tailwind-cssSubmitted 11 months ago
Latest comments
- @LucasNgTgSubmitted 10 months ago@RanitManikPosted 10 months ago
To enhance the card design challenge implementation, please address the following points:
-
Card Shadow on Hover: Ensure that the shadow of the card grows on hover as specified. You can refer to the active state file in your project's design directory for reference.
-
Unit Choice for Styling: Use
rem
instead ofpx
for properties like width, height, margin, padding, and font-size to achieve better scalability and responsiveness. For instance, the following CSS demonstrates how to userem
units effectively:/* Use rem for Better Scalability */ .container { font-size: 1rem; /* Equivalent to 16px */ width: 57.4375rem; /* Equivalent to 919px */ height: 31.3125rem; /* Equivalent to 501px */ }
Hope it helps
Marked as helpful0 -
- @callaid21Submitted 10 months ago@RanitManikPosted 10 months ago
Here are some suggestions from me:
-
Specify Image Dimensions:
- Always set both the height and width attributes for images. This practice ensures that the space required for the image is reserved when the page loads, preventing layout shifts. Your initial page is currently experiencing layout shifts because these attributes are not specified. For more details, refer to this article.
-
If you think this comment is helpful you can mark it as helpful
0 -
- P@sergrosuSubmitted 10 months ago@RanitManikPosted 10 months ago
Congratulations on completing the challenge! Here is my feedback for you:
-
Centering the Container: Avoid using
position: absolute
for centering elements. Instead, use a more effective method by applyingmin-height: 100vh;
to thebody
anddisplay: grid; place-items: center;
to center the.container
. This ensures better responsiveness and alignment.body { min-height: 100vh; display: grid; place-items: center; }
-
Unit Choice for Styling
- Opt for using
rem
instead ofpx
orem
for properties like width, height, margin, padding, and font-size. This choice ensures better scalability and responsiveness. Detailed information can be found in this article.
/* Use rem for Better Scalability */ .container { width: 57.4375rem; /* Equivalent to 919px */ height: 31.3125rem; /* Equivalent to 501px */ font-size: 1rem; /* Equivalent to 16px */ }
- Opt for using
If you find this comment helpful please mark it as helpful
Marked as helpful0 -
- @TifemSubmitted 10 months agoWhat challenges did you encounter, and how did you overcome them?
The challenges i encountered was the layout but i was able to overcome it by drawing a rough sketch of the design and it worked out perfectly
@RanitManikPosted 10 months agoCongratulations on finishing this challenge! I have reviewed your code and here are a few suggestions for improvement:
-
Centering the Container
- Instead of using
margin
on.container
to center it vertically, a more effective method is to usemin-height: 100vh;
on thebody
anddisplay: grid; place-items: center;
to center.container
. This approach ensures better responsiveness and alignment.
body { min-height: 100vh; display: grid; place-items: center; }
- Instead of using
-
Wrong use of Buttons
- Avoid using buttons for the learning tag. Even though it looks like a button, it's not a button. If you use a button, the browser will consider it as a button and you may encounter accessibility problems later on. You can wrap that into a
div
element.
- Avoid using buttons for the learning tag. Even though it looks like a button, it's not a button. If you use a button, the browser will consider it as a button and you may encounter accessibility problems later on. You can wrap that into a
-
Card Shadow on Hover
- In the card design challenge, it was stated that the shadow of the card should grow on hover. This is missing in your implementation. Observe the active state file in your design directory of the project and implement the hover effect.
.card:hover { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); }
I hope you find my feedback helpful. Please mark it as helpful if you do!
Marked as helpful1 -
- @aamna-ansariSubmitted 10 months ago@RanitManikPosted 10 months ago
Congratulations on finishing this challenge! I have reviewed your code and here are a few suggestions for improvement:
-
Semantic HTML5 Elements
- Consider using more semantic elements (landmarks) like
<main>
,<article>
, and<header>
to improve the structure and readability of your HTML. All content should be contained within landmarks. Every page should minimally have a<main>
element. You can find more information about this here.
- Consider using more semantic elements (landmarks) like
-
Font Loading Optimization
- Avoid using
@import
in CSS for font loading. Instead, directly link the fonts in the HTML file to enhance website performance. This method is explained in this article. Here’s an example:
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@100..900&family=Lexend+Deca:wght@100..900&display=swap">
- Avoid using
-
Unit Choice for Styling
- Opt for using
rem
instead ofpx
for properties like width, height, margin, padding, and font-size. This choice ensures better scalability and responsiveness. Detailed information can be found in this article.
/* Use rem for Better Scalability */ .container { width: 57.4375rem; /* Equivalent to 919px */ height: 31.3125rem; /* Equivalent to 501px */ }
- Opt for using
-
Cursor Pointer for Buttons
- Always use the
cursor: pointer;
property for buttons to improve the user experience.
button { cursor: pointer; }
- Always use the
I hope you find my feedback helpful. Please mark it as helpful if you do!
Marked as helpful0 -
- @Dipesh-sapkota1Submitted 10 months agoWhat challenges did you encounter, and how did you overcome them?
Customizing default behavior of form
What specific areas of your project would you like help with?I want to improve responsiveness of overall site.
@RanitManikPosted 10 months agoYour solution looks legitimate. I have reviewed your code, and here are some suggestions from me:
-
Specify Image Dimensions:
- Always set both the height and width attributes for images. This practice ensures that the space required for the image is reserved when the page loads, preventing layout shifts. Your success page is currently experiencing layout shifts because these attributes are not specified. For more details, refer to this article.
-
Display User Email:
- On the success page, ensure you display the user's previously input email. Currently, the email shown is always
ash@loremcompany.com
, which is incorrect.
- On the success page, ensure you display the user's previously input email. Currently, the email shown is always
-
Alt Text for Images:
- Avoid using
alt
text for non-decorative images. In this challenge, all images are non-decorative, so you should leave thealt
attribute blank, like this:<img src="./assets/image.jpg" alt="">
. For more information on this best practice, watch this video.
- Avoid using
- I hope you find my feedback helpful. Please mark it as helpful if you do.
Marked as helpful0 -