feat: initial banner
This commit is contained in:
parent
88a1c38a41
commit
8fc27ee69e
11
src/components/Banner.astro
Normal file
11
src/components/Banner.astro
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
interface Props {
|
||||
text: string;
|
||||
}
|
||||
|
||||
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]">
|
||||
<p class="font-normal" set:html={text} />
|
||||
</div>
|
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
import "../../assets/css/tailwind.pcss";
|
||||
|
||||
import Banner from "../components/Banner.astro";
|
||||
import Navbar from "../components/Navbar.astro";
|
||||
|
||||
export interface Props {
|
||||
|
@ -60,6 +61,10 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString().replace(
|
|||
<div
|
||||
class="min-h-screen font-sans text-base font-light md:text-xl dark:text-white text-grey-900 dark:bg-grey-900"
|
||||
>
|
||||
{false && (
|
||||
<Banner text={"<a href='/drupal-testing'>Register now for my Drupal automated testing workshop →</a>"} />
|
||||
)}
|
||||
|
||||
<Navbar />
|
||||
|
||||
<div class="py-10 px-4 mx-auto max-w-xl md:py-10">
|
||||
|
|
Loading…
Reference in a new issue