Added more components

This commit is contained in:
Lorenzo Iovino 2023-12-29 04:34:47 +01:00
parent b48ab87cc6
commit d8057be1b4
28 changed files with 436 additions and 31 deletions

View file

@ -0,0 +1,15 @@
<iov-section [noHeight]="true">
<p class="text-center text-base">
<h2 class="text-2xl font-bold my-8" *ngIf="posts.length > 0">Latest blog post</h2>
<div class="grid grid-cols-3 justify-items-center bg-slate-100 gap-8">
<div *ngFor="let post of posts">
<iov-post-card [post]="post">
</iov-post-card>
</div>
</div>
<div class="text-center" *ngIf="posts.length === 0">
<p class="text-base">No posts yet.</p>
<br>
<a class="text-base" routerLink="/blog">View all posts</a>
</div>
</iov-section>