daisy_rsx/marketing/
hero.rs1use dioxus::prelude::*;
2
3#[component]
4pub fn Hero(title: String, subtitle: String,
5 cta: String,
6 cta_link: String,) -> Element {
7 rsx! {
8 section {
9 div {
10 class: "flex justify-center text-center",
11 div {
12 class: "max-w-lg",
13 h1 {
14 class: "text-5xl font-bold",
15 "{title}"
16 }
17 p {
18 class: "py-6",
19 "{subtitle}"
20 }
21 div {
22 class: "flex gap-2 justify-center",
23 a {
24 class: "btn btn-primary",
25 href: cta_link,
26 "{cta}"
27 }
28 }
29 }
30 }
31 }
32 }
33}