What I add extra from the request ?
- I add a linear gradient to the background
What I add extra from the request ?
Hey @Yunuscinar41 good job on the design i only have one suggestion that might make the card a little cooler which is the inner shadow for both the main-container
and thank-you
containers
box-shadow: inset 0 -10rem 15rem #00000050;
you can play around with the values till it feels right. hope that helps and happy coding !
Hi @Richard-Emmanuel great job on the challenge everything is set up perfectly, if i can add one small suggestion
to improve the design and make it more responsive for smaller screens you can use the min()
function in the css for the width
so it'll get smaller than 305px
but doesn't exceed it
.container {
background-color: hsl(0, 0%, 100%);
border-radius: 0.8rem;
width: min(100%, 305px);
margin: 6rem auto 1rem;
padding: 1rem;
text-align: center;
}
hope that was helpful and happy coding !
I couldn't understand the task properly. anyhow tried my best to accomplish the tasks. kindly reviews it and give your valuable suggestions.
Hey @abymani good job on the design i just have a few suggestions that might might be helpful
let tipAmount = ( bil * tip /100 ) / persons;
let total = ( bil / persons ) + tipAmount;
other than that good job on the challenge and happy coding !
Hi @roadblock37 just read your code and its excellent ! love that you commented it pretty well and I didn't have a hard time understanding it at all, well done. I just have a few suggestions that might be helpful
radioChecked
from the domconst radioChecked = document.querySelector("input[name='option']:checked")
// uncheck tip percentage if there is a custom amount input
if (radioChecked){
radioChecked.checked = false;
}
otherwise it will only get the radiochecked
from when the page was first loaded (which is 5%).
computeTip
the math side of it should be :perPersonTip = ( bill * (tip/100) ) / numPeople
totalAmountPerPerson = (bill / numPeople) + perPersonTip
otherwise good job on the challenge and happy coding !
the part for tablet version is not in the challenge
Hey @miller-vrg good job on the design, I have a few suggestions which might be helpful to you
-add min-height: 100vh;
to the body so it takes the minimum full height of your content.
-add object-fit: cover;
to both the images so it doesnt appear stretched.
-so that the attribution don't affect you element's positioning add .attribution { font-size: 11px; text-align: center; position: absolute; bottom: 1rem; }
this way it will be at the bottom of your page but doesn't effect anything
Hi @oguzhansenokur good job on the design i have one suggestion for the centering try adding min-height: 100vh;
to the body and remove the margin-tops of both the 'ty-state' and 'rate' elements, that should center it perfectly. happy coding !
tips always welcome!
Hello good job on the design i have one suggestion you can center your card by adding min-height: 100vh
to the body and removing the margin-top: 50%
from your 'container-rating'. happy coding !
Tarea template 3
Hey José good job on the challenge, i have one suggestion for better centering of the card you add this to the body
body { min-height: 100vh; background-color: hsl(225, 100%, 94%); display: flex; justify-content: center; align-items: center; }
and happy coding !
Hey community members 👋, I hope you all are doing well now & then. I've completed this challenge with the additional feature i.e
Any feedback to improve this is really appreciated. :)
Hey Roy good job on the challenge, I just have a few suggestions try adding the dollar sign to the result and tip amount and removing the "Can't be zero" error when clicking buttons or inputing values, also when clicking on one of the tip % buttons it shows results but after that I click the others it doesn't work. that's all happy coding !
Any Feedbacks are welcome, I'm hoping you can share some helpful tips and tricks i could use to improve this solution.
Thanks.
Hey Amit good job on the challenge, i have one suggestion for the border-radius, you can add border-radius: 1em;
to the container, and border-radius: 1em 0 0 1em;
to the desktop image to be closer to the design, you can also make media queries for the mobile view, happy coding !
Hello good job on the design i just have one suggestion on the box shadow, you can make it smoother by adding box-shadow: 1rem 2rem 5rem rgb(0 0 0 / 19%);
to it. also you can change the body's background color to match with the design hsl(210, 46%, 95%)
. happy coding !
Do you have any questions about best practices?
Hi nice job on the challenge try adding object-fit: cover;
to the image so it doesnt seem too stretched on the mobile view, happy coding !