Added contents

This commit is contained in:
Lorenzo Iovino 2023-12-31 01:04:33 +01:00
parent 8b20acfcc4
commit 5fa5d27008
52 changed files with 537 additions and 139 deletions

View file

@ -1,8 +1,7 @@
<!-- This is an example component -->
<div class="">
<div class="bg-white shadow-md border border-gray-200 rounded-lg max-w-sm mb-5">
<a href="/blog/{{post?.slug}}">
<img class="rounded-t-lg" src="{{post?.image}}" alt="">
<img class="rounded-t-lg" ngSrc="{{post?.image}}" alt="" width="300" height="200">
</a>
<div class="p-5">
<a href="#">

View file

@ -1,12 +1,13 @@
import {Component, Input} from '@angular/core';
import {Post} from "../models/post";
import {JsonPipe} from "@angular/common";
import {JsonPipe, NgOptimizedImage} from "@angular/common";
@Component({
selector: 'iov-post-card',
standalone: true,
imports: [
JsonPipe
JsonPipe,
NgOptimizedImage
],
templateUrl: './post-card.component.html',
styleUrl: './post-card.component.scss'