Latest solutions
Frontend Mentor - Audiophile e-commerce website
#accessibility#react#webpackSubmitted over 1 year ago
Latest comments
- @BuriticaSebasSubmitted over 1 year ago@md5daltonPosted over 1 year ago
Hola 👋
El archivo
index.html
está en el mismo nivel que tu imagen, así que tiene que cambiarsrc
del<img>
asrc="image-qr-code.png"
.Sí te das cuenta tiene duplicado 3 veces el código ☝️
Cheers👌
0 - @freaky4wrldSubmitted over 1 year ago@md5daltonPosted over 1 year ago
Hi Nayan👋
I had a similar experience when I was just starting with tailwind but as I got used it, it is an excellent tool in the long run. I did not like how it cluttered my HTML markup however, once I began to use it with a framework like React JS, all I had to do was extract all that repetition into a component or a partial and since then I have never looked back👌
0 - @kiantpetersenSubmitted over 1 year ago@md5daltonPosted over 1 year ago
Hi there👋
The idea is to generate a new piece of advice by clicking the dice icon so you don't need to use a timer. So you just attach a click listener on the dice icon like so:
<div className='quote-dice' onClick={() => getAdvice()}>...</div>
You can even go further by handling loading and error states. 👍
Marked as helpful1 - @Kratos-750Submitted over 1 year ago@md5daltonPosted over 1 year ago
Hello Mithun 👋
Cool you went with the bonus solution😎
Regarding the background gradient, I noticed you used a pseudo element to achieve the desired effect however, you could still have just applied it directly on
#App
orbody
and there would have been absolutely no need to write additional CSS for that pseudo element.Cheers 👌
1 - @Andy-EsmSubmitted over 2 years ago@md5daltonPosted over 2 years ago
Hello Andrey Esman 👋
Well done with your solution for this challenge 👍
Excellent advice from @MelvinAguilar and if you were wondering how to add that no-cache option, here's how you can do it:
fetch ("https://api.adviceslip.com/advice", {cache: "no-cache"})...
Cheers 👌
Marked as helpful1 - @paulhjinSubmitted over 2 years ago@md5daltonPosted over 2 years ago
Hello Paul Jin 👋
Congratulations on finishing this challenge 👍
Since this bg-pattern-card.svg is a background and does not form part of the page content, use
background-image
instead of theimg
element and you'll have less HTML markup to work with.Negative margins also do work in placing that profile picture image, however I'd suggest you use CSS Grid instead:
main { ... display: grid; grid-template-columns: auto; grid-template-rows: /* define your rows here */ } .profile { ... grid-row: 2 / 3; /* depending on how you defined your rows */ }
This is just one way to implement this through CSS Grid and there is still other code you can use. That's how flexible CSS Grid is👌
Marked as helpful1