This commit is contained in:
Adam 2024-01-18 17:36:59 -05:00
parent 95ba41e60b
commit 30f3ee0696

View file

@ -3,17 +3,12 @@ use leptos::*;
#[component] #[component]
pub fn Article(data: ArticleData) -> impl IntoView { pub fn Article(data: ArticleData) -> impl IntoView {
view! { view! {
<Transition> <article class="p-7 my-5 mx-auto w-11/12 max-w-screen-xl bg-opacity-10 rounded-md bg-zinc-700 shadow-1g">
<article class="p-7 my-5 mx-auto w-11/12 max-w-screen-xl bg-opacity-10 rounded-md bg-zinc-700 shadow-1g"> <h1 class="text-3xl font-light text-orange-600 capitalize max-6-xs">{&data.title}</h1>
<h1 class="text-3xl font-light text-orange-600 capitalize max-6-xs"> <hr class="opacity-50"/>
{&data.title} <span class="pt-0 pb-3.5 text-xs opacity-50 m-t">{&data.date}</span>
</h1> <div inner_html=&data.content></div>
<hr class="opacity-50"/> </article>
<span class="pt-0 pb-3.5 text-xs opacity-50 m-t">{&data.date}</span>
<div inner_html={&data.content}></div>
</article>
</Transition>
} }
} }