Everything you need to build a Svelte project, powered by create-svelte
.
If you're seeing this, you've probably already done this step. Congrats!
# install dependencies
npm install
# start local development version
npm run dev
# or start the server and open the app in a new browser tab, project should be available on http://localhost:5173 in your browser
npm run dev -- --open
I also added a fake API - getFromApi
for retrieving fake cart and products data. See example in index.svelte for usage. Both include a delay to simulate network loading.
Display a loading info while the products are in loading state;
Display a tile for each product with the following infos:
In the grid the minimum tile width should be 300px with maximum 7 tiles in a row being displayed on screen.
The tiles should be displayed in a grid and as one column on screens below 480px.
The layout of the tiles and their content should be optimised for mobile view below 480px and optimised for desktop view above 480px.
Add a search input field on top that allows filtering the products that contain the input in the product name.
Bonus task:
sku
field to find the matching products);Even though this project is fairly simple try to organize it like you would do for larger components.
Your solution should scale with your experience.
Be prepared to explain your solution and your code in 15 minutes presentation.
Feel free to reach out if you have any questions.
Good luck