use crate::components::footer_card::*;
use crate::components::title_card::*;
use dioxus::prelude::*;

#[component]
pub fn BasicPage(page_title: String, children: Element) -> Element {
    rsx! {
        div { class: "min-h-screen bg-alice-werefox-grey-light dark:bg-alice-werefox-grey font-nerd",
            head {
                link { rel: "me", href: "https://bark.lgbt/@alicew" }
                link { rel: "me", href: "https://dragon.style/@alice" }
                link { rel: "me", href: "https://mspsocial.net/@alice" }
                link { rel: "icon", href: "/favicon.ico" }
            }
            div { class: "container space-y-4 mx-auto px-4 py-4",
                TitleCard { card_title: page_title }
                {children},
                FooterCard {}
            }
        }
    }
}
