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 1
1
---
2
2
import { 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 ;
3
15
---
4
16
5
17
<section class =" bg-blue-50 dark:bg-slate-800 not-prose" >
6
18
<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 } />
10
22
</div >
11
23
</section >
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ const metadata = {
52
52
53
53
<!-- Note Widget ******************* -->
54
54
55
- <Note />
55
+ <Note title = " Philosophy: " description = " Simplicity, Best Practices and High Performance " />
56
56
57
57
<!-- Features Widget *************** -->
58
58
You can’t perform that action at this time.
0 commit comments