Compare commits
No commits in common. "634fc2c7c1080712ac4227b87ce04c57c33f4db8" and "672ff178c74e7abbdaddce094d224500af449b50" have entirely different histories.
634fc2c7c1
...
672ff178c7
5 changed files with 8 additions and 66 deletions
|
@ -46,7 +46,7 @@
|
||||||
font-size: 11pt;
|
font-size: 11pt;
|
||||||
}
|
}
|
||||||
textarea {
|
textarea {
|
||||||
font-size: 10pt;
|
font-size: 11pt;
|
||||||
}
|
}
|
||||||
nav {
|
nav {
|
||||||
z-index: 90;
|
z-index: 90;
|
||||||
|
@ -234,8 +234,7 @@
|
||||||
code.cw {
|
code.cw {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
input[type=button]:hover,
|
input[type="submit"].active {
|
||||||
input[type=submit].active {
|
|
||||||
background-color: var(--accent);
|
background-color: var(--accent);
|
||||||
border-color: var(--accent);
|
border-color: var(--accent);
|
||||||
color: var(--background);
|
color: var(--background);
|
||||||
|
|
|
@ -85,7 +85,6 @@ pub fn App() -> impl IntoView {
|
||||||
<Router // TODO maybe set base="/web" ?
|
<Router // TODO maybe set base="/web" ?
|
||||||
trailing_slash=TrailingSlash::Redirect
|
trailing_slash=TrailingSlash::Redirect
|
||||||
fallback=move || view! {
|
fallback=move || view! {
|
||||||
<Breadcrumb back=true >404</Breadcrumb>
|
|
||||||
<div class="center">
|
<div class="center">
|
||||||
<h3>nothing to see here!</h3>
|
<h3>nothing to see here!</h3>
|
||||||
<p><a href="/web"><button type="button">back to root</button></a></p>
|
<p><a href="/web"><button type="button">back to root</button></a></p>
|
||||||
|
@ -119,7 +118,6 @@ pub fn App() -> impl IntoView {
|
||||||
<Route path="/web/objects/:id" view=move || view! { <ObjectPage tl=context_tl /> } />
|
<Route path="/web/objects/:id" view=move || view! { <ObjectPage tl=context_tl /> } />
|
||||||
|
|
||||||
<Route path="/web/search" view=SearchPage />
|
<Route path="/web/search" view=SearchPage />
|
||||||
<Route path="/web/register" view=RegisterPage />
|
|
||||||
|
|
||||||
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
|
<Route path="/" view=move || view! { <Redirect path="/web" /> } />
|
||||||
</Routes>
|
</Routes>
|
||||||
|
|
|
@ -80,18 +80,9 @@ pub fn LoginBox(
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
} >
|
} >
|
||||||
<table class="w-100 align">
|
<input class="w-100" type="text" node_ref=username_ref placeholder="username" />
|
||||||
<tr>
|
<input class="w-100" type="password" node_ref=password_ref placeholder="password" />
|
||||||
<td colspan="2"><input class="w-100" type="text" node_ref=username_ref placeholder="username" /></td>
|
<input class="w-100" type="submit" value="login" />
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><input class="w-100" type="password" node_ref=password_ref placeholder="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="w-50"><input class="w-100" type="submit" value="login" /></td>
|
|
||||||
<td class="w-50"><a href="/web/register"><input class="w-100" type="button" value="register" /></a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -12,7 +12,7 @@ pub fn Navigator() -> impl IntoView {
|
||||||
<table class="align">
|
<table class="align">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="w-100">
|
<td class="w-100">
|
||||||
<input type="text" placeholder="search" class="w-100" on:input=move |ev| {
|
<input type="text" class="w-100" on:input=move |ev| {
|
||||||
set_query.set(event_target_value(&ev))
|
set_query.set(event_target_value(&ev))
|
||||||
} />
|
} />
|
||||||
</td>
|
</td>
|
||||||
|
@ -90,12 +90,12 @@ pub fn PostBox(advanced: WriteSignal<bool>) -> impl IntoView {
|
||||||
}
|
}
|
||||||
<table class="align w-100">
|
<table class="align w-100">
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" on:input=move |ev| advanced.set(event_target_checked(&ev)) title="toggle advanced controls" /></td>
|
<td><input type="checkbox" on:input=move |ev| advanced.set(event_target_checked(&ev)) title="advanced" /></td>
|
||||||
<td class="w-100"><input class="w-100" type="text" node_ref=summary_ref title="summary" /></td>
|
<td class="w-100"><input class="w-100" type="text" node_ref=summary_ref title="summary" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<textarea rows="6" class="w-100" node_ref=content_ref title="content" placeholder="\n look at nothing\n what do you see?" ></textarea>
|
<textarea rows="6" class="w-100" node_ref=content_ref title="content" ></textarea>
|
||||||
|
|
||||||
<table class="align rev w-100">
|
<table class="align rev w-100">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -23,52 +23,6 @@ pub fn AboutPage() -> impl IntoView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[component]
|
|
||||||
pub fn RegisterPage() -> impl IntoView {
|
|
||||||
view! {
|
|
||||||
<div>
|
|
||||||
<Breadcrumb>register</Breadcrumb>
|
|
||||||
<form>
|
|
||||||
<table class="align ma-3">
|
|
||||||
<tr>
|
|
||||||
<td>username</td>
|
|
||||||
<td><input type="email" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>password</td>
|
|
||||||
<td><input type="password" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><hr /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>display name</td>
|
|
||||||
<td><input type="text" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>summary</td>
|
|
||||||
<td><input type="text" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>avatar url</td>
|
|
||||||
<td><input type="text" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>banner url</td>
|
|
||||||
<td><input type="text" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><hr /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2"><input class="w-100" type="submit" value="register" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[component]
|
#[component]
|
||||||
pub fn ConfigPage(setter: WriteSignal<Config>) -> impl IntoView {
|
pub fn ConfigPage(setter: WriteSignal<Config>) -> impl IntoView {
|
||||||
let config = use_context::<Signal<Config>>().expect("missing config context");
|
let config = use_context::<Signal<Config>>().expect("missing config context");
|
||||||
|
|
Loading…
Reference in a new issue