phones.json
and phones/:phoneId.json
files in the api
folder.img/phones
folder grouped by phone models and colors.id
is required to fetch product details;name
with a product name;image
with a link to the first image relative to a public
folder;price
and fullPrice
to show the discount;year
is used to sort by Newest
;capacity
and color
that can be chosen on product details page.src/components
folder.
index.ts
, ComponentName.tsx
, ComponentName.module.scss
files..module.scss
files together with their components.~~src/modules
folder. Inside per page modules HomePage
, CartPage
, ect. and shared
folder. with shared content between modules.~~components
folder with the structure described above. And optionally other files/folders: hoocs
, constants
and so on.Back to top
button.
Back to top
button should scroll to the top smoothly;NotFoundPage
containing text Page not found
for all the unknown URLs.There should be 3 separate pages /phones
, /tablets
and /accessories
.