Initial Implementation of Project Cards

This commit is contained in:
2023-12-28 21:28:36 -03:00
parent f6c0cb1ca1
commit 12e8aadf7b
18 changed files with 376 additions and 8 deletions

View File

@@ -0,0 +1,33 @@
import {Component, Input} from '@angular/core';
import { faCodeFork, faEye, faStar } from '@fortawesome/free-solid-svg-icons';
import {Project} from "../../shared/model/project/project.model";
import {faScaleBalanced} from "@fortawesome/free-solid-svg-icons/faScaleBalanced";
@Component({
selector: 'app-project-card',
templateUrl: './project-card.component.html',
styleUrls: ['./project-card.component.css']
})
export class ProjectCardComponent {
@Input() inverted: boolean = false;
@Input() project!: Project;
// Stats Icons Definitions
faLicense = faScaleBalanced;
faStars = faStar;
faCodeFork = faCodeFork;
faEye = faEye;
get hasLicense(): boolean {
return this.project.license !== undefined;
}
get hasLanguage(): boolean {
return this.project.languages !== undefined &&
this.project.languages?.length > 0;
}
}