@YossefMagdy
Submitted
Looking to hire developers?
@tan911
@YossefMagdy
Submitted
@tan911
Posted
Hello @YossefMagdy,
Here's my recommendation for improving this app if you have some free time,
Despite this, excellent job on the task!
Hope this will help improve, Thanks!
@Uriasmanu
Submitted
Hello everyone, I had a lot of difficulty finding the right logic to group all the results obtained in the interactions. When I finally got the Javascript part right, I realized that there was a problem with the CSS... (You'll find out when the bill is greater than R$ 1000 haha). I need to improve my knowledge in responsive design. I am open to suggestions as I couldn't fix the bill value. Thank you in advance!
@tan911
Posted
Hello @Uriasmanu,
css:
More info:
Hope this will help, Thanks!
Marked as helpful
@AlexanderMontoya
Submitted
Hello, I have an error when placing the quotation image, it is placed over the text :(
@tan911
Posted
Hello @AlexanderMontoya,
It placed I think bacause you defined your quotation image in an absolute position. The z-index and opacity will not solve the problem unless if you defined your text also. To address your error, you can use the quotation image as background image of your 'testimonial one' class and placed it wherever you want using background-position.
more info:
Hope this will help, Thanks!
Marked as helpful
@ucod3
Submitted
@tan911
Posted
๐Hello, @ucod3, and congratulations on completing this challenge๐. Here's my suggestion and to answer some of your questions as well.
more info:
adding custom style in tailwind
Hope this will help, Thanks!
@erelropeta
Submitted
I just learned how to use the useState
, but I wasn't sure if I had used it wisely.
Questions:
useState
in the App.js as the parent affect this decision?I hope someone can review my code which can be found here and let me know how I can improve on using it.
Thank you so much! :)
@tan911
Posted
It's okay to import 'notificationList' directly to the component's who needs it. Also you can pass 'notificationList' as props. However when passing it as props I think it's read not a notificationList, the code looks like this,
import Header from './components/header/Header';
import Notifications from './components/notifications/Notifications';
import notificationsList from './data/notificationsList';
export default function App() {
const [read, setRead] = useState(notificationsList);
return (
<main className="main">
<section className="notifications">
<div className="c-notifications">
<Header setRead={setRead} notificationsList={read} />
<Notifications />
</div>
</section>
</main>
);
}
You use 'useState' with initial value of 'notificationsList'. You don't need to pass 'notificationList' itself instead use the 'read' variable to pass data into your children component.
Marked as helpful
@Decimo-10
Submitted
Should I include a <form>
element? I didn't put in one, because the page doesn't submit any data from the inputs.
Does the "Select Tip %" has to be a <label>
. If yes, what should I give for it's for
attribute.
The input fields are text type. I originally wanted to use number type, but then the spin buttons show up. When I searched for a way to remove it, the only way I found was a non-standard one(::-webkit-outer-spin-button
pseudo-element). Is there a proper way to do it?
I gave inputmode="numeric"
for the input fields, since I couldn't set them to type="number"
(because of the spin buttons), but the w3c validator gives a warning since it's not supported by every browser. Is there a better way for this whole number type input field?
It's a broad question, but is there any problem with my script? Until now I only wrote 10-20 line scripts with simply one or two event listeners (I tried to provide proper description with comments).
Thank you for the feedback.
@tan911
Posted
Hello @Decimo-10, Here's my suggestion that might improve your applications also to answer some of your questions as well.
input="radio"
for every percentage and hide it via visually-hidden class or sr-only class instead of normal button element and don't forget to add label to every input radio button.<div class="label-wrapper">
<label for="bill-input" class="input__label">Bill</label>
<span id="your-error" class="input__error-message">Can't be zero</span>
</div>
<input type="text" id="bill-input" aria-describedby="your-error" class="input__field" placeholder="0" inputmode="numeric" pattern="[1-9][0-9]*\.?[0-9]*">
Marked as helpful
@Elomolina
Submitted
@tan911
Posted
Hello @Elomolina, An accordion should have keyboard support when it is built. This is beneficial to your audience since they can now use the keyboard to navigate your app. You can read this guide if you're interested in making an accessible accordion. - Accordion Example WAI ARIA.
@almeida883
Submitted
@tan911
Posted
Hello @almeida883, Looks good. However, in mobile there's no padding on the right side of your content and the screen.
@LisandraFerraz
Submitted
@tan911
Posted
Hello @LisandraFerraz, your implementation is good because it supports the keyboard. However, try scaling your screen down to 320px, and your application is still not entirely responsive, and the background image is not aligned. Additionally, I am unable to scroll it vertically, you should enable this so that the content of your application is viewable regardless of the audience's screen size (height or width). If you want to improve the accessibility of your application you can refer this guide of building accessible accordion - Accordion example - WAI ARIA
Marked as helpful
@ViniciusMassari
Submitted
Feel free to take a look and give me feedback
@tan911
Posted
Hello @ViniciusMassari, your application should have a keyboard support, you can use button element instead of dl element. button has accessibility features such as, tabs key, shift+tabs key or you can read this guide of making accessible accordion. When building an accordion try this - Accordion example
Marked as helpful
@ninjabro
Submitted
i thought i could finish it faster and stuck took me more than 2hrs, im struggling with placing images in right place with sizes it takes me lot of time. how do you usually place images in flex containers ?
@tan911
Posted
Hello @ninjabro, I dont know why you add max width to your body element even if you set display flex the content will not centered on larger screen, try to scale up you screen to 1440px up. You can add max-width to your main element if you want. Also you can wrap your image wih div element instead of header, the image there is just decorative.
Marked as helpful
@AndrewFerrer000
Submitted
rem
and em
however I am not really sure where can I put them correctly, in this challenge I just use them everywhere such font-size
padding margin
and even in width
of the div/img. Did I use them correctly?@tan911
Posted
Good work, but I don't know why you set your root element with the font size of 18px. try to change your default font-size in your browser with 1440px screen size up. So in larger screen even if you set your h1 font-size with rem doesn't make any sense. Also, I figure out that your application isn't responsive try to scale down your screen up to 320px. for padding and margin it will depend on you as long as you know the difference between rem and em.
If you want to set the font size of your root element you can read this guide - https://www.freecodecamp.org/news/override-root-font-size-for-a-better-user-experience/
you can use em for media queries then rem font size - https://medium.com/zoosk-engineering/to-em-or-not-to-em-that-is-the-media-query-question-22f4a65e9747
Hope this will help. Thanks.
Marked as helpful
@heionim31
Submitted
I create this simple project to practice CSS Grid and BEM Naming Convention. Can you check my codes? I'd like to know if BEM I used is correct. You can give me a suggestion about BEM or about my overall codes and output. Thank you <3
@tan911
Posted
Hello, @heion31 ๐. Your solution appears to be perfect, however when I reduce the size of my screen to 376px, the layout does not change as expected (it is supposed to do so by 600px for better mobile experience). Your font size is quite small on the widescreen, in order for your audience to read the text, they must modify the browser's default font size which is not a good idea because you didn't allow your content to scroll it vertically.
Hope this will help. Thanks.
Marked as helpful
@danyczech
Submitted
Hi there!
My second task. Any suggestions? I was thinking about putting those images as the background-image, but finally, I let them as part of the HTML and used display: none when needed. I am not sure which solution is better or the best practice.
@tan911
Posted
Hello ๐, @danyczech. Congratulations on completing your second task ๐.
Since you've included background images in your HTML, you might want to try using the picture element. - more info https://www.w3schools.com/html/html_images_picture.asp
Adding flexbox to your body element will allow you to center your content. if you do mind, The resulting code will look like: body { display:flex; justify-content: center;align-items: center}
Hope this will help, Thanks.
Marked as helpful
@Ogochukwu-ugo
Submitted
Please provide feedback on the best way to use the font size specified in the style guide. I tried using the recommended font size for that particular paragraph, which was 15 px, but I had to reduce it because it was too large.
@tan911
Posted
Hello, @Ogochukwu-ugo,
Hope this will help, Thanks.
Marked as helpful
@nicofercavv-dev
Submitted
It is my first project so I don't really know what feedbacks I could ask but any of them are very welcome :)
@tan911
Posted
Hello @nicofercavv-dev, maybe this will improve your code:
Hope this will help improve your code, Thanks.
Marked as helpful
@JeremyPaymal
Submitted
I did this challenge with HTML and CSS only.
Does it require to use Javascript or a framework like React?
Can I improve my code as it is now ? I 'd like to optimise it. I'm pretty sure I can reduce the css line.
Thanks !
@tan911
Posted
Hello @JeremyPaymal, maybe this will help and improve your code:
Hope it helps, Thanks.
Marked as helpful
@Mohsin-93
Submitted
Any suggestions are appreciated, especially if there is something I should change or could improve upon and there are any best practices.
@tan911
Posted
Hello @Mohsin-93, maybe this will help and improve your code:
Hope it helps, Thanks.
Marked as helpful
@WillieSantos
Submitted
If possible, send feedback on possible adjustments and improvements to this project.
@tan911
Posted
Hello, @WillieSantos. maybe this will improve your code:
Hope it helps, Thanks.
Marked as helpful
@toshihikotani
Submitted
May I if there's another technique to center the content without using margin or padding?
Thank you
@tan911
Posted
Hello @toshihikotani, maybe this will help and improve your code:
Hope it helps, Thanks.
Marked as helpful