25 lines
623 B
Plaintext
25 lines
623 B
Plaintext
@using Wave.Data
|
|
|
|
<ArticleLink Article="Article">
|
|
<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">@Article.PublishDate.ToString("d")</small>
|
|
<p class="flex-none line-clamp-5">
|
|
@Article.BodyPlain[..Math.Min(1000, Article.BodyPlain.Length)]
|
|
</p>
|
|
<div class="flex-1 flex items-end">
|
|
|
|
<small>@Article.Author.Name</small>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</ArticleLink>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public required Article Article { get; set; }
|
|
|
|
|
|
}
|