diff --git a/README.md b/README.md index 062eaed..16b043d 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,11 @@ Possible candidates are [CssinRust](https://github.com/lukidoescode/css-in-rust) ### How install it 1. Install the sass module: `npm install yew-styles` -2. Add the yew_style crate with the features needed for your project in Cargo.toml file: +2. Add the yew_style crate with the features needed for your project in Cargo.toml file: ```toml yew_styles = { version="0.9", features=["button", "text", "navbar"] } ``` -3. Import the main.css file in you main javascript/typescript file project: +3. Import the main.css file in you main javascript/typescript file project: ```typescript import 'node_modules/yew-styles/main.css'; ``` @@ -70,7 +70,7 @@ First, open an issue describing about the fix, improvement or implementation and If the contribution is a fix or small improvement in a component, only a pull request to master explaining what resolve or improve that, is required. If it is an implementation, please follow the next requirements: -* Firstable open an issue describing about the component +* Firstable open an issue describing about the component * Unit tests, which checks that the component is created and its logic works, in the same file where it is implemented (test events is not needed for now) * One component per file, if multiple components have connections between them, it is possible create subfolder @@ -103,7 +103,7 @@ Please check our [code of conduct](CODE_OF_CONDUCT.md) ## Roadmap -- [x] Button +- [x] Button - [x] Layout - [x] Navbar - [x] Form diff --git a/app/yew-styles/_navbar.sass b/app/yew-styles/_navbar.sass index 948705c..920f8ae 100644 --- a/app/yew-styles/_navbar.sass +++ b/app/yew-styles/_navbar.sass @@ -28,7 +28,7 @@ &.navbar-container-mobile flex-direction: row !important width: 100% - + @include get-branch(50px) .navbar-dropdown @@ -73,7 +73,7 @@ position: absolute left: 0 top: 40px - + z-index: 1 &.active @@ -113,4 +113,4 @@ width: 100% &.navbar-container-mobile - width: auto \ No newline at end of file + width: auto diff --git a/crate/Cargo.lock b/crate/Cargo.lock index 7656f40..00d434b 100644 --- a/crate/Cargo.lock +++ b/crate/Cargo.lock @@ -916,7 +916,7 @@ dependencies = [ [[package]] name = "yew_style_page" -version = "0.9.2" +version = "0.9.3" dependencies = [ "Inflector", "cfg-if 1.0.0", @@ -938,7 +938,7 @@ dependencies = [ [[package]] name = "yew_styles" -version = "0.9.2" +version = "0.9.3" dependencies = [ "getrandom", "rand", diff --git a/crate/Cargo.toml b/crate/Cargo.toml index 6f5835e..9112bda 100644 --- a/crate/Cargo.toml +++ b/crate/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT/Apache-2.0" name = "yew_style_page" readme = "./README.md" repository = "https://github.com/spielrs/yew-styles-page.git" -version = "0.9.2" +version = "0.9.3" [lib] crate-type = ["cdylib"] diff --git a/crate/src/page/carousel_page.rs b/crate/src/page/carousel_page.rs index aa1cfc3..d9001cf 100644 --- a/crate/src/page/carousel_page.rs +++ b/crate/src/page/carousel_page.rs @@ -2,6 +2,7 @@ use super::highlighters::get_carousel; use yew::prelude::*; use yew::services::ConsoleService; use yew::utils::document; +use yew_assets::communication_assets::{CommunicationAssets, CommunicationIcon}; use yew_prism::Prism; use yew_styles::carousel::{Carousel, CarouselControls, CarouselDot, CarouselImage}; use yew_styles::styles::Size; @@ -171,6 +172,8 @@ impl Component for CarouselPage {
  • {"class_name: "}{"general property to add custom class styles"}
  • +

    {"This component has a optional children prop, in case that it is not included a default dot icon will be added"}

    +

    {"Carousel Image"}