mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
ajustando banner, produtos e ucibes
This commit is contained in:
parent
4a831f8c0d
commit
758dbdf42e
10 changed files with 38 additions and 20 deletions
|
|
@ -8,7 +8,7 @@ export class UserService extends UserData {
|
||||||
private time: Date = new Date;
|
private time: Date = new Date;
|
||||||
|
|
||||||
private users = {
|
private users = {
|
||||||
nick: { name: 'Nick Jones', picture: 'assets/images/nick.png' },
|
nick: { name: 'DG', picture: 'assets/images/Logo_siglas.png' },
|
||||||
eva: { name: 'Eva Moor', picture: 'assets/images/eva.png' },
|
eva: { name: 'Eva Moor', picture: 'assets/images/eva.png' },
|
||||||
jack: { name: 'Jack Williams', picture: 'assets/images/jack.png' },
|
jack: { name: 'Jack Williams', picture: 'assets/images/jack.png' },
|
||||||
lee: { name: 'Lee Wong', picture: 'assets/images/lee.png' },
|
lee: { name: 'Lee Wong', picture: 'assets/images/lee.png' },
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
<nb-select
|
<nb-select
|
||||||
[selected]="currentTheme"
|
[selected]="currentTheme"
|
||||||
(selectedChange)="changeTheme($event)"
|
(selectedChange)="changeTheme($event)"
|
||||||
|
[hidden]="true"
|
||||||
status="primary"
|
status="primary"
|
||||||
>
|
>
|
||||||
<nb-option *ngFor="let theme of themes" [value]="theme.value">
|
<nb-option *ngFor="let theme of themes" [value]="theme.value">
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,7 @@
|
||||||
ngx-room-selector {
|
ngx-room-selector {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
border-right: nb-theme(divider-width) nb-theme(divider-style) nb-theme(divider-color);
|
border-right: nb-theme(divider-width) nb-theme(divider-style) nb-theme(divider-color);
|
||||||
background: url('../../../../assets/images/square_pattern.svg') repeat;
|
|
||||||
background-size: 75px;
|
background-size: 75px;
|
||||||
|
|
||||||
&.dark-background {
|
|
||||||
background-image: url('../../../../assets/images/square_pattern_cosmic.svg');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx-player {
|
ngx-player {
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<img [src]="product.img_urls[0]" />
|
<img [src]="product.img_urls[0]" />
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<span *ngIf="product.isPromoted" class="badge">Destaque</span>
|
<span *ngIf="product.isPromoted" class="badge">Impulsionado</span>
|
||||||
</nb-card-header>
|
</nb-card-header>
|
||||||
<nb-card-body>
|
<nb-card-body>
|
||||||
<h5 class="card-title">{{ product.name }}</h5>
|
<h5 class="card-title">{{ product.name }}</h5>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
.product {
|
.product {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
min-height: 365px;
|
||||||
|
max-height: 365px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-img-top {
|
.card-img-top {
|
||||||
|
|
@ -60,7 +62,7 @@
|
||||||
|
|
||||||
.card-img-top span.badge {
|
.card-img-top span.badge {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: blue;
|
background: #107e02;
|
||||||
color:white;
|
color:white;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,17 @@
|
||||||
|
|
||||||
mdb-carousel {
|
mdb-carousel {
|
||||||
width: 100%; /* Largura total do carrossel */
|
width: 100%; /* Largura total do carrossel */
|
||||||
height: 320px; /* Altura do carrossel */
|
height: auto; /* Altura do carrossel */
|
||||||
}
|
}
|
||||||
|
|
||||||
mdb-carousel-item {
|
.carousel-item {
|
||||||
width: 100%; /* A imagem ocupa toda a largura do carrossel */
|
width: 100%; /* A imagem ocupa toda a largura do carrossel */
|
||||||
height: 80%; /* A imagem ocupa toda a altura do carrossel */
|
height: 367px; /* A imagem ocupa toda a altura do carrossel */
|
||||||
max-height: 320px;
|
max-height: 367px;
|
||||||
object-fit: cover; /* A imagem será cortada para cobrir o espaço sem distorcer */
|
}
|
||||||
|
|
||||||
|
.carousel-item img {
|
||||||
|
width: 100%; /* A imagem ocupa toda a largura do carrossel */
|
||||||
|
height: 367px; /* A imagem ocupa toda a altura do carrossel */
|
||||||
|
max-height: 367px;
|
||||||
}
|
}
|
||||||
|
|
@ -15,14 +15,20 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="d-flex flex-col">
|
|
||||||
<h2>Anúncios patrocinados</h2>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex flex-row flex-nowrap overflow-auto">
|
<div class="d-flex flex-row flex-nowrap overflow-auto">
|
||||||
<div *ngFor="let product of products" class="card-col">
|
<div *ngFor="let product of products" class="card-col">
|
||||||
<ngx-product-card [product]="product"></ngx-product-card>
|
<ngx-product-card [product]="product"></ngx-product-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="d-flex flex-row flex-nowrap overflow-auto">
|
||||||
|
<div *ngFor="let product of recentProducts" class="card-col">
|
||||||
|
<ngx-product-card [product]="product"></ngx-product-card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ mdb-carousel-item {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 970px;
|
width: 970px;
|
||||||
height: 90px;
|
height: 90px;
|
||||||
margin: 24px 12px;
|
|
||||||
border: 1px gray;
|
border: 1px gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ export class HomeComponent implements OnDestroy {
|
||||||
banners: Banner[];
|
banners: Banner[];
|
||||||
categories: Category[];
|
categories: Category[];
|
||||||
products: Product[];
|
products: Product[];
|
||||||
|
recentProducts: Product[];
|
||||||
paidAds: any[];
|
paidAds: any[];
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
@ -66,14 +67,14 @@ export class HomeComponent implements OnDestroy {
|
||||||
"id": "acessorios",
|
"id": "acessorios",
|
||||||
"updatedAt": new Date(),
|
"updatedAt": new Date(),
|
||||||
"createdAt": new Date(),
|
"createdAt": new Date(),
|
||||||
"icon": "fa-scissors"
|
"icon": "fa-binoculars"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Outros",
|
"name": "Outros",
|
||||||
"id": "outros",
|
"id": "outros",
|
||||||
"updatedAt": new Date(),
|
"updatedAt": new Date(),
|
||||||
"createdAt": new Date(),
|
"createdAt": new Date(),
|
||||||
"icon": "fa-spider"
|
"icon": "fa-plus"
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
@ -110,7 +111,7 @@ export class HomeComponent implements OnDestroy {
|
||||||
previousPrice: 199,
|
previousPrice: 199,
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
isActive: true,
|
isActive: true,
|
||||||
isPromoted: false,
|
isPromoted: true,
|
||||||
viewCount: 0,
|
viewCount: 0,
|
||||||
img_urls: [
|
img_urls: [
|
||||||
"../../../assets/images/Exaustor2.png"
|
"../../../assets/images/Exaustor2.png"
|
||||||
|
|
@ -261,6 +262,15 @@ export class HomeComponent implements OnDestroy {
|
||||||
]
|
]
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
this.recentProducts = JSON.parse(JSON.stringify(this.products))
|
||||||
|
|
||||||
|
this.recentProducts = this.recentProducts.reverse()
|
||||||
|
|
||||||
|
this.recentProducts.forEach(p => {
|
||||||
|
p.isPromoted = false;
|
||||||
|
return p;
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
|
|
||||||
BIN
src/assets/images/Logo_siglas.png
Normal file
BIN
src/assets/images/Logo_siglas.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 514 KiB |
Loading…
Add table
Add a link
Reference in a new issue