Skip to content

maxfrauscher/shop-app-k24

Repository files navigation

shop-app-k24

alt text

Agenda

  1. General information
  2. Project setup
  3. Navigation
  4. Product page
  5. Cart page
  6. Responsive design

1. General information

The project shop-app-k24 is a fully responsive web shop application. All functionalities are going to be presented in the further course of the documentation.

Author: Maximilian Frauscher

Framework: Vue.js
Plugins: Vuex, Vue Router
Icon Library: Primeicons

2. Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Tests

npm run test:unit

Customize configuration

See Configuration Reference.

3. Navigation

Home: Navigates to the homepage (placeholder).
Products: Navigates to the products page.
Offers: Navigates to the offers page (placeholder).
Service: Navigates to the service page (placeholder).
Cart (Icon): Navigates to the shopping cart.

3.1 Menu point is hovered

Hovering with the mouse over the menu point "Products" highlights its top line with the highlight color orange.

3.2 Menu point is selected

A left mouse click on a menu point selects it. If a menu point is selected it changes the background color to dark gray.

3.3 Items in cart

The number next to the cart shows the amount of products in the cart. It counts each product group without adding the quantity of each product.

4. Product page

The available products are listed on the product page in a grid layout (which changes depending on the width of the client device).

4.1 Single product card

The single product card holds the name, the price and a short description of the product. Below the description there is also a highlighted number of how many products are left in stock and the "Add to Cart" button.

4.2 Add to Cart/ Sold Out

A left mouse click on the "Add to Cart" button adds the product to the cart. There are three states of the button.



normal state: No actions.



hover state: After hovering with the mouse the background color changes to orange.



disabled state: The text changes to "Sold Out" if there are no products left in stock. The button can't be clicked in this state.


4.3 In stock

The in stock field highlights how many products are left in stock. It has two states.



normal state: It shows the number of the remaining pieces.



disabled state: It changes its background color if there are no more products in stock.


5. Cart page

The cart page shows a table of all products added to the cart.

5.1 Cart column

The column holds the information of a single product with its quantity and the price (dependent on the quantity). Also there is the price of each piece in brackets and a remove button to remove each piece from the cart.

5.2 Cart table

The table combines the different products and calculates the total price.

5.2 Remove from cart

The "remove" button removes a product from the cart. If the amount is one the product will be removed completely from the cart. Otherwise if the amount is greater than one the product stays in the cart but the amount will be reduced by one. There are two states of the "remove" button.



normal state: No actions.



hover state: After hovering with the mouse the background color changes to orange.


5.3 Cart is empty

If there is no product in the cart a white bar with the text "The cart is empty" will be shown.

6. Responsive design

The layout of the product page and the cart page will change depending on the device width.


Thanks in advance!
Maximilian Frauscher

About

Shop application for the k24 assesment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published