Improved ArticleTile

This commit is contained in:
Mia Rose Winter 2024-01-25 16:56:33 +01:00
parent 1601e80dfb
commit 4de4efba64
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 8 additions and 4 deletions

View file

@ -1,13 +1,17 @@
@using Wave.Data
<ArticleLink Article="Article">
<article class="card card-compact bg-base-200 text-base-content rounded-none h-full">
<article class="card card-compact min-h-56 bg-base-200 text-base-content rounded-sm h-full">
<div class="card-body">
<h3 class="card-title line-clamp-2">@Article.Title</h3>
<small class="text-sm">By @Article.Author.Name</small>
<p class="flex-none line-clamp-3">
<small class="text-sm">@Article.PublishDate.ToString("d")</small>
<p class="flex-none line-clamp-5">
@Article.Body
</p>
<div class="flex-1 flex items-end">
<small>@Article.Author.Name</small>
</div>
</div>
</article>
</ArticleLink>

File diff suppressed because one or more lines are too long