diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
| commit | fcc2f4704e39b0e69b377cc138f75027721dac22 (patch) | |
| tree | 732fc94b354a26c08fba9cc9059f9c6c900182be /src/components/widgets/Note.astro | |
Initial template
Diffstat (limited to 'src/components/widgets/Note.astro')
| -rw-r--r-- | src/components/widgets/Note.astro | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/widgets/Note.astro b/src/components/widgets/Note.astro new file mode 100644 index 0000000..3f43881 --- /dev/null +++ b/src/components/widgets/Note.astro @@ -0,0 +1,23 @@ +--- +import { Icon } from 'astro-icon/components'; + +export interface Props { + icon?: string; + title?: string; + description?: string; +} + +const { + icon = 'tabler:info-square', + title = await Astro.slots.render('title'), + description = await Astro.slots.render('description'), +} = Astro.props; +--- + +<section class="bg-section dark:bg-slate-800 not-prose"> + <div class="max-w-6xl mx-auto px-4 sm:px-6 py-4 text-md text-center font-medium"> + <Icon name={icon} class="w-5 h-5 inline-block align-text-bottom font-bold" /> + <span class="font-bold" set:html={title} /> + <Fragment set:html={description} /> + </div> +</section> |
