This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
Your goal is to build a website component in Next.js using a combination of JavaScript, HTML, and CSS.
- Build a component consistent with the design (see screenshot and design below)
- Retrieve the questions and answers from the
db.json
file located in the_data
folder using the providedjson-server
package andgetData
function. - Use the included
id
to sort and number the questions in chronological order for display on the page - Your code should be able to handle additional FAQs added in the future
- The answers should be hidden by default and revealed when the user clicks the question
- Show off your CSS skills and include some animations if you have time
- Create a new branch, with your name as part of the branch name, and push your code to it at the end of the time limit
๐จ Some baseline styles, header, footer, fonts and brand colors have been provided as well as an SVG image from the design.
This project includes a json file in the _data
folder. To use it install json-server
and run npx json-server --watch --port 4000 ./_data/db.json
. There is a getData
function already built that will get the data.
The design file can be viewed here: https://www.figma.com/file/qM1evJc5mx2Pw6J6gkNnTk/Dev-Task-Design?type=design&node-id=1%3A7&mode=design&t=FDPoBROl4DgY9O8c-1
๐คซ Hint: Use Figma dev mode to get specifics on styles and colors
Use any resources at your disposal aside from AI tools. Google, Stackoverflow, and other web resources are all fair game. You can reach out to the interviewers with questions as well.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.