Created basic sign on page
This commit is contained in:
1 parent
6b1e2174b6
commit
0780939f30
5 files changed
+109
-7
No files matched your search
+2
-1
@@ -7,7 +7,7 @@ use leptos_router::{
|
||||
};
|
||||
use url::Url;
|
||||
|
||||
use crate::pages::{AboutPage, HomePage, ProviderEntry};
|
||||
use crate::pages::{AboutPage, HomePage, ProviderEntry, UnauthenticatedPage};
|
||||
|
||||
pub fn shell(options: LeptosOptions) -> impl IntoView {
|
||||
view! {
|
||||
@@ -68,6 +68,7 @@ pub fn App() -> impl IntoView {
|
||||
<Route path=StaticSegment("") view=HomePage/>
|
||||
<Route path=StaticSegment("about") view=AboutPage/>
|
||||
<Route path=StaticSegment("providers") view=ProviderEntry/>
|
||||
<Route path=StaticSegment("test") view=UnauthenticatedPage/>
|
||||
</Routes>
|
||||
</main>
|
||||
</Router>
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
mod about_page;
|
||||
mod home_page;
|
||||
mod provider_entry;
|
||||
mod unauthenticated_page;
|
||||
|
||||
pub use self::{about_page::*, home_page::*, provider_entry::*};
|
||||
pub use self::{about_page::*, home_page::*, provider_entry::*, unauthenticated_page::*};
|
||||
@@ -0,0 +1,18 @@
|
||||
use leptos::prelude::*;
|
||||
use leptos_oidc::{LoginLink};
|
||||
use crate::components::ActionButton;
|
||||
|
||||
#[component]
|
||||
pub fn UnauthenticatedPage() -> impl IntoView {
|
||||
view! (
|
||||
<div class="flex h-screen justify-center items-center pb-50">
|
||||
<div class="bg-white p-8 border rounded-lg shadow-lg">
|
||||
<h3> "You're not signed in. Please sign in with your Region 15 email." </h3>
|
||||
<LoginLink class="text-login flex pt-4 justify-center items-center">
|
||||
<ActionButton> "Sign in" </ActionButton>
|
||||
</LoginLink>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user