File size: 392 Bytes
fee9c1e
b2ac38d
 
fee9c1e
 
 
 
 
 
 
b2ac38d
fee9c1e
b2ac38d
fee9c1e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
import HtmlFragment from "./HtmlFragment.astro";

interface Props {
  title: string;
  description?: string;
}
const { title, description } = Astro.props as Props;
---
<section class="hero">
  <h1 class="hero-title"  set:html={title}></h1>
  <div class="hero-banner">
    <HtmlFragment src="banner.html" />
    {description && <p class="hero-desc">{description}</p>}
  </div>
</section>