diff --git a/web/index.html b/web/index.html index eb1fbf9..1f7dcc0 100644 --- a/web/index.html +++ b/web/index.html @@ -19,16 +19,33 @@ } body { margin: 0; + padding-bottom: 1.2em; } nav { top: 0; position: sticky; - background-color: var(--background); padding-top: .05em; + background-color: var(--background); } - hr.nav { + footer { + width: 100%; + position: fixed; + bottom: 0; + background-color: var(--background); + text-align: center; + padding-bottom: 0; + line-height: 1rem; + } + span.footer { + padding: .1em; + font-size: .6em; + color: var(--secondary); + } + hr.sep { margin-top: 0; padding-top: 0; + margin-bottom: 0; + padding-bottom: 0; border: 1px solid #bf616a70; top: 1.65rem; position: sticky; @@ -36,8 +53,8 @@ div.sticky { top: 4em; position: sticky; + background-color: var(--background); } - .hidden { display: none; } a.upub-title { color: var(--primary); text-decoration: none; @@ -53,8 +70,6 @@ max-height: 2em; border-radius: 50%; } - div.boxscroll { - } div.tl-header { background-color: #bf616a55; color: #bf616a; @@ -62,20 +77,13 @@ table.post-table { border-collapse: collapse; } - tr.post-table { - border: 1px dashed #bf616a; + table p { + margin: .5em; } + tr.post-table, td.post-table { border: 1px dashed #bf616a; } - @media screen and (max-width: 786px) { - div.boxscroll { - max-height: 100%; - } - } - table.align { - line-height: 1rem; - } td.top { vertical-align: top; } diff --git a/web/src/main.rs b/web/src/main.rs index 4c6ad0d..6eae989 100644 --- a/web/src/main.rs +++ b/web/src/main.rs @@ -17,6 +17,8 @@ fn main() { let home_tl = Timeline::new(format!("{URL_BASE}/users/{}/inbox/page", username.get().unwrap_or_default())); let server_tl = Timeline::new(format!("{URL_BASE}/inbox/page")); + let (menu, set_menu) = create_signal(false); + spawn_local(async move { if let Err(e) = server_tl.more(cookie).await { console_error(&format!("error populating timeline: {e}")); @@ -37,9 +39,9 @@ fn main() { μpub micro social network, federated /* TODO kinda jank with the float but whatever, will do for now */ - src + - +
-
+
-
+
@@ -90,6 +92,12 @@ fn main() { }}
+ } ); }