publish: move macro crate out of core

This commit is contained in:
Jonathan Kelley committed 2021-09-24 21:46:23 -04:00
1 parent 10d335ae31
commit 7bdad1e2e6
25 files changed
+44 -31

No files matched your search

+7 -8
View File
@@ -3,10 +3,9 @@
use dioxus::events::on::MouseEvent;
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::*;
use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
// use wasm_timer;
use std::future::Future;
use std::{pin::Pin, time::Duration};
@@ -25,7 +24,7 @@ fn main() {
dioxus_web::launch(App, |c| c)
}
pub static App: FC<()> = |cx, props|{
pub static App: FC<()> = |cx, props| {
cx.render(rsx!(
div { class: "overflow-hidden"
link { href:"https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel:"stylesheet" }
@@ -40,7 +39,7 @@ pub static App: FC<()> = |cx, props|{
))
};
pub static Header: FC<()> = |cx, props|{
pub static Header: FC<()> = |cx, props| {
cx.render(rsx! {
div {
header { class: "text-gray-400 bg-gray-900 body-font"
@@ -66,7 +65,7 @@ pub static Header: FC<()> = |cx, props|{
})
};
pub static Hero: FC<()> = |cx, props|{
pub static Hero: FC<()> = |cx, props| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -104,7 +103,7 @@ pub static Hero: FC<()> = |cx, props|{
}
})
};
pub static Entry: FC<()> = |cx, props|{
pub static Entry: FC<()> = |cx, props| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -117,7 +116,7 @@ pub static Entry: FC<()> = |cx, props|{
})
};
pub static StacksIcon: FC<()> = |cx, props|{
pub static StacksIcon: FC<()> = |cx, props| {
cx.render(rsx!(
svg {
// xmlns: "http://www.w3.org/2000/svg"
@@ -132,7 +131,7 @@ pub static StacksIcon: FC<()> = |cx, props|{
}
))
};
pub static RightArrowIcon: FC<()> = |cx, props|{
pub static RightArrowIcon: FC<()> = |cx, props| {
cx.render(rsx!(
svg {
fill: "none"