feat: initial banner
This commit is contained in:
parent
88a1c38a41
commit
8fc27ee69e
2 changed files with 16 additions and 0 deletions
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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue