Open to feedback. Thanks
Hikmah
@HikmahxAll comments
- @CHarvey820Submitted about 1 year ago@HikmahxPosted about 1 year ago
Hi CHarvey 👋! You did excellent work on this project! I have a suggestion for you:
For the
box
class, it would be better if the width is set to 100% rather than a fixed 450px. This is because when an element has a max-width property, the width becomes responsive on smaller devices and stops increasing beyond that specific max-width.I hope this helps
Marked as helpful0 - @LipeCatSubmitted about 1 year ago
This is my solution. Is there anything I can improve?
Thanks for your feedback
@HikmahxPosted about 1 year agoHi Lipe 👋! I checked your solution and you did great work on this project! I have a few suggestions for you:
- You should add a padding of 1rem to the body of your application:
body { padding: 1rem; }
This is so that on smaller screen sizes, the QR code container can have some spacing around it.
Hope this helps
Marked as helpful0 - @sirgraSubmitted over 1 year ago
Feel free to rip apart my execution of this challenge and correct me where I have made mistakes. I would appreciate if you told me to what I should pay attention when going about similar tasks. Please be kind as I'm a beginner at frontend development and want to improve my skills.
@HikmahxPosted over 1 year agoHi sirgra 👋! I checked your solution and you did great work on this project! I have a few suggestions for you:
- Since it is a single component, the card should be centered and the page should be the size of the device. This means the project should simply occupy the whole height.
To do this, replace the margin in the
parent-container
withmargin: auto
and remove the media query becausemargin: auto
is all you'd need. This will make the card centered. - To the body of the code, add this:
body { height: 100vh; display: flex; flex-direction: column; }
The
height: 100vh;
will make the height of the page the full height of the device, making it a full page. usingdisplay: flex;
will shift the card to the center vertically and since by default, the file direction is row, ie the element in the body will be arranged in the horizontal row, addingflex-direction: column
makes the card and attribution to be organized in a vertical way.Hope this helps
Marked as helpful1 - Since it is a single component, the card should be centered and the page should be the size of the device. This means the project should simply occupy the whole height.
To do this, replace the margin in the
- @ubonisraelSubmitted over 1 year ago
Hello Fellow Hackers, I would really love to get your opinions on my CSS design (best practices) and JS approach. Thanks
@HikmahxPosted over 1 year agoHi @ubonisrael 👋! I check your website and you did a great job with this solution. The pages are highly responsive and everything looks good.
I noticed that you could enhance the user experience by adding a few transitions to the slider and tabs. For instance, you could consider adding a fade-in effect when a new tab is clicked while the former fades out. This would make the browsing experience smoother and more enjoyable for your users.
Marked as helpful1 - @Mehar45Submitted over 1 year ago
Hello, Frontend Mentor community! Here is my solution to the REST Countries API with the color theme switcher challenge.
Happy to hear any feedback and advice.
@HikmahxPosted over 1 year agoHI Safi 👋! Great job!
I tried viewing the code on your GitHub so I can give you a suggestion but I couldn't find the JavaScript. I wanted to rewrite the code based on how you write yours.
This is just a simple suggestion, something you may use.
So for the border countries, if you want to get the full country name instead of the abbreviation, you can fetch the border countries inside the function you use to get a single country detail.
async (name) => { try { let { data } = await axios.get( `https://restcountries.com/v3.1/name/${name}?fullText=true` ); const country = await data; // CODE IS HERE const borders = await data[0].borders; if (borders) { let borderDetails = await axios.get( `https://restcountries.com/v3.1/alpha?codes=${borders.join(",")}` ); let allBorders = await borderDetails.data.map( (border: any) => border.name.common ); return { country, allBorders }; } return { country }; // return allBorders; } catch (err) { return err }
Hope this helps
Marked as helpful0 - @Mirage9898Submitted over 1 year ago
..
@HikmahxPosted over 1 year agoHi @Mirage9898 👋. Nice work! I have a few suggestions for your solution:
- I think adding a margin to the container, like
margin: 16px;
, will be better for mobile view, to add a bit of spacing around the container. - For the two images, icon-ethereum.svg and icon-clock.svg, not to give a stretched appearance, adding
object-fit: contain;
will allow these images to retain their shapes.
Hope this helps
0 - I think adding a margin to the container, like
- @AleromsSubmitted over 1 year ago
Hi Frontendmentor community! I found it very difficult to animate the numbers so I scratched that code out of my app. If there is any code that could be improved please let me know
@HikmahxPosted over 1 year agoHi Santiago! For the animation, I used Countupjs, the react package. I searched online and there is also a component for Vuejs you can try out in npm.js.
Marked as helpful1 - @matheusmanuelSubmitted over 1 year ago
Hey guys, how's it going! Today I finished making this website which is a landing page. I used only html, css and a little bit of javascript to make the menu mobile.
I'm open to criticism and some tips on how to improve my code, I'll be waiting! Thank you, good morning and zero bugs for today😅
@HikmahxPosted over 1 year agoHey Matheus 👋! Everything looks good. I have just one piece of feedback:
- To solve the overflowing body, you can add
overflow:hidden;
to the section with the classbanner
and the footer. And the scroll bar will disappear
0 - To solve the overflowing body, you can add
- @talissoncostaSubmitted over 1 year ago
Tailwind's media query syntax still doesn't satisfy me. In my opinion, it's a bit confusing, but it could be that I'm not using it correctly or I'm not used to it yet.
Any tip is really welcome.
Next project I am thinking about taking accessibility into consideration, so if you have any tip related is really welcome.
@HikmahxPosted over 1 year agoHi Talisson 👋, Nice work there! Tailwind can be a bit overwhelming at first, especially as a newbie. I remember not wanting to use it but because I kept seeing it everywhere, I decided to give it a try. And I don't regret it. Almost all my projects use Tailwind and I'll continue to use it in the future. That being said, I have some tips for you:
- I think it'll be better to add some space at the top and bottom of the card in smaller devices, perhaps of the tailwind class py-4 in the div immediately after the main.
- The title should be smaller on mobile devices, like text-3xl, and prefix the class text-5xl with md: (tablet) or lg: (desktop).
- For checking accessibility, you can install the Chrome extension Wave. I recently discovered this and it's very useful. Just right-click on the page after installing Wave and you can wave the page.
Hope this helps you
Marked as helpful1 - @ale-08-12Submitted over 1 year ago
- (Español) Esta es mi solución del desafío. Cualquier comentario es apreciado!
- (English) This is my solution to the challenge. Any feedback is appreciated!
@HikmahxPosted over 1 year agoHi Alexander. Great solution! There are a few feedbacks that may help with your site:
- I think you should use a single-column grid or maybe flex display when on smaller screens like mobiles and tablets, and change it back to the 3-column grid when the media query is 1024px min-width. Adding a max-width property makes sure the card doesn't over-stretch and the margin aligns everything to the center.
.cuadros { grid-template-columns: repeat(1, 1fr); max-width: 500px; margin: auto; }
And you can also simply reset the max width back to none,
max-width: none;
, when on 1024px.Hope this helps
Marked as helpful1 - @CriKnoSubmitted over 1 year ago
Please tell me how I can improve, whatever it is fine!
@HikmahxPosted over 1 year agoHi @CriKno. Great work! I have some feedbacks that may help improve this project:
- For the card, instead of setting the width to 336px and then 579px on tablet, I think it is better to replace it with max width and set the width to 100%:
.card { width: 100%; max-width: 336px; } @media (min-width: 640px){ .card { max-width: 579px; } }
This is will make the card more responsive. You may add a little padding to the main tag to give some spacing at the side of the card:
main { padding: 16px; }
I hope this helps
Marked as helpful1 - @JoshuaAbuluSubmitted over 1 year ago@HikmahxPosted over 1 year ago
Hi Joshua! I have two little feedbacks that may help improve your site:
- For the advice generate text to be centered rather than aligned to the left, you can add
text-align: center;
so that when the text is longer than a line, it is aligned to the center. Since you are using tailwind, you can simply add text-center class to the element of id advice - I think using the max-width property is better than the class md:w-2/5. You replace that class using the tailwind's max-width: max-w-xl
Marked as helpful0 - For the advice generate text to be centered rather than aligned to the left, you can add