diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 75cdba4400..0717938bc4 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -1051,9 +1051,7 @@ mod tests { test_server.assert_response_regex( "/", StatusCode::OK, - ".*Ordinals.*

Ordinals

- -.* + ".*Ordinals.*

Status

cycle
0
diff --git a/src/subcommand/server/templates.rs b/src/subcommand/server/templates.rs index 862b312186..2506067a6c 100644 --- a/src/subcommand/server/templates.rs +++ b/src/subcommand/server/templates.rs @@ -57,7 +57,7 @@ mod tests { } } - pretty_assertions::assert_eq!( + assert_regex_match!( Foo.page().to_string(), " @@ -70,7 +70,19 @@ mod tests { +
+ +
+

Foo

+
" diff --git a/src/subcommand/server/templates/home.rs b/src/subcommand/server/templates/home.rs index 3291e93c8a..9ea06a1043 100644 --- a/src/subcommand/server/templates/home.rs +++ b/src/subcommand/server/templates/home.rs @@ -54,11 +54,7 @@ mod tests { ) ],) .to_string(), - "

Ordinals

- -

Search

-
.*
-

Status

+ "

Status

cycle
1
epoch
6
diff --git a/static/index.css b/static/index.css index ee5afc8bed..97e0de37a5 100644 --- a/static/index.css +++ b/static/index.css @@ -1,19 +1,11 @@ html { - margin-left: 1rem; - margin-right: 1rem; background-color: #121212; color: white; } -input[type="text"], textarea { - background-color: #242424; - border-style: solid; - border-width: 1px; - border-radius: 0.0625rem; -} - -body { - margin: 0 auto 0 auto !important; +main { + margin: 0 auto 0 auto; + padding: 0 1rem 0 1rem; max-width: 100%; width: 50rem; } @@ -53,7 +45,22 @@ a:visited { nav { display: flex; gap: 1rem; - justify-content: left; + padding: 1rem; + background-color: #242424; +} + +nav > form { + margin-left: auto; +} + +@media (max-width: 38rem) { + nav { + flex-direction: column; + } + + nav > form { + margin-left: 0; + } } .blocks { diff --git a/templates/home.html b/templates/home.html index 1690d79eb0..28979938a0 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,19 +1,3 @@ -

Ordinals

- -

Search

-
- - -
%% if let Some(starting_ordinal) = self.starting_ordinal {

Status

diff --git a/templates/page.html b/templates/page.html index d82054fe6d..0285acaeb8 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,6 +9,21 @@ +
+ +
+
$$ Trusted(&self.content) +