little optimizations
This commit is contained in:
parent
531604a491
commit
48db52be43
3 changed files with 6 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
error_template::{AppError, ErrorTemplate},
|
error_template::{AppError, ErrorTemplate},
|
||||||
Link, UnderlineLink,pages::*
|
pages::*,
|
||||||
|
Link, UnderlineLink,
|
||||||
};
|
};
|
||||||
use leptos::*;
|
use leptos::*;
|
||||||
use leptos_meta::*;
|
use leptos_meta::*;
|
||||||
|
|
@ -14,6 +15,8 @@ pub fn App() -> impl IntoView {
|
||||||
let formatter = |text| format!("{text} — Philippe Loctaux");
|
let formatter = |text| format!("{text} — Philippe Loctaux");
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
|
<Html lang="en"/>
|
||||||
|
|
||||||
<Stylesheet id="leptos" href="/pkg/plcom.css"/>
|
<Stylesheet id="leptos" href="/pkg/plcom.css"/>
|
||||||
|
|
||||||
// sets the document title
|
// sets the document title
|
||||||
|
|
@ -66,6 +69,3 @@ pub fn App() -> impl IntoView {
|
||||||
</Router>
|
</Router>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ pub fn ButtonLink(
|
||||||
<a
|
<a
|
||||||
href=link.get().uri.to_string()
|
href=link.get().uri.to_string()
|
||||||
{..attributes}
|
{..attributes}
|
||||||
|
aria-label=link.get().label
|
||||||
class=tw_join!(
|
class=tw_join!(
|
||||||
"inline-flex", "bg-sky-900", "hover:bg-sky-700", "transition-all", "duration-200",
|
"inline-flex", "bg-sky-900", "hover:bg-sky-700", "transition-all", "duration-200",
|
||||||
"text-white", "font-bold", "py-2", "px-4", "rounded-xl", "items-center"
|
"text-white", "font-bold", "py-2", "px-4", "rounded-xl", "items-center"
|
||||||
|
|
@ -96,4 +97,3 @@ pub fn OutlineButtonLink(
|
||||||
</a>
|
</a>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ fn Talk(#[prop(into)] talk: MaybeSignal<Talk>) -> impl IntoView {
|
||||||
view! {
|
view! {
|
||||||
<div class=tw_join!("rounded-2xl", "w-full", "bg-teal-950", "p-6")>
|
<div class=tw_join!("rounded-2xl", "w-full", "bg-teal-950", "p-6")>
|
||||||
|
|
||||||
<h3 class=tw_join!("text-xl", "font-semibold", "mb-4")>{talk.get().title}</h3>
|
<div class=tw_join!("text-xl", "font-semibold", "mb-4")>{talk.get().title}</div>
|
||||||
|
|
||||||
<div class=tw_join!("flex")>
|
<div class=tw_join!("flex")>
|
||||||
<div class=tw_join!(
|
<div class=tw_join!(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue