Skip to content

ostrovamit/wix-tpa-exercise

Repository files navigation

WUT Exercise

Overview

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.

Guidelines

General

  • 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).

Application Behavior

You should implement the missing view according to the following instructions.

  1. 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.

  1. An item should have a title and appropriate image:

  1. 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.

  1. Clicking the button loads the rest of the items that were not rendered on startup:

Note that the button should disappear thereafter.

How to Start

  1. Clone this project.
  2. Make sure your Node.js version is 14 (or newer).
  3. Run npm install which will already install for you wix-ui-tpa.
  4. Run npm start and click on 1 in order to navigate to a viewer URL and see the initial OOI application contained inside a premade Wix live site.
  5. Run npm test to run the tests (they should fail, so don't panic). You can run npm run test:watch if you prefer testing in interactive watch mode.

Good luck! 🙃

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published