Hey Paul :)
Your solution looks great! After a quick look, I found couple small things.
I noticed that you have headings h3
being smallest and h5
being largest. I don't think in this design there is need for more than 1 or maximum two headings - h3
(h4
). Generally, you shouldn't chose headings based on their style (color, size, weight). Now, in design you come that across quite often, but not always. I think in this case it makes more sense to stick just with single h2
element, one for each section inside the card.
From you CSS file.
Just an opinion, but if you put color values inside css variables, I think it would make sense to make white color a variable too. For example line 72
, you have #ffffff
as color value. I would put it up with the rest of color variables at the top.
I noticed you removed outline
for button
element. In general you want to avoid that. Or if you do remove outline
, then add some styles inside :focus
selector for button
. That way if you are using keyboard to tab through your page, user will know when their focus is on the button.
For some reason you have two box-shadow
properties inside .container
selector. line 33
is overwritten with line 38
.
You could simplify your layout and reduce CSS file by applying mobile first approach. That is, keep all the card sections display: block;
as they are by default because of div
elements. They will naturally by default stack on top of each other. And then you can apply grid only inside media query on larger screens, where you need it. Note that you would need to change max-width
to min-width
inside your media query.
Answering your question about responsive text scaling. You have couple options. You can simple change the font-size
property inside your media query. That's probably the easiest, simplest and most predictable way. Almost always I do it this way.
You could also look up some fluid font size scaling with % units. I haven't used fluid scaling much, but it has some uses, depending on how you want your responsive design to work.
I hope I cleared up some things. If you have any questions, feel free to ask here or on Slack.
Nice work, keep it up! :)