{"id":20294657,"url":"https://github.com/amrmabdelazeem/advice-generator-app","last_synced_at":"2025-09-12T00:45:06.920Z","repository":{"id":209510870,"uuid":"724254626","full_name":"amrmabdelazeem/advice-generator-app","owner":"amrmabdelazeem","description":"Use Advice slip API to create a random advice.","archived":false,"fork":false,"pushed_at":"2023-11-28T19:27:46.000Z","size":327,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T09:41:01.887Z","etag":null,"topics":["animations-css","api","flexbox","html-css-javascript","javascriptes6"],"latest_commit_sha":null,"homepage":"https://amrmabdelazeem.github.io/advice-generator-app/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amrmabdelazeem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T17:54:41.000Z","updated_at":"2023-11-28T19:27:08.000Z","dependencies_parsed_at":"2023-11-27T19:28:00.052Z","dependency_job_id":"f14d6fa0-0be2-4fee-ae07-fb032420851c","html_url":"https://github.com/amrmabdelazeem/advice-generator-app","commit_stats":null,"previous_names":["amrmabdelazeem/advice-generator-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amrmabdelazeem%2Fadvice-generator-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amrmabdelazeem%2Fadvice-generator-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amrmabdelazeem%2Fadvice-generator-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amrmabdelazeem%2Fadvice-generator-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amrmabdelazeem","download_url":"https://codeload.github.com/amrmabdelazeem/advice-generator-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241789718,"owners_count":20020529,"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":["animations-css","api","flexbox","html-css-javascript","javascriptes6"],"created_at":"2024-11-14T15:30:15.617Z","updated_at":"2025-03-04T05:26:32.880Z","avatar_url":"https://github.com/amrmabdelazeem.png","language":"CSS","funding_links":[],"categories":[],"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  - [Screenshot](#screenshot)\n  - [Links](#links)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Useful resources](#useful-resources)\n- [Author](#author)\n\n\n## Overview\n\n![Design preview for the Advice generator app coding challenge](./design/desktop-preview.jpg)\n\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### Screenshot\n\n![Laptop](screenshots/kgQKPKzz5H.jpg)\n---\n![Mobile](screenshots/kgQKPKzz5Hz.png)\n\n### Links\n\n- Solution URL: [Frontend Mentor](https://www.frontendmentor.io/solutions/advice-generator-app-with-api-6qqe6OkHW2)\n- Live Site URL: [Github Pages](https://amrmabdelazeem.github.io/advice-generator-app/)\n\n## My process\n\n- Understand the Design: Analyze the layout, styling, and functionality required for the intro section and dropdown navigation.\n- Create the HTML structure, use appropriate HTML elements, and make sure to include all necessary classes and IDs.\n- Apply mobile-first approch.\n- Apply the styles to achieve the layout and appearance described in the design.\n- Use CSS Flexbox and position to control elements layout as needed.\n- Implement responsive design to ensure the solution looks good on both mobiles (375px) and laptops (1440px).\n- Research for the needed API to fetch it in the project.\n- Use Javascript to call the API and add functionality through out the interface.\n- Add Functionality to the dice icon to show and change advices.\n- Build Laptop preview to fit the design using media queries and test it.\n- Test the finish result.\n\n- ## Bonus: Add animation to the dice to shake when hovered.\n\n\n### Built with\n\n- Semantic HTML5 markup\n- CSS custom properties\n- Flexbox\n- Mobile-first workflow\n- Responsive design\n- JavaScript (E6)\n- API\n- Animation\n\n### What I learned\n\nThis is the first project on frontend mentor using async await function:\n\n```js\nasync function getApi(apiUrl){\n    const response = await fetch(apiUrl);\n    var data = await response.json();\n}\n```\n\n### Useful resources\n\n- [Advice API](https://api.adviceslip.com/) - This helped me get a random advice.\n\n- [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/)\n\n## Author\n\n- Website - [Github](https://github.com/amrmabdelazeem)\n- Frontend Mentor - [@amrmabdelazeem](https://www.frontendmentor.io/profile/amrmabdelazeem)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrmabdelazeem%2Fadvice-generator-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famrmabdelazeem%2Fadvice-generator-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrmabdelazeem%2Fadvice-generator-app/lists"}