Add date list component #50
No files matched your search
+2
-1
@@ -1,4 +1,4 @@
|
|||||||
use crate::pages::{AboutPage, ComparisonTestPage, HomePage, LoanerPage, TestPage};
|
use crate::pages::{AboutPage, ComparisonTestPage, HomePage, LoanerPage, ProviderPortal, TestPage};
|
||||||
use leptos::logging::log;
|
use leptos::logging::log;
|
||||||
use leptos::prelude::*;
|
use leptos::prelude::*;
|
||||||
use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context};
|
use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context};
|
||||||
@@ -109,6 +109,7 @@ pub fn AppWithRoutes() -> impl IntoView {
|
|||||||
<Route path=path!("about") view=AboutPage/>
|
<Route path=path!("about") view=AboutPage/>
|
||||||
<Route path=path!("test_page") view=TestPage/>
|
<Route path=path!("test_page") view=TestPage/>
|
||||||
<Route path=path!("comparison") view=ComparisonTestPage />
|
<Route path=path!("comparison") view=ComparisonTestPage />
|
||||||
|
<Route path=path!("providers") view=ProviderPortal />
|
||||||
<Route path=path!("loaners") view=LoanerPage />
|
<Route path=path!("loaners") view=LoanerPage />
|
||||||
<Route path=path!("loaners/:form_name") view=LoanerPage />
|
<Route path=path!("loaners/:form_name") view=LoanerPage />
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|||||||
@@ -1 +1,42 @@
|
|||||||
|
use crate::components::{Banner, DashboardButton};
|
||||||
|
use leptos::prelude::*;
|
||||||
|
|
||||||
|
#[component]
|
||||||
|
pub fn ProviderPortal() -> impl IntoView {
|
||||||
|
view! {
|
||||||
|
<Banner
|
||||||
|
title="Provider Dashboard"
|
||||||
|
logo="PHS_Stacked_Acronym.png"
|
||||||
|
path="/"
|
||||||
|
/>
|
||||||
|
<div class="mx-auto px-6">
|
||||||
|
<div class="container mx-auto px-6 py-8 space-y-8">
|
||||||
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
||||||
|
<section class="space-y-4">
|
||||||
|
<DashboardButton
|
||||||
|
title="Profile"
|
||||||
|
description="Edit user profile"
|
||||||
|
icon="/Person_Black.png"
|
||||||
|
path="/"
|
||||||
|
/>
|
||||||
|
<DashboardButton
|
||||||
|
title="Create Scholarship"
|
||||||
|
description="Navigate to Scholarship Creation Page"
|
||||||
|
icon="/Create_Black.png"
|
||||||
|
path="/"
|
||||||
|
/>
|
||||||
|
<DashboardButton
|
||||||
|
title="Applicants"
|
||||||
|
description="View Scholarship Applicants"
|
||||||
|
icon="/Form_Black.png"
|
||||||
|
path="/"
|
||||||
|
/>
|
||||||
|
</section>
|
||||||
|
<section class="space-y-4">
|
||||||
|
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user