From ff0ac7f9823758580f6eb348f04addbfa6e14685 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sat, 25 May 2024 14:06:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20a=20ChatPanel=20placeholde?= =?UTF-8?q?r=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/components/chat_panel.rs | 18 ++++++++++++++++++ src/ui/components/chat_panel.scss | 6 ++++++ 2 files changed, 24 insertions(+) create mode 100644 src/ui/components/chat_panel.rs create mode 100644 src/ui/components/chat_panel.scss diff --git a/src/ui/components/chat_panel.rs b/src/ui/components/chat_panel.rs new file mode 100644 index 0000000..0ba0b6c --- /dev/null +++ b/src/ui/components/chat_panel.rs @@ -0,0 +1,18 @@ +use dioxus::prelude::*; + +turf::style_sheet!("src/ui/components/chat_panel.scss"); + +#[component] +pub fn ChatPanel(name: String) -> Element { + rsx! { + style { {STYLE_SHEET} }, + + div { + class: ClassName::CHAT_PANEL, + + div { + {name} + } + } + } +} diff --git a/src/ui/components/chat_panel.scss b/src/ui/components/chat_panel.scss new file mode 100644 index 0000000..ce05d8a --- /dev/null +++ b/src/ui/components/chat_panel.scss @@ -0,0 +1,6 @@ +@import "../_base.scss"; +@import "./_panel.scss"; + +.chat-panel { + @include panel(); +}