synpad 0.1.0

A full-featured Matrix chat client built with Dioxus
use dioxus::prelude::*;

use crate::app::Route;

/// Layout for unauthenticated pages (login, register, forgot password).
///
/// Centers the content with the Netrix branding.
#[component]
pub fn AuthLayout() -> Element {
    rsx! {
        div {
            class: "auth-layout",
            div {
                class: "auth-layout__container",
                div {
                    class: "auth-layout__brand",
                    h1 {
                        class: "auth-layout__title",
                        "Netrix"
                    }
                    p {
                        class: "auth-layout__subtitle",
                        "Secure, decentralized chat"
                    }
                }
                div {
                    class: "auth-layout__content",
                    Outlet::<Route> {}
                }
            }
        }
    }
}