feat: add Drupal upgrade roadmap banner

This commit is contained in:
Oliver Davies 2023-10-12 12:17:48 +01:00
parent 2a8d4de84e
commit c00d17de61
2 changed files with 10 additions and 2 deletions

View file

@ -6,6 +6,10 @@ interface Props {
const { text } = Astro.props as Props; const { text } = Astro.props as Props;
--- ---
<div class="text-center p-3 bg-[#ffc82c] text-black text-base mb-4 dark:text-white dark:bg-[#856200]"> <div class="p-3 bg-[#ffc82c] text-black text-base mb-4 dark:text-white dark:bg-[#856200]">
<p class="font-normal" set:html={text} /> <div class="min-w-full mx-auto px-6">
<div class="mx-auto max-w-xl prose prose-p:text-black prose:a:font-normal dark:prose-p:text-white dark:prose-a:text-white text-center">
<p set:html={text} />
</div>
</div>
</div> </div>

View file

@ -71,6 +71,10 @@ const isFrontPage = Astro.props.isFront;
<Banner text={"<a href='/drupal-testing'>Register now for my Drupal automated testing workshop &rarr;</a>"} /> <Banner text={"<a href='/drupal-testing'>Register now for my Drupal automated testing workshop &rarr;</a>"} />
)} )}
{true && (
<Banner text={"Drupal 9 will be unsupported in November 2023. If you're stuck on Drupal 8 or 9, get unstuck with a <a href='/drupal-upgrade'>Drupal upgrade roadmap</a>."} />
)}
<Navbar /> <Navbar />
<div class="py-10 px-6 mx-auto max-w-xl md:py-10"> <div class="py-10 px-6 mx-auto max-w-xl md:py-10">