format
This commit is contained in:
parent
95ba41e60b
commit
30f3ee0696
1 changed files with 6 additions and 11 deletions
|
@ -3,17 +3,12 @@ use leptos::*;
|
|||
|
||||
#[component]
|
||||
pub fn Article(data: ArticleData) -> impl IntoView {
|
||||
|
||||
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">
|
||||
<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">{&data.title}</h1>
|
||||
<hr class="opacity-50"/>
|
||||
<span class="pt-0 pb-3.5 text-xs opacity-50 m-t">{&data.date}</span>
|
||||
<div inner_html={&data.content}></div>
|
||||
<div inner_html=&data.content></div>
|
||||
</article>
|
||||
</Transition>
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue