Nicer loading indicator
continuous-integration/drone/push Build is passing Details

Closes #7
This commit is contained in:
3wc 2021-04-25 19:10:41 +02:00
parent d9a8d580ce
commit 047c35c278
3 changed files with 13 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="/style.css">
<title>abra apps</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!--<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.3/css/fontawesome.min.css">-->
<script src="https://kit.fontawesome.com/60c2d44730.js" crossorigin="anonymous"></script>

View File

@ -154,7 +154,12 @@ body model =
]
Loading ->
text "Loading..."
div [ class "d-flex align-items-center", style "height" "89vh" ]
[ div [ class "spinner-border m-auto text-light" ]
[
span [ class "sr-only" ] [ text "Loading..." ]
]
]
Success app ->
div []

View File

@ -190,8 +190,12 @@ viewApps model =
]
Loading ->
text "Loading..."
div [ class "d-flex align-items-center", style "height" "89vh" ]
[ div [ class "spinner-border m-auto text-light" ]
[
span [ class "sr-only" ] [ text "Loading..." ]
]
]
Success apps ->
div []
[ div [ class "row" ]