Improved ArticleView header

This commit is contained in:
Mia Rose Winter 2024-02-03 21:25:18 +01:00
parent 21dad2f728
commit 905e322ecc
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
3 changed files with 35 additions and 32 deletions

View file

@ -4,8 +4,8 @@
@inject IStringLocalizer<Pages.ArticleView> Localizer @inject IStringLocalizer<Pages.ArticleView> Localizer
<article class="mb-6"> <SectionContent SectionName="GlobalHeader">
<header class="bg-secondary text-secondary-content border-b-2 border-current mt-[-2rem] mx-[-3rem] py-6 px-12 mb-6"> <div class="bg-secondary text-secondary-content border-b-2 border-current py-6 px-12">
<h1 class="text-3xl lg:text-5xl font-light"> <h1 class="text-3xl lg:text-5xl font-light">
@Article.Title @Article.Title
</h1> </h1>
@ -35,7 +35,9 @@
} }
</p> </p>
} }
</header> </div>
</SectionContent>
<article class="mb-6">
<div class="prose prose-neutral max-w-none hyphens-auto text-justify"> <div class="prose prose-neutral max-w-none hyphens-auto text-justify">
@Content @Content
</div> </div>

View file

@ -24,6 +24,7 @@
</svg> </svg>
</label> </label>
</header> </header>
<SectionOutlet SectionName="GlobalHeader" />
<main class="flex-1 container mx-auto px-12 py-8"> <main class="flex-1 container mx-auto px-12 py-8">
@Body @Body
</main> </main>

File diff suppressed because one or more lines are too long