The exercise is to implement a gallery inside OOI application with a basic grid including items:
Notice the "Load More" button at the bottom, which loads more items after clicking and then disappears.
- You should use both components and testkits from wix-ui-tpa.
- You don't need to add additional CSS (all needed styles are already implemented), but you do need to override using style params.
- You don't need to create an application nor widget in the dev center, this repository is already connected to such.
- You don't need to implement any data for the items but simply use it.
- All tests should be completed and pass.
- Consider starting with going over the tests so they would instruct you what to implement next (you'll find in the code parts that you need to complete).
You should implement the missing view according to the following instructions.
- The widget title should appear at the top of the page and below a grid of items:
Each row contains 3 items and on startup should appear 4 rows at most.
- An item should have a title and appropriate image:
- After scrolling down to the edge, there is a button called "Load More":
The button should be styled correctly using the style params (they're already implemented, you just need to use them). Remember, you're not supposed to use CSS properties at all but rather pass these style params using the style API of the relevant component.
- Clicking the button loads the rest of the items that were not rendered on startup:
Note that the button should disappear thereafter.
- Clone this project.
- Make sure your Node.js version is 14 (or newer).
- Run
npm install
which will already install for you wix-ui-tpa. - Run
npm start
and click on1
in order to navigate to a viewer URL and see the initial OOI application contained inside a premade Wix live site. - Run
npm test
to run the tests (they should fail, so don't panic). You can runnpm run test:watch
if you prefer testing in interactive watch mode.
Good luck! 🙃