adicionando banners e produtos
|
@ -1,16 +1,23 @@
|
|||
<mdb-carousel [indicators]="true" [animation]="'fade'">
|
||||
<mdb-carousel-item>
|
||||
<img
|
||||
src="../../../../assets/images/Banner1animadogif.gif"
|
||||
src="../../../../assets/images/Banner3.jpg"
|
||||
class="d-block w-100"
|
||||
alt="Banner1"
|
||||
/>
|
||||
</mdb-carousel-item>
|
||||
</mdb-carousel-item>
|
||||
<mdb-carousel-item>
|
||||
<img
|
||||
src="../../../../assets/images/Banner2.jpg"
|
||||
src="../../../../assets/images/BannerFinal2.jpg"
|
||||
class="d-block w-100"
|
||||
alt="Banner2"
|
||||
/>
|
||||
</mdb-carousel-item>
|
||||
<mdb-carousel-item>
|
||||
<img
|
||||
src="../../../../assets/images/BannerFinal3.jpg"
|
||||
class="d-block w-100"
|
||||
alt="Banner3"
|
||||
/>
|
||||
</mdb-carousel-item>
|
||||
</mdb-carousel>
|
||||
|
|
|
@ -22,6 +22,7 @@ mdb-carousel {
|
|||
|
||||
mdb-carousel-item {
|
||||
width: 100%; /* A imagem ocupa toda a largura do carrossel */
|
||||
height: 320px; /* A imagem ocupa toda a altura do carrossel */
|
||||
height: 80%; /* A imagem ocupa toda a altura do carrossel */
|
||||
max-height: 320px;
|
||||
object-fit: cover; /* A imagem será cortada para cobrir o espaço sem distorcer */
|
||||
}
|
|
@ -24,28 +24,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="d-flex flex-col">
|
||||
<h2>Anúncios testes</h2>
|
||||
</div>
|
||||
<div class="d-flex flex-row flex-nowrap overflow-auto">
|
||||
<div *ngFor="let paidAds of paidAds" class="card-col">
|
||||
<ngx-product-card></ngx-product-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
<div class="d-flex flex-col">
|
||||
<h2>Anúncios padrão</h2>
|
||||
</div>
|
||||
<div class="d-flex flex-row flex-nowrap overflow-auto">
|
||||
<div *ngFor="let product of products" class="card-col">
|
||||
<ngx-product-card></ngx-product-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -35,42 +35,42 @@ export class HomeComponent implements OnDestroy {
|
|||
this.categories = [
|
||||
{
|
||||
"name": "Iluminação",
|
||||
"id": "Iluminacao",
|
||||
"id": "iluminacao",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-lightbulb"
|
||||
},
|
||||
{
|
||||
"name": "Exaustores/Filtros",
|
||||
"id": "Exaustores",
|
||||
"id": "exaustores",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-fan"
|
||||
},
|
||||
{
|
||||
"name": "Estufas",
|
||||
"id": "Estufas",
|
||||
"id": "estufas",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-home"
|
||||
},
|
||||
{
|
||||
"name": "Medidores",
|
||||
"id": "Medidores",
|
||||
"id": "medidores",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-thermometer"
|
||||
},
|
||||
{
|
||||
"name": "Acessórios",
|
||||
"id": "Acessorios",
|
||||
"id": "acessorios",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-scissors"
|
||||
},
|
||||
{
|
||||
"name": "Outros",
|
||||
"id": "Outros",
|
||||
"id": "outros",
|
||||
"updatedAt": new Date(),
|
||||
"createdAt": new Date(),
|
||||
"icon": "fa-spider"
|
||||
|
@ -81,61 +81,186 @@ export class HomeComponent implements OnDestroy {
|
|||
this.products = [{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "1",
|
||||
categoryId: "exaustores",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Maquina de lavar roupa 14kg sper blaster",
|
||||
name: "Exaustor Leds Indoor",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 3458.10,
|
||||
previousPrice: 4458.10,
|
||||
price: 177,
|
||||
previousPrice: 249,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"https://img.olx.com.br/images/89/890461810585731.webp"
|
||||
"../../../assets/images/Exaustor1.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "1",
|
||||
categoryId: "exaustores",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Maquina de lavar roupa 14kg sper blaster 2",
|
||||
name: "Exaustor MarsHydro",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 3458.10,
|
||||
previousPrice: 4458.10,
|
||||
price: 149,
|
||||
previousPrice: 199,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: false,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"https://img.olx.com.br/images/89/890461810585731.webp"
|
||||
"../../../assets/images/Exaustor2.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "1",
|
||||
categoryId: "exaustores",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Maquina de lavar roupa 14kg sper blaster 3",
|
||||
name: "Exaustor Branco",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 3458.10,
|
||||
price: 120,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"https://img.olx.com.br/images/89/890461810585731.webp"
|
||||
"../../../assets/images/Exaustor3.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "exaustores",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Exaustor HighPro",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 199,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/Exaustor4.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "iluminacao",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "LED 640W",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 1899,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/Iluminacao1.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "iluminacao",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "LED Duplo",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 1199,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/Iluminacao2.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "iluminacao",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "LED 240W",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 649,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/Iluminacao3.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "estufas",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Estufa Simples",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 650,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/tenda2.jpg"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "estufas",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Estufa Tripla",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 2400,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/tenda8.png"
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "1",
|
||||
userId: "1",
|
||||
categoryId: "estufas",
|
||||
sub_categoryId: "1",
|
||||
brandId: "1",
|
||||
name: "Estufa Master",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 1600,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
isPromoted: true,
|
||||
viewCount: 0,
|
||||
img_urls: [
|
||||
"../../../assets/images/tenda5.png"
|
||||
]
|
||||
}]
|
||||
|
||||
this.paidAds = [1,1,1]
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
|
|
@ -95,7 +95,7 @@ export class ProductDetailsComponent implements OnDestroy {
|
|||
name: "Maquina de lavar roupa 14kg sper blaster 2",
|
||||
description: "",
|
||||
conditionId: "1",
|
||||
price: 3458.10,
|
||||
price: 3.5,
|
||||
previousPrice: 4458.10,
|
||||
createdAt: new Date(),
|
||||
isActive: true,
|
||||
|
|
BIN
src/assets/images/Banner3.jpg
Normal file
After Width: | Height: | Size: 196 KiB |
BIN
src/assets/images/Banner3.png
Normal file
After Width: | Height: | Size: 566 KiB |
BIN
src/assets/images/BannerFinal2.jpg
Normal file
After Width: | Height: | Size: 151 KiB |
BIN
src/assets/images/BannerFinal3.jpg
Normal file
After Width: | Height: | Size: 206 KiB |
BIN
src/assets/images/Exaustor1.png
Normal file
After Width: | Height: | Size: 153 KiB |
BIN
src/assets/images/Exaustor2.png
Normal file
After Width: | Height: | Size: 452 KiB |
BIN
src/assets/images/Exaustor3.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
src/assets/images/Exaustor4.png
Normal file
After Width: | Height: | Size: 188 KiB |
BIN
src/assets/images/Iluminacao1.png
Normal file
After Width: | Height: | Size: 287 KiB |
BIN
src/assets/images/Iluminacao2.png
Normal file
After Width: | Height: | Size: 311 KiB |
BIN
src/assets/images/Iluminacao3.png
Normal file
After Width: | Height: | Size: 468 KiB |
BIN
src/assets/images/Iluminacao4.png
Normal file
After Width: | Height: | Size: 382 KiB |
BIN
src/assets/images/Iluminacao5.png
Normal file
After Width: | Height: | Size: 227 KiB |
BIN
src/assets/images/Iluminacao6.png
Normal file
After Width: | Height: | Size: 538 KiB |
BIN
src/assets/images/Iluminacao7.jpg
Normal file
After Width: | Height: | Size: 110 KiB |
BIN
src/assets/images/Iluminacao8.jpeg
Normal file
After Width: | Height: | Size: 123 KiB |
BIN
src/assets/images/Iluminacao9.jpeg
Normal file
After Width: | Height: | Size: 223 KiB |
Before Width: | Height: | Size: 164 KiB |
Before Width: | Height: | Size: 214 KiB |
Before Width: | Height: | Size: 201 KiB |
Before Width: | Height: | Size: 218 KiB |
Before Width: | Height: | Size: 227 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 149 KiB |
Before Width: | Height: | Size: 155 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 145 KiB |
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:none;stroke:#ebeef2;stroke-miterlimit:10;}</style></defs><title>Asset 2_svg</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><line class="cls-1" x1="75" x2="75" y2="150"/><line class="cls-1" x1="150" y1="75" y2="75"/></g></g></svg>
|
Before Width: | Height: | Size: 350 B |
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.cls-1{fill:none;stroke:#1b1b38;stroke-miterlimit:10;}</style></defs><title>Asset 2_svg</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><line class="cls-1" x1="75" x2="75" y2="150"/><line class="cls-1" x1="150" y1="75" y2="75"/></g></g></svg>
|
Before Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 610 KiB |
BIN
src/assets/images/tenda1.png
Normal file
After Width: | Height: | Size: 614 KiB |
BIN
src/assets/images/tenda2.jpg
Normal file
After Width: | Height: | Size: 136 KiB |
BIN
src/assets/images/tenda4.png
Normal file
After Width: | Height: | Size: 414 KiB |
BIN
src/assets/images/tenda5.png
Normal file
After Width: | Height: | Size: 386 KiB |
BIN
src/assets/images/tenda6.png
Normal file
After Width: | Height: | Size: 406 KiB |
BIN
src/assets/images/tenda7.png
Normal file
After Width: | Height: | Size: 222 KiB |
BIN
src/assets/images/tenda8.png
Normal file
After Width: | Height: | Size: 439 KiB |