Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/components/widgets/Note.astro
Original file line number Diff line number Diff line change
@@ -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;
---

<section class="bg-blue-50 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">
<span class="font-bold">
<Icon name="tabler:info-square" class="w-5 h-5 inline-block align-text-bottom" /> Philosophy:</span
> Simplicity, Best Practices and High Performance
<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>
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const metadata = {

<!-- Note Widget ******************* -->

<Note />
<Note title="Philosophy:" description="Simplicity, Best Practices and High Performance" />

<!-- Features Widget *************** -->

Expand Down
Loading