FORK this repo into your own account and email the link to your project when finished.
Thanks for applying to be a Frontend Developer at Beacon! Instead of asking you to solve a leetcode problem - we'd like to see you complete a task that is actually something you'd do on the job.
This project will consist of taking a page design that's included below and recreate it as a page in a NextJS project.
- Fetch a list of schools from the Beacon API and then display it in a list like the one shown in the design.
- Request permission to access the browser's location. If granted, sort the list of schools from closest -> furthest. If denied, sort the list in alphabetical order (by school name).
- Include a search bar to allow the user to search by school name.
- The design can be viewed here
- Take note of the comments on the page as they clarify some of the details.
- For the background gradient, you can do one from the top left -> bottom right (colors: #4502D9 to #000000)
- If you have trouble with Figma please email me!
- Install the packages with
npm install
and run the project withnpm run dev
- You are free to install any additional packages you see fit.
- Please comment your code to make it easier to review.
- Request the list of schools by performing a
GET
request toapi.sendbeacon.com/team/schools
. - You must run the project on host
3000
or else your browser will get blocked by CORS (this is the default, just don't change it). - Your work should be done in
src/pages/index.tsx
and all styles should be added tosrc/styles/Home.module.css
. - Bootstrap v5 has been included and you're free to use it.
- Your project must be responsive (work on both mobile and desktop).
- The Beacon logo and the search bar icon are already included in the
src/assets/
directory.