19 changed files with 213 additions and 41 deletions
@ -0,0 +1,53 @@ |
|||
<div class="component-plp"> |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col-12 col-md-10"> |
|||
<div class="row"> |
|||
|
|||
<div class="col-12 pb-1"> |
|||
<input type="text" class="input-gray" placeholder="Cerca..."> |
|||
</div> |
|||
|
|||
<div class="col-12 pb-4"> |
|||
<select class="select"> |
|||
<option value="">Filtra</option> |
|||
<option value="1">Opzione 1</option> |
|||
<option value="2">Opzione 2</option> |
|||
<option value="3">Opzione 3</option> |
|||
<option value="4">Opzione 4</option> |
|||
</select> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox2.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox3.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox4.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox.html')} |
|||
</div> |
|||
<div class="col-12 col-sm-6 col-md-3"> |
|||
${require('../productBox/productBox.html')} |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-12 col-md-2 banner"> |
|||
banner |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
@ -0,0 +1,5 @@ |
|||
|
|||
$(document).ready( () => { |
|||
console.log('Load component - plp') |
|||
|
|||
}) |
@ -0,0 +1,12 @@ |
|||
@import "../../src/scss/variables.scss"; |
|||
@import "../../src/scss/mixins.scss"; |
|||
|
|||
.component-plp { |
|||
padding: 40px 0; |
|||
|
|||
.banner { |
|||
background: $light-gray; |
|||
text-align: center; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,8 @@ |
|||
<div class="component-productBox"> |
|||
<img class="image" src="/images/prod1.png"> |
|||
<div class="d-flex"> |
|||
<span class="title">Nome prodotto </span> |
|||
<span class="price">17,90 €</span> |
|||
</div> |
|||
<button class="button button-black add-to-cart">Aggiungi al carrello</button> |
|||
</div> |
@ -0,0 +1,5 @@ |
|||
|
|||
$(document).ready( () => { |
|||
console.log('Load component - productBox') |
|||
|
|||
}) |
@ -0,0 +1,38 @@ |
|||
@import "../../src/scss/variables.scss"; |
|||
@import "../../src/scss/mixins.scss"; |
|||
|
|||
.component-productBox { |
|||
position: relative; |
|||
padding-bottom: 80px; |
|||
height: 100%; |
|||
|
|||
.image { |
|||
width: 100%; |
|||
padding-bottom: 10px; |
|||
} |
|||
|
|||
.title { |
|||
display: inline-block; |
|||
width: calc(100% - 70px); |
|||
padding-right: 5px; |
|||
font-size: $font-16; |
|||
font-weight: 600; |
|||
line-height: $font-16; |
|||
} |
|||
|
|||
.price { |
|||
display: inline-block; |
|||
width: 70px; |
|||
font-size: $font-16; |
|||
font-weight: light; |
|||
text-align: right; |
|||
white-space: no-wrap; |
|||
} |
|||
|
|||
.add-to-cart{ |
|||
position: absolute; |
|||
bottom: 20px; |
|||
width: 100%; |
|||
} |
|||
} |
|||
|
@ -0,0 +1,8 @@ |
|||
<div class="component-productBox"> |
|||
<img class="image" src="/images/prod2.png"> |
|||
<div class="d-flex"> |
|||
<span class="title">Nome prodotto Nome prodotto Nome prodotto </span> |
|||
<span class="price">170,90 €</span> |
|||
</div> |
|||
<button class="button button-black add-to-cart">Aggiungi al carrello</button> |
|||
</div> |
@ -0,0 +1,8 @@ |
|||
<div class="component-productBox"> |
|||
<img class="image" src="/images/prod3.png"> |
|||
<div class="d-flex"> |
|||
<span class="title">Nome prodotto</span> |
|||
<span class="price">7,90 €</span> |
|||
</div> |
|||
<button class="button button-black add-to-cart">Aggiungi al carrello</button> |
|||
</div> |
@ -0,0 +1,8 @@ |
|||
<div class="component-productBox"> |
|||
<img class="image" src="/images/prod4.png"> |
|||
<div class="d-flex"> |
|||
<span class="title">Nome prodotto</span> |
|||
<span class="price">8,90 €</span> |
|||
</div> |
|||
<button class="button button-black add-to-cart">Aggiungi al carrello</button> |
|||
</div> |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 107 KiB |
@ -0,0 +1,5 @@ |
|||
|
|||
${require('../components/plp/plp.html')} |
|||
|
|||
|
|||
|
Loading…
Reference in new issue