@brodiehunt
Submitted
Looking to hire developers?
@Risclover
@brodiehunt
Submitted
@Risclover
Posted
Beautiful job!
@Scott1UP
Submitted
@Risclover
Posted
Just a small note about your code. You are using a lot of nested <section>
elements, and several of them would be better as <div>
tags instead.
From the W3C specification:
"The <section> tag is not a generic container. If you need an element only for styling purposes or for scripting, it’s better to use a <div> element instead. The use of the <section> element is appropriate only when the contents of an element are listed in the document’s outline."
@elaineleung
Submitted
Hi FEM community, I actually finished this a while back but haven't posted the solution yet, so here it is!
@Risclover
Posted
From what I see, you absolutely nailed this. Good job!
@AndyAshley
Submitted
might have a few bugs.. but I give it a 99.3762523% chance to work fine.
@Risclover
Posted
Hi! You commented on my solution for the same challenge (about the logo/h1 element issue), so I came over to check yours out. I'm glad I'm not the only one who did the Reset button colors like how we did them.
I like how you made it so that the People number automatically begins with 1 as well. Very smart!
@mdubelbeis
Submitted
This challenge was pretty straight forward. One of the main issues that occurred was the widths of the card and getting it just right. Since I am still learning how to effectively use TailwindCSS, it was weird getting exactly what I wanted.
As a beginner to React, the area where a lot of my concerns other than discussed above was my implementation of the state in React.
This project has guided me to dig deeper into best practices with TailwindCSS widths and React state implementation. Any advice on these would be much appreciated.
@Risclover
Posted
Hey :) I just wanted to point out that the "focus background" is missing from the rating buttons. Like the design images show, they are supposed to have a grey background when one is selected. Just some advice for when you do tackle this, you should make it so that it remains in that style even when you focus off of the button. And of course, only one should be able to be selected at a time.
Marked as helpful
@EyreC
Submitted
I submitted this solution still unsure how to do a few things.
@Risclover
Posted
Hi Alexander!
I happened to notice that a lot of what you're having trouble with, I did, too, but I found solutions that worked for me. I submitted my own version of this challenge just a couple of hours ago if you'd like to take a look. It was created via pure HTML and CSS. I've never used anything but vanilla CSS (so no Tailwinds knowledge), but I think that when looking through your code, I can tell (for the most part) what's what.
I'm replying to your solution questions because I feel like you and I have the same thinking in terms of how to execute this solution.
flex-direction: column
, and I did the same with the 3 smaller containers (since everything is vertically placed, flex-direction: column;
). Then for my desktop layout, my main container went to row while each individual container stayed column. My point in saying all of this is that that approach isn't the problem, which brings me to the next thing.justify-between
, do you mean justify-content: space-between
? Or were you using justify-between
? Because I don't think that exists, which is why it wasn't working. (Or wait, is justify-between
a Tailwinds thing?) When thinking about my approach for tackling this challenge, I, too, had the initial thought of using justify-content: space-between
for the three smaller containers, but then I ended up using a combination of padding and margin to achieve good spacing.position: relative;
set if they don't already. If you don't do this, the buttons will place themselves according to the actual page, not their boxes.position: absolute;
. This is what will keep them still.bottom: #px;
, which places your buttons however many pixels above the bottom of each of the containers you want them to be.(Edit: Oh duh, you're using Tailwinds... well, whatever the equivalent code in Tailwinds is, do that.)
As a side note, when I executed the above, all of my containers became too short, so I did have to adjust code elsewhere. I ended up needing to fiddle with my <p>
padding. But I fixed everything, and now my buttons stay aligned, so hopefully it works for you, too!
Oh, and I don't know if you've seen this, but I just noticed that right before your page changes from desktop mode to mobile mode, the buttons get disproportionately tall and look wonky. Might want to look into that.
Alright, that's enough from me. I hope at least one little thing from this was helpful in some way. I'm pretty new to this too, so I'm not claiming that any of what I'm saying is best practice. I just wanted to share what worked for me.
Apart from the issues, your page looks wonderful! Keep it up.
Cheers!
Sara
@hg8116
Submitted
Hey Guys! This is my third submission, learned some new things about CSS grid. please comment where I can improve.
@Risclover
Posted
Hi Harsh Gupta!
I just did this challenge, too. I took a look at your page. A little bit of a disclaimer - I haven't looked at your code. This is from a visual viewpoint only. :)
Looking at your page initially, it looks good! Obviously, there are some differences here and there between your solution and the original design - your buttons are smaller, your headings are smaller, the spacing is a little different, and you should put in a line height of somewhere around 1.5 to 2 - but all of that is nitpicky, and only matters if you want to get closer to an exact remake.
When I went into the dev tools and started playing with the responsiveness of your page, I started noticing some stuff you should take a look at.
The challenge is for us to create a desktop layout and a mobile layout so that the page is "responsive" to different screen displays. The mobile layout they used for their sample was 375px, so when I'm doing these challenges, I base my mobile layout off of a 375px display so I can most closely match theirs, and go from there. Anyway, when you go to 375px with your page, your buttons are way warped in shape - their height and width aren't proportional any more. Other than that, things look good there, too.
From around 1000 - 1100px, your display looks odd. It's just too squished. Similarly, when the layout switches over to the mobile layout (at 959px), it looks really off until around, I don't know, 500px or so.
For the record, I did the same thing. I, too, had a desktop and a mobile layout, and my problem was the same - the desktop layout was too squished going down in px, and then when it hit the mobile layout resolution sizes, the layout was way too wide until (scaling down) I hit around 600px or so.
I highly recommend that you do what I did - make an additional media query breakpoint! Pick a chunk of resolution size range and either make it like the mobile layout or the desktop layout, but in a way that looks right for the screen sizes, if that makes sense.
What I did for that "middle" layout was I created a stationary mobile layout, meaning although my elements were responsive for my regular desktop and mobile layouts, once it hit the "middle" mobile layout, it was just one fixed size for a bit until becoming responsive again. Check out my solution to see what I'm talking about if you'd like.
Other than the responsiveness issue, I think you're doing well! Once again I'll mention that I haven't checked out your code, so no guarantees there ;)
Keep it up, fellow newbie!
Marked as helpful
@rluna15
Submitted
I used flex box to organize the text side and image side but for some reason on the mobile layout the image is not displaying correctly. The image is being cut off short but when I change the height of container it doesn't change at all.
Also for the image I am using a background color with a background blending mode to give it the color overlay effect to the image but when it's on the browser the blending mode it not working, hiding the image with the background color.
@Risclover
Posted
I'm not sure what you mean by blending mode, but I put an opacity on my image. Maybe if you do the same it'll work? Or use z-index to put it in front?
@Yazdun
Submitted
Hello ! I added extra feature to this challenge so you can toggle between dark and light theme. and here I have some questions :
✅ I'd be glad to know your feedbacks on this
@Risclover
Posted
After you gave me some feedback, I decided to look at your solution for the same challenge and found this. :) So, to help you out because nobody else did:
Website should load dark theme by default, does it function correctly on your browser ?
Can you toggle between themes ? does this solution functions correctly ?
What are the best practices on creating dark and light mode ? is my approach any good ?
Edit: Or, after taking a second look at it, maybe if you were to make it so that the shadow goes around the whole box instead of just at the bottom to create some better depth, that might also be a possible way to improve the visuals.
Thanks again for your comment on my challenge! Yours looks wonderful!
Marked as helpful
Hello !
This is my first challenge in Frontend Mentor.
Although I recently finished a Web Development course, I don't have much experience with HTML and CSS.
What did you think of my project? Would you make any improvements?
Thank you !!
@Risclover
Posted
I don't know if you've noticed this, but there's no background showing up. :)
Any tips or improvements are welcome.
@Risclover
Posted
Hi! I know you just posted, but I had a few comments for you.
First of all, good job on your page so far! Just a few things I've noticed:
width='100%'
in this line of code: <img src=`images/image-header-desktop.jpg` alt=`image-header-desktop` width=`100%`>
I don't think you're supposed to use the % sign for inline CSS. Besides, you should try to eliminate all of your inline CSS and practice only using external CSS. :)Other than the above, I thought your solution was fairly well done! Good job!
Marked as helpful