chore: 0.0.7: bump deps & light code cleanup
This commit is contained in:
parent
996f1e46a5
commit
4dfcb2646a
1 changed files with 601 additions and 2114 deletions
|
|
@ -1,6 +1,32 @@
|
|||
use leptos::prelude::*;
|
||||
use sabry::styly;
|
||||
|
||||
/// Renders the home page of your application.
|
||||
#[component]
|
||||
pub fn Route() -> impl IntoView {
|
||||
// Creates a reactive value to update the button
|
||||
let count = RwSignal::new(0);
|
||||
let on_click = move |_| *count.write() += 1;
|
||||
|
||||
view! {class = STYLE,
|
||||
<leptos_components::Aside/> // lets use our component
|
||||
<section class=style::table>
|
||||
<h2>"Welcome to Leptos"</h2>
|
||||
<h2 class="">
|
||||
"This head is styled with lepty-scopes feature"
|
||||
<br/>
|
||||
<span class="">"And this child too!"</span>
|
||||
</h2>
|
||||
|
||||
<button class=style::btn on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<button class=style::_dark(style::btn) on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<span class=style::card>"DISCLAIMER:"</span>
|
||||
<p class=style::pocwarn>"This isn't a design example! Its just proof of sabry's capabilities."</p>
|
||||
<p class=style::pocwarn>"Plz dont make websites/apps which look like this page :D"</p>
|
||||
</section>
|
||||
}
|
||||
}
|
||||
|
||||
styly!(style {"
|
||||
@use 'tokens';
|
||||
@use 'utils';
|
||||
|
|
@ -34,31 +60,4 @@ styly!(style {"
|
|||
@include theme.surface(secondary);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
"});
|
||||
|
||||
/// Renders the home page of your application.
|
||||
#[component]
|
||||
pub fn Route() -> impl IntoView {
|
||||
// Creates a reactive value to update the button
|
||||
let count = RwSignal::new(0);
|
||||
let on_click = move |_| *count.write() += 1;
|
||||
|
||||
view! {class = STYLE,
|
||||
<leptos_components::Aside/> // lets use our component
|
||||
<section class=style::table>
|
||||
<h2>"Welcome to Leptos"</h2>
|
||||
<h2 class="">
|
||||
"This head is styled with lepty-scopes feature"
|
||||
<br/>
|
||||
<span class="">"And this child too!"</span>
|
||||
</h2>
|
||||
|
||||
<button class=style::btn on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<button class=style::_dark(style::btn) on:click=on_click>"Ima CRAZY button, clicked: " {count} " times!"</button>
|
||||
<span class=style::card>"DISCLAIMER:"</span>
|
||||
<p class=style::pocwarn>"This isn't a design example! Its just proof of sabry's capabilities."</p>
|
||||
<p class=style::pocwarn>"Plz dont make websites/apps which look like this page :D"</p>
|
||||
</section>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue