File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 11---
22import { Icon } from ' astro-icon/components' ;
3+
4+ export interface Props {
5+ icon? : string ;
6+ title? : string ;
7+ description? : string ;
8+ }
9+
10+ const {
11+ icon = ' tabler:info-square' ,
12+ title = await Astro .slots .render (' title' ),
13+ description = await Astro .slots .render (' description' ),
14+ } = Astro .props ;
315---
416
517<section class =" bg-blue-50 dark:bg-slate-800 not-prose" >
618 <div class =" max-w-6xl mx-auto px-4 sm:px-6 py-4 text-md text-center font-medium" >
7- <span class =" font-bold" >
8- < Icon name = " tabler:info-square " class = " w-5 h-5 inline-block align-text-bottom " /> Philosophy:</ span
9- > Simplicity, Best Practices and High Performance
19+ <Icon name = { icon } class =" w-5 h-5 inline-block align-text-bottom font-bold" / >
20+ < span class = " font-bold " set:html = { title } />
21+ < Fragment set:html = { description } />
1022 </div >
1123</section >
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const metadata = {
5252
5353 <!-- Note Widget ******************* -->
5454
55- <Note />
55+ <Note title = " Philosophy: " description = " Simplicity, Best Practices and High Performance " />
5656
5757 <!-- Features Widget *************** -->
5858
You can’t perform that action at this time.
0 commit comments