This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Generate a new piece of advice by clicking the dice icon
- Solution URL: Front End Mentor
- Live Site URL: Vercel
- Flexbox
- Mobile-first workflow
- Sass - CSS Preprocessors
/* CSS */
@media (pointer: coarse) {
// styles to target touch devices
}
@media (pointer: fine) {
// styles to target non-touch devices
}
// JavaScript
async function someFunction() {
const response = await fetch(url, {
mode: "cors",
});
const data = await response.json();
}
// Sass
$variable: white;
.parent {
//...
& .child {
//...
}
}
- Website - El Bhiruni
- Frontend Mentor - @elbhiruni