-
Use cookie to save user's search history in search page.
-
A responsive navbar with functioning hamburger menu.
-
Tailwindcss styling for all the pages and components.
-
Mobile-first development for all the pages and components.
-
Fetch data from gnews.io API
-
Unit tests for components
- Live Site URL: Live site URL here
- React
- Tailwindcss
- Semantic HTML5 markup
- Flexbox
- Mobile-first workflow
- More sections can be added in the home page.
- The FAQ page and contact page can also be completed after the given time period.
- The search page in desktop version has a bit margin problem between history section and result section but it is not obvious, which can be improved when there is more time.
- The hamburger menu can only be closed when clicking on the menu. This can be corrected by adding JavaScript.
- More unit tests can be added.
Create a website that gets news from the GNews api:
https://gnews.io/?ref=apilist.fun
Your website must:
- Include a search area
- Include a results area
- Include tests
- Be hosted on a publicly accessible URL, so we can see it working
You are free to choose:
- How to style all aspects of the page.
- What language and framework to use.
We are looking to understand your approach to solving this problem as much as the actual technical solution. Add comments to your code to help us understand your thinking.
Googling syntax is allowed, googling solutions is not.
Please commit your solution within the time frame given to you, even if your solution is not complete. We will be interested in seeing how you approached the problem.
If you're in the mood for showboating, plese feel free to show us what else you can do. E.g. you could automate tests for your solution.