Skip to content

Commit

Permalink
feat: added page for unvailable product
Browse files Browse the repository at this point in the history
  • Loading branch information
ichbinkaufmann committed Oct 27, 2023
1 parent 5d79237 commit fe10b1c
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 137 deletions.
5 changes: 3 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<script setup>
import ItemUnavailableVue from "./components/ItemUnavailable.vue";
import StoreCatalog from "./components/StoreCatalog.vue";
import SkeletonLoader from "./components/SkeletonLoader.vue";
import ItemUnavailable from "./components/ItemUnavailable.vue";
</script>

<template>
<SkeletonLoader />
<ItemUnavailable />
</template>

<style scoped></style>
Binary file added src/assets/bg-pattern.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 0 additions & 130 deletions src/assets/bg-shape.svg

This file was deleted.

Binary file added src/assets/sad-face.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions src/assets/style/unavailable.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
:root {
--navyBlue: #002772;
--magentaPurple: #720060;
--lightBlue: #d6e6ff;
--lightPurple: #fde2ff;
--black: #1e1e1e;
--darkGray: #3f3f3f;
--gray: #dcdcdc;
--white: #ffffff;
}

.container {
background-image: url("../bg-pattern.png");
align-items: center;
justify-content: center;
}

body {
background: linear-gradient(to bottom, var(--gray) 70%, var(--white) 30%);
}

.card {
width: 1550px;
margin: 0 auto;
background-color: white;
box-shadow: 0px 0px 1px 1px rgba(0, 0, 0, 0.25);
border-radius: 9px;
height: 70%;
display: flex;
background-image: url("../sad-face.png");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
display: inline-block;
position: relative;
}

.btn-unavailable {
width: 500px;
height: 36px;
background-color: var(--white);
color: va(--black);
font-weight: 600;
}
.unavailable-message {
color: va(--black);
font-weight: 480;
}

.row-unavailable {
position: absolute;
left: 33%;
top: 50%;
text-align: center;
justify-content: center;
}
16 changes: 16 additions & 0 deletions src/components/ItemUnavailable.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<template>
<div class="container">
<div class="card">
<div class="row-unavailable">
<h2 class="unavailable-message">This product is unavailable to show</h2>
<button class="btn-unavailable">Next Product</button>
</div>
</div>
</div>
</template>

<script></script>

<style>
@import url("../assets/style/unavailable.css");
</style>
6 changes: 1 addition & 5 deletions src/components/SkeletonLoader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
</div>
</template>

<script>
export default {
name: "LoaderComponent",
};
</script>
<script></script>

<style>
@import url("../assets/style/skeleton.css");
Expand Down
1 change: 1 addition & 0 deletions src/components/StoreCatalog.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import ItemUnavailable from "./ItemUnavailable.vue";
import SkeletonLoader from "./SkeletonLoader.vue";
</script>

Expand Down

0 comments on commit fe10b1c

Please sign in to comment.