Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 8 additions & 28 deletions src/app/pages/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,11 @@
<div class="home__container">
<app-card
gameCover="assets/bt-1.jpg"
gameLabel="DIGITAL"
gameType="DIGITAL | PS4"
gamePrice="R$ 129,99"
>
</app-card>
<app-card
gameCover="assets/bt-4.jpg"
gameLabel="EXCLUSIVE"
gameType="DISC | PS5"
gamePrice="R$ 269,99"
>
</app-card>
<app-card
gameCover="assets/ac-cover.jpg"
gameLabel="BEST OF YEAR"
gameType="DIGITAL | PS5"
gamePrice="R$ 369,99"
>
</app-card>
<app-card
gameCover="assets/bt-hardline.jpg"
gameLabel="NEW"
gameType="DIGITAL | PS3 PS4 PS5"
gamePrice="R$ 369,99"
>
</app-card>
<app-card
*ngFor="let a of game"
[gameCover]="a.gameCover"
[gameLabel]="a.gameLabel"
[gameType]="a.gameType"
[gamePrice]="a.gamePrice"
>
</app-card>
</div>

46 changes: 40 additions & 6 deletions src/app/pages/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,49 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';

@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {
export class HomeComponent {

constructor() { }

ngOnInit(): void {
}
game = [
{
gameCover: 'assets/spiderman.avif',
gameLabel: 'DIGITAL',
gameType: 'DIGITAL | PS4 PS5',
gamePrice: 'R$ 399,50'
},
{
gameCover: 'assets/2k24.avif',
gameLabel: 'DIGITAL',
gameType: 'DIGITAL | PS4 PS5',
gamePrice: 'R$ 499,50'
},
{
gameCover: 'assets/fifa24.avif',
gameLabel: 'DIGITAL',
gameType: 'DIGITAL | PS4 PS5',
gamePrice: 'R$ 528,90'
},
{
gameCover: 'assets/callofduty.avif',
gameLabel: 'EXCLUSIVE',
gameType: 'DISC | PS5',
gamePrice: 'R$ 299,99'
},
{
gameCover: 'assets/nour.avif',
gameLabel: 'BEST OF YEAR',
gameType: 'DIGITAL | PS5',
gamePrice: 'R$ 79,90'
},
{
gameCover:'assets/eternights.avif',
gameLabel: 'STUDIOSAI',
gameType: 'DIGITAL | PS4 PS5',
gamePrice: 'R$ 149,50'
}
]

}