@EDDuardOo-Code
Posted
Congratulations completing your challenge Urban
if you want to show the advice when the pages load you can do that ,adding a event listener
btnAdvice.addEventListener('click',() =>{
getAdvice();
}
)
window.onload = () =>{
getAdvice();
}
also i like the desing and how you work with css variables, that makes changing colors a lot easier, if you want the card to be center you can use flexbox in the body, something like this
body{
background-color: var(--neutral-dark-blue);
display:flex;
justify-content:center;
aling-items:center;
min-height:100vh;
}
also it is better to work with classes cause we can reuse the code , idยดs can get pretty heavy to work with , overall the project it is really good, hope to see more of your work and also see more of your projects , Keep going ๐๐
Marked as helpful