Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive advice generator app

Geethesh Nairā€¢ 100

@geethesh2610

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

@abdelrhmanKh

Posted

Hi Geethesh Nair, Very Good Work keep up my Friend. Just A quick fix.

  • There are some times you click on the dice but nothing happens, I recomend using the other URL that you enter the number of the advice on the URL so that it came faster with me
fetch(`https://api.adviceslip.com/advice/${Math.floor(Math.random() * 200)}`)
        .then((response) => response.json())
        .then((data) => {
            advice.innerHTML = `ā€œ${data.slip.advice}ā€`;
            adviceId.innerText = data.slip.id;
        }
        );

this is my code you Could use the API Url as I did.

Other than that its Amazing job šŸ„°

0

Geethesh Nairā€¢ 100

@geethesh2610

Posted

Hi @abdelrhmanKh, Much appreciate your advice :)

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord