Added contents
This commit is contained in:
parent
8b20acfcc4
commit
5fa5d27008
52 changed files with 537 additions and 139 deletions
|
|
@ -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="#">
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue