Cargo fmt
This commit is contained in:
parent
cf48f53536
commit
503d90eeb1
@ -0,0 +1 @@
|
|||||||
|
|
@ -2,7 +2,5 @@ use yew::prelude::*;
|
|||||||
|
|
||||||
#[function_component(Footer)]
|
#[function_component(Footer)]
|
||||||
pub fn footer() -> Html {
|
pub fn footer() -> Html {
|
||||||
html! {
|
html! {}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
pub mod page;
|
|
||||||
pub mod footer;
|
pub mod footer;
|
||||||
pub mod navbar;
|
pub mod navbar;
|
||||||
|
pub mod page;
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
@ -16,4 +16,4 @@ pub fn agency_section() -> Html {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,5 @@ use yew::prelude::*;
|
|||||||
|
|
||||||
#[function_component(ContactSection)]
|
#[function_component(ContactSection)]
|
||||||
pub fn contact_section() -> Html {
|
pub fn contact_section() -> Html {
|
||||||
html! {
|
html! {}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -26,4 +26,4 @@ pub fn hero_section() -> Html {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
pub mod hero;
|
|
||||||
pub mod agency;
|
pub mod agency;
|
||||||
pub mod contact;
|
pub mod contact;
|
||||||
|
pub mod hero;
|
||||||
pub mod results;
|
pub mod results;
|
||||||
pub mod search;
|
pub mod search;
|
||||||
|
@ -2,7 +2,5 @@ use yew::prelude::*;
|
|||||||
|
|
||||||
#[function_component(ResultsSection)]
|
#[function_component(ResultsSection)]
|
||||||
pub fn results_section() -> Html {
|
pub fn results_section() -> Html {
|
||||||
html! {
|
html! {}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -2,7 +2,5 @@ use yew::prelude::*;
|
|||||||
|
|
||||||
#[function_component(SearchSection)]
|
#[function_component(SearchSection)]
|
||||||
pub fn search_section() -> Html {
|
pub fn search_section() -> Html {
|
||||||
html! {
|
html! {}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
mod api;
|
mod api;
|
||||||
mod components;
|
mod components;
|
||||||
mod utils;
|
|
||||||
mod pages;
|
mod pages;
|
||||||
|
mod utils;
|
||||||
|
|
||||||
use pages::{main_page::MainPage, not_found::NotFound, admin_panel::AdminPanel};
|
use pages::{admin_panel::AdminPanel, main_page::MainPage, not_found::NotFound};
|
||||||
use yew::prelude::*;
|
use yew::prelude::*;
|
||||||
use yew_router::prelude::*;
|
use yew_router::prelude::*;
|
||||||
|
|
||||||
@ -28,13 +28,12 @@ pub enum Route {
|
|||||||
|
|
||||||
#[at("/admin")]
|
#[at("/admin")]
|
||||||
AdminPanel,
|
AdminPanel,
|
||||||
|
|
||||||
#[not_found]
|
#[not_found]
|
||||||
#[at("/404")]
|
#[at("/404")]
|
||||||
NotFound,
|
NotFound,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn switch(routes: Route) -> Html {
|
pub fn switch(routes: Route) -> Html {
|
||||||
match routes {
|
match routes {
|
||||||
Route::LandingPage => html! { <MainPage/> },
|
Route::LandingPage => html! { <MainPage/> },
|
||||||
|
@ -2,7 +2,5 @@ use yew::prelude::*;
|
|||||||
|
|
||||||
#[function_component(AdminPanel)]
|
#[function_component(AdminPanel)]
|
||||||
pub fn admin_panel() -> Html {
|
pub fn admin_panel() -> Html {
|
||||||
html! {
|
html! {}
|
||||||
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
use yew::prelude::*;
|
use yew::prelude::*;
|
||||||
|
|
||||||
use crate::components::{page::{hero::HeroSection, agency::AgencySection, search::SearchSection, results::ResultsSection, contact::ContactSection}, footer::Footer};
|
use crate::components::{
|
||||||
|
footer::Footer,
|
||||||
|
page::{
|
||||||
|
agency::AgencySection, contact::ContactSection, hero::HeroSection, results::ResultsSection,
|
||||||
|
search::SearchSection,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
#[function_component(MainPage)]
|
#[function_component(MainPage)]
|
||||||
pub fn main_page() -> Html {
|
pub fn main_page() -> Html {
|
||||||
@ -14,4 +20,4 @@ pub fn main_page() -> Html {
|
|||||||
<Footer/>
|
<Footer/>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
pub mod admin_panel;
|
pub mod admin_panel;
|
||||||
pub mod main_page;
|
pub mod main_page;
|
||||||
pub mod not_found;
|
pub mod not_found;
|
||||||
|
|
||||||
|
@ -5,4 +5,4 @@ pub fn not_found_page() -> Html {
|
|||||||
html! {
|
html! {
|
||||||
<div>{"NOT FOUND"}</div>
|
<div>{"NOT FOUND"}</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
|
Loading…
Reference in New Issue
Block a user