From fbf2aa85bafc809e6149c49aab201f0af8fe1fae Mon Sep 17 00:00:00 2001 From: Romain Pironneau <929716+romainpi@users.noreply.github.com> Date: Sat, 29 Mar 2025 14:59:28 +0100 Subject: [PATCH 1/2] Implement properties for `Note` component --- src/components/widgets/Note.astro | 18 +++++++++++++++--- src/pages/index.astro | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/widgets/Note.astro b/src/components/widgets/Note.astro index 6543b4f0a3..0ba65f1fc7 100644 --- a/src/components/widgets/Note.astro +++ b/src/components/widgets/Note.astro @@ -1,11 +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; ---
- - Philosophy: Simplicity, Best Practices and High Performance + + +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 16a9be4797..95a607a9ae 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -52,7 +52,7 @@ const metadata = { - + From 1b565c834ad83274df866f01f10d91754a1b6a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20B?= <54446028+prototypa@users.noreply.github.com> Date: Thu, 17 Apr 2025 19:53:30 -0400 Subject: [PATCH 2/2] Update Note.astro --- src/components/widgets/Note.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/Note.astro b/src/components/widgets/Note.astro index 0ba65f1fc7..3594b39ab7 100644 --- a/src/components/widgets/Note.astro +++ b/src/components/widgets/Note.astro @@ -16,7 +16,7 @@ const {
- +