Added AboutTheAuthor section to ArticleView Page
This commit is contained in:
parent
76f2712393
commit
32c8a2fe6e
|
@ -32,14 +32,33 @@
|
|||
|
||||
<hr class="my-3" />
|
||||
|
||||
<div class="prose prose-neutral max-w-none mb-6">
|
||||
<article class="prose prose-neutral max-w-none mb-6">
|
||||
@Content
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<hr class="my-3" />
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(Article.Author.AboutTheAuthor)) {
|
||||
<section class="mb-2">
|
||||
<h2 class="text-2xl lg:text-4xl mb-3">About The Author</h2>
|
||||
<div class="card sm:card-side card-compact bg-neutral text-neutral-content rounded shadow">
|
||||
<figure class="sm:max-w-32">
|
||||
<img src="/api/user/pfp/@Article.Author.Id" alt="" width="800">
|
||||
</figure>
|
||||
<div class="card-body">
|
||||
<h3 class="card-title">@Article.Author.Name</h3>
|
||||
<p>
|
||||
@Article.Author.AboutTheAuthor
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
|
||||
<div class="flex gap-2">
|
||||
@if (string.IsNullOrWhiteSpace(Article.Author.AboutTheAuthor)) {
|
||||
<ProfilePill Profile="Article.Author" RoleTag="@Localizer["Author"]"/>
|
||||
}
|
||||
@if (Article.Reviewer is not null && Article.Reviewer.Id != Article.Author.Id) {
|
||||
<ProfilePill Profile="Article.Reviewer" RoleTag="@Localizer["Reviewer"]"/>
|
||||
}
|
||||
|
|
2
Wave/wwwroot/css/main.min.css
vendored
2
Wave/wwwroot/css/main.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue