Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielcgilibert/daily-frontend-challenge
challenge with nextJS 13
https://github.com/danielcgilibert/daily-frontend-challenge
challenge nextjs react tailwindcss typescript
Last synced: 15 days ago
JSON representation
challenge with nextJS 13
- Host: GitHub
- URL: https://github.com/danielcgilibert/daily-frontend-challenge
- Owner: danielcgilibert
- Created: 2023-03-25T17:35:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-03-27T13:42:13.000Z (over 1 year ago)
- Last Synced: 2024-10-08T23:21:26.071Z (about 1 month ago)
- Topics: challenge, nextjs, react, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 158 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DailyPay Front End Engineering Challenge
Welcome Candidate and thank you for taking the time to complete the DailyPay take-home challenge for our senior frontend engineer position
You will have 2 days to complete the assignment. Once you have completed your solution, please reply with a link to a github repository and instructions on how to install / run the application
The goal of this challenge is to build out a "Movie Awards 2021" interactive ballot. Please clone this repository and submit it once you are finished.
Here are the rules of this challenge.. you must:
1. Build an application that displays a list of categories and nominees. Please follow the design in the wireframe below. Run `yarn start` to start the application.
2. Run `yarn backend` to start the server and get access to API methods such as `getBallotData`. Use the React `useEffect` hook to fetch the ballot data from the provided API, and save it to state by using the React `useState` hook.
[useEffect Documentation](https://reactjs.org/docs/hooks-effect.html)
[Fetch API Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch)
[useState Documentation](https://reactjs.org/docs/hooks-state.html)
3. When you click on a nominee, we should highlight the nominee card and save the selections using the React `useState` hook. A user can only select one nominee per category, and we should be able to see all of their selections highlighted. The selected nominee card should follow the style guides below.
4. Make the layout responsive with at least one breakpoint (your choice as to how it looks on a smaller screen width).
5. Once the user is finished making their selections, they can click on a submit button that displays a results modal screen. A user can dismiss the modal by clicking on the close button (follow the wireframe below).## Requirements:
1. All navigation should happen in the same page
2. Demonstrate use of React hooks
3. Demonstrate knowledge of component modularization
4. Utilize CSS to create the layout of the page. Add hover styles to the items the user is interacting with.
5. Create components as you feel is best suited for your solution![Ballot Wireframe](/public/take-home-wire.jpg 'Ballot Wireframe')
![Ballot Success Modal Wireframe](/public/take-home-success.jpg 'Ballot Success Modal Wireframe')## Bonuses
2. Make it pretty
3. Make it accessible
4. Add unit tests## Styling Guidelines
- Use the "Roboto" Google font
- Use the following colors- Page background: - ![#0D2436](https://via.placeholder.com/15/0D2436/000000?text=+) `#0D2436`
- Default/normal font color: ![#FFFFFF](https://via.placeholder.com/15/FFFFFF/000000?text=+) `#FFFFFF`
- Hover font color: ![#CCCCCC](https://via.placeholder.com/15/CCCCCC/000000?text=+) `#CCCCCC`
- Nominee card / submit button background: ![#009B86](https://via.placeholder.com/15/009B86/000000?text=+) `#009B86`
- Selected Nominee card: ![#009B86](https://via.placeholder.com/15/009B86/000000?text=+) `#009B86`
- Nominee card background hover / submit button background hover: ![#34AC9C](https://via.placeholder.com/15/#34AC9C/000000?text=+) `#34AC9C`Good luck and if you have questions, please reach out to us at [email protected]
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.\
You will also see any lint errors in the console.### `yarn backend`
Starts the server which allows the user to access the ballot API.
### `yarn test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `yarn build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)