docs: big updates to the reference

This commit is contained in:
Jonathan Kelley committed 2021-07-16 16:11:25 -04:00
1 parent caf772cf24
commit 583fdfa561
57 files changed
+726 -247

No files matched your search

+6 -6
View File
@@ -12,7 +12,7 @@ fn main() {
const STYLE: &str = "body {overflow:hidden;}";
pub const App: FC<()> = |cx| {
pub static App: FC<()> = |cx| {
cx.render(rsx!(
div { class: "overflow-hidden"
style { "{STYLE}" }
@@ -28,7 +28,7 @@ pub const App: FC<()> = |cx| {
))
};
pub const Header: FC<()> = |cx| {
pub static Header: FC<()> = |cx| {
cx.render(rsx! {
div {
header { class: "text-gray-400 bg-gray-900 body-font"
@@ -54,7 +54,7 @@ pub const Header: FC<()> = |cx| {
})
};
pub const Hero: FC<()> = |cx| {
pub static Hero: FC<()> = |cx| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -92,7 +92,7 @@ pub const Hero: FC<()> = |cx| {
}
})
};
pub const Entry: FC<()> = |cx| {
pub static Entry: FC<()> = |cx| {
//
cx.render(rsx! {
section{ class: "text-gray-400 bg-gray-900 body-font"
@@ -105,7 +105,7 @@ pub const Entry: FC<()> = |cx| {
})
};
pub const StacksIcon: FC<()> = |cx| {
pub static StacksIcon: FC<()> = |cx| {
cx.render(rsx!(
svg {
// xmlns: "http://www.w3.org/2000/svg"
@@ -120,7 +120,7 @@ pub const StacksIcon: FC<()> = |cx| {
}
))
};
pub const RightArrowIcon: FC<()> = |cx| {
pub static RightArrowIcon: FC<()> = |cx| {
cx.render(rsx!(
svg {
fill: "none"