chore(layout): move deploy stamp from navbar to footer
Free up navbar space and let every viewport see the timestamp (the old `hidden md:inline` hid it on phones). Now shows relative + full UTC inline.
This commit is contained in:
parent
2e60e65e2f
commit
617022668e
1 changed files with 5 additions and 6 deletions
|
|
@ -83,7 +83,6 @@ defmodule MicrowavepropWeb.Layouts do
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-none flex items-center gap-3">
|
<div class="flex-none flex items-center gap-3">
|
||||||
<.deploy_stamp />
|
|
||||||
<.theme_toggle />
|
<.theme_toggle />
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -105,6 +104,9 @@ defmodule MicrowavepropWeb.Layouts do
|
||||||
<div>
|
<div>
|
||||||
<.link navigate="/privacy" class="link link-hover">Privacy</.link>
|
<.link navigate="/privacy" class="link link-hover">Privacy</.link>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<.deploy_stamp />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
@ -151,11 +153,8 @@ defmodule MicrowavepropWeb.Layouts do
|
||||||
assigns = assign(assigns, build_time: ts, iso: iso, ago: format_time_ago(ts))
|
assigns = assign(assigns, build_time: ts, iso: iso, ago: format_time_ago(ts))
|
||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<span
|
<span title={"Last deployed #{@iso}"}>
|
||||||
class="hidden md:inline text-xs opacity-60"
|
Deployed {@ago} · <span class="font-mono">{@iso}</span>
|
||||||
title={"Last deployed #{@iso}"}
|
|
||||||
>
|
|
||||||
Deployed {@ago}
|
|
||||||
</span>
|
</span>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue