Add part6

This commit is contained in:
Richard Feldman
2018-08-11 18:22:37 -04:00
parent b76a1f17e9
commit 8f67672ffe
55 changed files with 5971 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
module Loading exposing (error, icon, slowThreshold)
{-| A loading spinner icon.
-}
import Asset
import Html exposing (Attribute, Html)
import Html.Attributes exposing (alt, height, src, width)
import Process
import Task exposing (Task)
icon : Html msg
icon =
Html.img [ Asset.src Asset.loading, width 64, height 64, alt "Loading..." ] []
error : String -> Html msg
error str =
Html.text ("Error loading " ++ str ++ ".")
slowThreshold : Task x ()
slowThreshold =
Process.sleep 500