Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra fancy progress bar on device details view #1783

Open
lawik opened this issue Jan 19, 2025 · 0 comments
Open

Extra fancy progress bar on device details view #1783

lawik opened this issue Jan 19, 2025 · 0 comments

Comments

@lawik
Copy link
Contributor

lawik commented Jan 19, 2025

Top-line sticky bar with gradient box. Pulsing opacity. All the fanciness ;)

This is a reminder for me and @joshk about what we've discussed.

This was the first version of that progress indicator:

defmodule NervesHubWeb.Components.FwupProgressNew do
  use NervesHubWeb, :component

  attr(:fwup_progress, :any)

  def render(assigns) do
    ~H"""
    <div class="sticky top-0 w-full h-0 overflow-visible">
      <div class="h-[1px] bg-success-500" role="progressbar" style={"width: #{@fwup_progress}%"} />
      <div class="text-center pt-2 text-sm animate-pulse">Updating firmware <%= @fwup_progress %>%</div>
    </div>
    """
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant