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
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
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.
npm test
Runs eslint and typescript linting
npm run lint
I focussed on the business requirements of the code test. I intentionally stopped working on the test as I was going over time, and I read a note from the hiring manager that was totally ok.
For the ratings icons, I could use pure CSS for both or use an SVG. I would need to chat to the designer to understand the business requirements
I found this CSS star icon: https://codepen.io/anefzaoui/pen/NWPZzMa
And the round icon I could do from memory.
I would put some more time into the component structure as time went on...