{"id":13580213,"url":"https://github.com/markteekman/advice-generator-app","last_synced_at":"2026-05-08T01:48:41.701Z","repository":{"id":41404060,"uuid":"509437682","full_name":"markteekman/advice-generator-app","owner":"markteekman","description":"Frontend Mentor challenge \"Advice Generator App\" using CSS Flexbox and Grid, Accessibility best practices, CSS Animations and the Fetch API for the random advices.","archived":false,"fork":false,"pushed_at":"2022-09-06T14:23:20.000Z","size":666,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T03:26:04.374Z","etag":null,"topics":["accessibility","astro","css-animations","css-grid","flexbox","html","javascript","scss","wcag"],"latest_commit_sha":null,"homepage":"https://markteekman.github.io/advice-generator-app/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markteekman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-01T11:57:23.000Z","updated_at":"2023-07-25T14:58:55.000Z","dependencies_parsed_at":"2023-01-17T22:15:58.575Z","dependency_job_id":null,"html_url":"https://github.com/markteekman/advice-generator-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"markteekman/accessible-astro-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markteekman%2Fadvice-generator-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markteekman%2Fadvice-generator-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markteekman%2Fadvice-generator-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markteekman%2Fadvice-generator-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markteekman","download_url":"https://codeload.github.com/markteekman/advice-generator-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226186,"owners_count":20904465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","astro","css-animations","css-grid","flexbox","html","javascript","scss","wcag"],"created_at":"2024-08-01T15:01:48.746Z","updated_at":"2026-05-08T01:48:41.583Z","avatar_url":"https://github.com/markteekman.png","language":"SCSS","funding_links":[],"categories":["SCSS"],"sub_categories":[],"readme":"# Frontend Mentor - Advice generator app solution\n\nThis is a solution to the [Advice generator app challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/advice-generator-app-QdUG-13db). Frontend Mentor challenges help you improve your coding skills by building realistic projects.\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Extra challenges](#extra-challenges)\n  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Continued development](#continued-development)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n\n## Overview\n\n### The challenge\n\nUsers should be able to:\n\n- View the optimal layout for the app depending on their device's screen size\n- See hover states for all interactive elements on the page\n- Generate a new piece of advice by clicking the dice icon\n\n### Extra challenges\n\nAs an extra challenge I will do the following things:\n\n- Add smooth animations for better interactivity.\n- Make the game accessible according to WCAG 2.1 standards, things like color contrast, clear element focus and the correct screen reader contexts.\n\n### Screenshot\n\n![social-preview-image](https://user-images.githubusercontent.com/3909046/188659932-70509658-5214-410e-a5b1-dec7c02d6778.png)\n\n### Links\n\n- [Solution URL](https://www.frontendmentor.io/solutions/astro-wcag-accessibility-css-animations-and-vanilla-javascript-yYt6kptml_)\n- [Live Site URL](https://markteekman.github.io/advice-generator-app/)\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n- CSS Grid\n- WCAG 2.1 best practices\n- CSS Animations\n- Vanilla JavaScript\n- Fetch API\n- [Animations.css library](https://animate.style/)\n- [Astro](https://astro.build) - Astro Static Site Generator\n- [Accessible Astro Starter](https://github.com/markteekman/accessible-astro-starter) - My own starter template for Astro\n\n### What I learned\n\n- I wanted to try out a CSS Animations library for a change, instead of writing it myself. I used [Animations.css](https://animate.style/) for this project. I really like the library, it's easy to use and has a lot of animations to choose from. I used the `bounceIn` animation for the dice icon and the `fadeIn` animation for the advice text.\n\n- I had a problem in Firefox that I couldn't get the latest quote, which seemed to have something to do with caching. I solved this by adding a `no-store` option to the fetch request.\n\n```js\nfetch('https://api.adviceslip.com/advice', { cache: 'no-store' })\n```\n\n### Continued development\n\nNothing at the moment.\n\n### Useful resources\n\n- [Animations.css](https://animate.style/) - This is a great library for CSS animations. It has a lot of animations to choose from and is easy to use.\n- [Stack Overflow](https://stackoverflow.com/questions/29246444/fetch-how-do-you-make-a-non-cached-request) - This is a great resource for finding solutions to problems. I used it to find a solution for the Firefox caching problem.\n\n## Author\n\n- [Personal Website](https://www.markteekman.nl)\n- [Frontend Mentor Profile](https://www.frontendmentor.io/profile/markteekman)\n- [LinkedIn Profile](https://nl.linkedin.com/in/markteekman)\n- [Twitter Profile](https://twitter.com/MarkTeekman)\n- [GitHub Repositories](https://github.com/markteekman)\n- [NPM Packages](https://www.npmjs.com/~markteekman)\n- [CodePen Creations](https://codepen.io/markteekman)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkteekman%2Fadvice-generator-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkteekman%2Fadvice-generator-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkteekman%2Fadvice-generator-app/lists"}