1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
use dioxus::prelude::*;
#[component]
pub fn Benefits(
title: String,
subtitle: String,
benefit1: String,
benefit1_desc: String,
benefit2: String,
benefit2_desc: String,
benefit3: String,
benefit3_desc: String,
class: Option<String>,
) -> Element {
rsx! {
section {
class: format!("lg:max-w-5xl {}", class.unwrap_or("".to_string())),
div {
class: "container mx-auto",
div {
class: "flex flex-col text-center w-full mb-20",
h2 {
class: "text-primary tracking-widest font-medium title-font mb-1",
"{title}"
}
h1 {
class: "sm:text-3xl text-2xl font-medium title-font text-primary",
"{subtitle}"
}
}
div {
class: "flex flex-wrap -m-4",
div {
class: "p-4 md:w-1/3",
div {
class: "flex rounded-lg h-full bg-base-200 p-8 flex-col",
div {
class: "flex items-center mb-3",
div {
class: "w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0",
svg {
fill: "none",
stroke: "currentColor",
stroke_linecap: "round",
stroke_linejoin: "round",
stroke_width: "2",
class: "w-5 h-5",
view_box: "0 0 24 24",
path { d: "M22 12h-4l-3 9L9 3l-3 9H2" }
}
}
h2 {
class: "text-lg title-font font-medium",
"{benefit1}"
}
}
div {
class: "flex-grow",
p {
class: "leading-relaxed text-base",
"{benefit1_desc}"
}
}
}
}
// Repeat for other sections with adjusted content
div {
class: "p-4 md:w-1/3",
div {
class: "flex rounded-lg h-full bg-base-200 p-8 flex-col",
div {
class: "flex items-center mb-3",
div {
class: "w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0",
svg {
fill: "none",
stroke: "currentColor",
stroke_linecap: "round",
stroke_linejoin: "round",
stroke_width: "2",
class: "w-5 h-5",
view_box: "0 0 24 24",
path { d: "M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2" }
circle { cx: "12", cy: "7", r: "4" }
}
}
h2 {
class: "text-lg title-font font-medium",
"{benefit2}"
}
}
div {
class: "flex-grow",
p {
class: "leading-relaxed text-base",
"{benefit2_desc}"
}
}
}
}
div {
class: "p-4 md:w-1/3",
div {
class: "flex rounded-lg h-full bg-base-200 p-8 flex-col",
div {
class: "flex items-center mb-3",
div {
class: "w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0",
svg {
fill: "none",
stroke: "currentColor",
stroke_linecap: "round",
stroke_linejoin: "round",
stroke_width: "2",
class: "w-5 h-5",
view_box: "0 0 24 24",
circle { cx: "6", cy: "6", r: "3" }
circle { cx: "6", cy: "18", r: "3" }
path { d: "M20 4L8.12 15.88M14.47 14.48L20 20M8.12 8.12L12 12" }
}
}
h2 {
class: "text-lg title-font font-medium",
"{benefit3}"
}
}
div {
class: "flex-grow",
p {
class: "leading-relaxed text-base",
"{benefit3_desc}"
}
}
}
}
}
}
}
}
}