Praveen Perumal
@solvedbiscuit71All comments
- @laachouch8@solvedbiscuit71
@laachouch8, You solution looks great 😄
I have some tips to improve it,
- Firstly, wrap everything in
<body>
with<main>
tag to avoid accessibility issue - Gallery is taking the size of the page instead of the size of the screen, it would be better since, user don't need to scroll down to change the image.
- And no of items in cart should go till zero, and then you can disable it.
These are some tips i have for you, hope it helps
Marked as helpful - Firstly, wrap everything in
- @jonathan401@solvedbiscuit71
Hi, Jonathan
No, i don't think there is another way around it. since, the background image are big we are forced to use
background-size
andbackground-position
to position accordingly.But, it would be better if you use viewport
vw
units instead ofpx
so it will be more responsive! Check out: my solutionHope that resolves your question.
Marked as helpful - @athirasarman@solvedbiscuit71
Hi Athira, Good work on your first angular project in frontendmentor!
I have some tips to improve your code,
- wrap everything inside the body with a
<main>
tag to avoid accessibility issue. - use
<div>
tag instead of<span>
for element with class "detail","eth","time" - use
display: flex
withalign-items: center
in "eth","time" and footer to vertically center the image and text. - add the hover state for
<span class="name">
element. - add
min-height: 100vh;
in<main>
tag to vertically center the card.
Addressing the use
<div>
instead of<span>
, we generally use <span> as a "leaf node" means that it doesn't have other childNode except the textNode. it's a best practiceHopefully you find these suggestion helpful 😊
- wrap everything inside the body with a
- @nikhilkamble9@solvedbiscuit71
Hi Nikhil, good work in your first challenge.
I have some suggestion which might be helpful,
- Change <p id="p1"> to <h1> and <p id="p2"> to <p> to simplify and avoid accessiblity issue!
- For your text align issue
.container { display: flex; flex-direction: column; gap: 1.5em; }
Here, we are changing the flex direction to "column" i.e vertically and adding a gap of "1.5em" (or some else) between flex items.
Then, remove
display: inline-block;
&position: fixed
in p#p1 & p#p2 and adjust margin & padding accordingly.Happy Coding and Good luck on your frontend journey
- @AndyAshley@solvedbiscuit71
Hi Andy, I used radial-gradient() for the background which looks close to the design
.card { background-image: radial-gradient(circle at top,hsl(210, 19%, 18%) 0%,hsl(215, 23%, 14%) 50%, hsl(215, 27%, 12%) 100%); }
Check: https://www.frontendmentor.io/solutions/interactive-rating-component-with-vanilla-js-sass-3UZIEGY9H
Hopefully, that solves your query.
Marked as helpful - @laachouch8@solvedbiscuit71
As @besttlookk mentioned, The white space at the bottom of the screen is because of the content of the page (height required) is less than the screen's height or viewport's height.
We can resolve this issue by adding a
min-height: 100vh;
to the<section class="section">
tag and overall your design and transition between theme looks good!Marked as helpful - @Edgar-Meza@solvedbiscuit71
Hi there, good work on your solution
Your solution is almost perfect but there are some issue in your code,
- There no need for a box-shadow on the
.body-card
as there is a visual difference between the background color and the card's bg color. - Instead of using
margin-top: 40px
on.body-card
usedisplay: grid;
withplace-content: center;
on thebody
will automatically center it.
NOTE: set
min-height: 100vh
on thebody
for the (2) feedback to take effect.Marked as helpful - There no need for a box-shadow on the
- @shamilussainc@solvedbiscuit71
Nice work on your solution! Regarding the accessibility issue, change the
<div class="attribution">
to<footer class="attribution">
with corresponding closing tags will resolve it.Overall, Good work and Gook luck on your frontend journey.
- @Archerking47@solvedbiscuit71
Hi Archerking47, Good work on your project.
No, you need not use media queries or max-width on the container since here the card have fixed dimension so just using
display: grid
on the parent container withplace-content: center
will be fine.And regarding the accessibility issue wrapping the card element with a
main
tag will resolve it.Marked as helpful