{"id":15862735,"url":"https://github.com/danutsss/advice-generator-application","last_synced_at":"2025-04-01T20:45:07.633Z","repository":{"id":166140180,"uuid":"477839927","full_name":"danutsss/advice-generator-application","owner":"danutsss","description":"Advice generator application built with HTML, CSS and JavaScript.","archived":false,"fork":false,"pushed_at":"2022-04-04T19:18:40.000Z","size":261,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T13:38:10.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/danutsss.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":"2022-04-04T19:14:00.000Z","updated_at":"2022-04-04T19:18:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ee56b59-48b5-44dd-81d7-bf5908af6f4e","html_url":"https://github.com/danutsss/advice-generator-application","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"2ac48f1ca045c307405ae23799e86c2e39e1e391"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fadvice-generator-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fadvice-generator-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fadvice-generator-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danutsss%2Fadvice-generator-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danutsss","download_url":"https://codeload.github.com/danutsss/advice-generator-application/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709918,"owners_count":20821298,"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":[],"created_at":"2024-10-05T22:42:09.082Z","updated_at":"2025-04-01T20:45:07.604Z","avatar_url":"https://github.com/danutsss.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advice generator application - Solution\n\nThis is a solution to the [Advice generator app challenge on NewTech Github](https://github.com/Newtech-Academy/28feb_group/tree/Project-Advice-Generator-App).\n\n## Table of contents\n\n- [Overview](#overview)\n  - [The challenge](#the-challenge)\n  - [Screenshot](#screenshot)\n- [My process](#my-process)\n  - [Built with](#built-with)\n  - [What I learned](#what-i-learned)\n  - [Useful resources](#useful-resources)\n\n## Overview\n\n### The challenge\n\nMy challange was to create an app that generates a random advice for the user.\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 cliking on the dice icon.\n\n### Screenshot\n\n![Advice generator application](https://i.imgur.com/UQzRO6N.png)\n\n\u003c!-- ### Links\n\n- Solution URL: [Add solution URL here](https://your-solution-url.com)\n- Live Site URL: [Add live site URL here](https://your-live-site-url.com) --\u003e\n\n## My process\n\n### Built with\n\n- Semantic HTML5 markup;\n- CSS custom properties;\n- Flexbox;\n- Mobile-first workflow;\n- JavaScript.\n\n### What I learned\n\nWorking on this project I learned about using the Fetch API for JavaScript.\n\n```js\nfetch(\"https://api.adviceslip.com/advice\")\n    .then((response) =\u003e response.json())\n    .then((data) =\u003e {\n        adviceID.textContent = \"Advice #\" + data.slip.id;\n        adviceQuote.textContent = data.slip.advice;\n    });\n```\n\n### Useful resources\n\n- [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) - This helped me understand what is Fetch API.\n- [Using the Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch) - This is an amazing article which helped me finally understand using the Fetch API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanutsss%2Fadvice-generator-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanutsss%2Fadvice-generator-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanutsss%2Fadvice-generator-application/lists"}