-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6684fed
commit fafc460
Showing
3 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
defmodule MediaServerWeb.Components.SpinnerComponent do | ||
use Phoenix.Component | ||
|
||
def render(assigns) do | ||
~H""" | ||
<div class="w-12 h-12 rounded-full animate-spin border-2 border-solid border-slate-500 border-t-transparent"></div> | ||
""" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
<.live_component module={MediaServerWeb.Components.NavComponent} | ||
id="nav-component" | ||
class="text-slate-600 hover:text-slate-800" | ||
/> | ||
/> | ||
|
||
<%= MediaServerWeb.Components.SpinnerComponent.render(%{}) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters