Rob Simpson
@pertrai1All comments
- @PremKhodke-99@pertrai1
This is great work you have done. It basically aligns with the layout given and has clean markup for both the HTML and CSS. Well done!
- @ajibade-dev@pertrai1
I like your solution more than the actual design. Very well done.
- @pertrai1@pertrai1
Still working on my code reusability, mainly with CSS. Wondering if putting a lot of values in variables would be helpful or not. Same with properties that are shared across rules, would it be better to combined the two or more rules, or create a helper rule?
- @JCastelli12@pertrai1
The code I looked at looks great. I did look and see that there is a 404 for the font location. Maybe changing
src: url(/assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
tosrc: url(assets/fonts/Inter-VariableFont_slnt\,wght.ttf);
where/assets
becomesassets
without the leading/
?Marked as helpful - @Bezies@pertrai1
Good work with the solution. When you say that you are having trouble with the size of the input and button, do you mean that it would be nice to only write code once and not have to duplicate for both? If so, you could take what is used for both of them and combine into one rule, i.e.
#email, #sub { padding: 15px 20px; }
Then you can remove that from each individual rule. This way, you can change the value once and both will pick it up.
I hope that is what you meant when you need to find a way to have them the same size.
Marked as helpful - @codeguy9@pertrai1
Great work on the solution you have come up with.
Check in your JS and notice that you are using
querySelector
for theselected-tab
, but there are multiple elements in the DOM that have this class. Because of this you will need to usequerySelectorAll
and then loop over each of them to add the classinactive
. See if that helps get you going in the right direction.Marked as helpful - @TiffaJenkins@pertrai1
Great work on the solution you came up with. A quick look at the code and what I see that could help you:
Do not use the same
id
multiple times. I seeid="mob-nav-item"
used for all links under.mobile-nav
.Not much feedback but I hope it is enough to help you continue improving.
Marked as helpful - @GreenT2012@pertrai1
I personally think your solution is a good one. Don't think that your solution is not the best because that is very subjective and the objective is to practice. Good work.