From eaf780efb3a8637341625f52e4ce5b2dc38b989f Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 13 May 2024 04:02:43 +0200 Subject: [PATCH] feat(web): mock register page doesnt work yet but its a work in progress --- web/index.html | 3 ++- web/src/app.rs | 1 + web/src/auth.rs | 15 ++++++++++++--- web/src/page.rs | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 4 deletions(-) diff --git a/web/index.html b/web/index.html index a39d71a1..20eb281f 100644 --- a/web/index.html +++ b/web/index.html @@ -234,7 +234,8 @@ code.cw { display: block; } - input[type="submit"].active { + input[type=button]:hover, + input[type=submit].active { background-color: var(--accent); border-color: var(--accent); color: var(--background); diff --git a/web/src/app.rs b/web/src/app.rs index 863264e0..50e41385 100644 --- a/web/src/app.rs +++ b/web/src/app.rs @@ -118,6 +118,7 @@ pub fn App() -> impl IntoView { } /> + } /> diff --git a/web/src/auth.rs b/web/src/auth.rs index 65f1bebb..ea94679d 100644 --- a/web/src/auth.rs +++ b/web/src/auth.rs @@ -80,9 +80,18 @@ pub fn LoginBox( }); }); } > - - - + + + + + + + + + + + +
diff --git a/web/src/page.rs b/web/src/page.rs index 8ec9f59b..f84b12a2 100644 --- a/web/src/page.rs +++ b/web/src/page.rs @@ -23,6 +23,52 @@ pub fn AboutPage() -> impl IntoView { } } +#[component] +pub fn RegisterPage() -> impl IntoView { + view! { +
+ register +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
username
password

display name
summary
avatar url
banner url

+
+
+ } +} + #[component] pub fn ConfigPage(setter: WriteSignal) -> impl IntoView { let config = use_context::>().expect("missing config context");