blob: cf7aa5a5219923541b06fecc1c9685400120942c (
plain) (
blame)
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
|
use leptos::{
IntoView, component,
prelude::{Children, ClassAttribute, ElementChild},
view,
};
use leptos_meta::Style;
#[component]
pub fn Container(header: impl IntoView, children: Children) -> impl IntoView {
view! {
<Style>
"
.rocie-container {
border-width: 0.1rem;
border-style: solid;
border-color: gray;
border-radius: 15%;
padding: 0.2rem;
text-align: left;
}
.rocie-container-header {
font-size: 1.5rem;
}
"
</Style>
<div class="rocie-container">
<p class="rocie-container-header">{header}</p>
{children()}
</div>
}
}
|