diff --git a/src/routes/data.rs b/src/routes/data.rs index 81c17e9..15a0b2c 100644 --- a/src/routes/data.rs +++ b/src/routes/data.rs @@ -79,6 +79,7 @@ pub fn ValueCard(topic: String, location: String, sensor: String, unity: String, #[component] pub fn Card(sensor_props: ReadSignal<(String, String, String, String)>, value: Value) -> impl IntoView { let (location, sensor, unity, color) = sensor_props.get(); + let value_class = ["text-4xl flex ml-5 -my-2 text-center ", color.as_str()].join(" "); view! {
{location}
@@ -86,7 +87,7 @@ pub fn Card(sensor_props: ReadSignal<(String, String, String, String)>, value: V
{value.date_donnee}
-

+

{value.donnee} {unity}

diff --git a/tailwind.config.js b/tailwind.config.js index 12e90af..30a4a7b 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -26,7 +26,7 @@ module.exports = { green: "#00DA00", }, fontSize: { - "4xl": ["4rem", "1"], + "4xl": ["4rem", "1.3"], }, }, },