more naming fixups
continuous-integration/drone/push Build was killed Details

This commit is contained in:
decentral1se 2022-05-04 11:19:28 +02:00
parent 910d0bf2ae
commit 375cafb946
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
5 changed files with 24 additions and 24 deletions

View File

@ -28,7 +28,7 @@
<div class="card"> <div class="card">
<div class="card-header"> <div class="card-header">
<h2> <h2>
abra recipes</h2> Co-op Cloud Recipes</h2>
</div> </div>
<div class="card-body"> <div class="card-body">
<p> <p>

View File

@ -33,21 +33,21 @@ type alias Params =
view : Url Params -> Document Msg view : Url Params -> Document Msg
view { params } = view { params } =
let let
elm_link = a [ href "https://elm-lang.org/" ] [ text "Elm" ] elm_link = a [ href "https://elm-lang.org/" ] [ text "Elm" ]
coopcloud_link = a [ href "https://coopcloud.tech/" ] [ text "Co-op Cloud" ] coopcloud_link = a [ href "https://coopcloud.tech/" ] [ text "Co-op Cloud" ]
source_link = a [ href "https://git.coopcloud.tech/coop-cloud/abra-apps" ] [ text "source" ] source_link = a [ href "https://git.coopcloud.tech/coop-cloud/abra-apps" ] [ text "source" ]
in in
{ title = "about abra recipes" { title = "About Co-op Cloud Recipes"
, body = , body =
[ div [ class "pt-3" ] [ div [ class "pt-3" ]
[ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ] [ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ]
[ div [ class "card" ] [ div [ class "card" ]
[ div [ class "card-header" ] [ div [ class "card-header" ]
[ h2 [] [ text "abra recipes" ] [ h2 [] [ text "Co-op Cloud Recipes" ]
] ]
, div [ class "card-body" ] , div [ class "card-body" ]
[ p [] [ p []
[ [
text "a lil' " text "a lil' "
, text " tool to display " , text " tool to display "
@ -57,12 +57,12 @@ view { params } =
, p [] , p []
[ [
text "written in " text "written in "
, elm_link , elm_link
, text " for some reason 🤷" , text " for some reason 🤷"
] ]
] ]
, div [ class "card-footer" ] , div [ class "card-footer" ]
[ p [] [ p []
[ text "by @3wc (" [ text "by @3wc ("
, source_link , source_link
, text ")" , text ")"

View File

@ -151,13 +151,13 @@ title : Model -> String
title model = title model =
case model.status of case model.status of
Loading -> Loading ->
"loading abra recipes" "loading Co-op Cloud Recipes"
Failure -> Failure ->
"error - abra recipes" "error - Co-op Cloud Recipes"
Success app -> Success app ->
app.name ++ " abra recipes" app.name ++ " Co-op Cloud Recipes"
body : Model -> Html Msg body : Model -> Html Msg

View File

@ -113,7 +113,7 @@ filterAppsScore : List App -> Maybe Int -> List App
filterAppsScore apps score = filterAppsScore apps score =
case score of case score of
Just s -> Just s ->
List.filter (\app -> List.filter (\app ->
app.status <= s app.status <= s
) apps ) apps
Nothing -> Nothing ->
@ -126,7 +126,7 @@ filterAppsCategory apps category =
if c == All then if c == All then
apps apps
else else
List.filter (\app -> List.filter (\app ->
app.category == categories.toString c app.category == categories.toString c
) apps ) apps
Nothing -> Nothing ->
@ -138,7 +138,7 @@ filterAppsText apps text =
Just "" -> Just "" ->
apps apps
Just t -> Just t ->
List.filter (\app -> List.filter (\app ->
String.contains (String.toLower t) ( String.contains (String.toLower t) (
String.toLower app.name ++ String.toLower ( String.toLower app.name ++ String.toLower (
Maybe.withDefault "" app.description Maybe.withDefault "" app.description
@ -214,7 +214,7 @@ subscriptions model =
view : Model -> Document Msg view : Model -> Document Msg
view model = view model =
{ title = "abra recipes" { title = "Co-op Cloud Recipes"
, body = [ body model ] , body = [ body model ]
} }
@ -342,7 +342,7 @@ viewApps model =
, div [ class "col-md-6" ] , div [ class "col-md-6" ]
[ div [ class "row" ] [ div [ class "row" ]
[ div [ class "col-sm-12" ] [ [ div [ class "col-sm-12" ] [
div [] [ div [] [
form [ class "search-bar-container" ] [ form [ class "search-bar-container" ] [
label [ for "text" ] [ text "Search" ] label [ for "text" ] [ text "Search" ]
, input [ class "search-bar-input", id "text", onInput FilterText ] [] , input [ class "search-bar-input", id "text", onInput FilterText ] []

View File

@ -68,18 +68,18 @@ view :
view { page, toMsg } model = view { page, toMsg } model =
{ title = page.title { title = page.title
, body = , body =
[ div [ class "background" ] [ div [ class "background" ]
[ nav [ nav
[ class "navbar navbar-expand-lg sticky-top font-weight-bold" ] [ class "navbar navbar-expand-lg sticky-top font-weight-bold" ]
[ a [ class "navbar-text", href (Route.toString Route.Top) ] [ a [ class "navbar-text", href (Route.toString Route.Top) ]
[ img [ img
[ src "/logo-2.png" [ src "/logo-2.png"
, class "d-inline-block align-top mr-2" , class "d-inline-block align-top mr-2"
, alt "" , alt ""
, width 48 , width 48
, height 16 ] [] , height 16 ] []
, text "abra recipes" , text "Co-op Cloud Recipes"
] ]
, ul [ class "navbar-nav" ] , ul [ class "navbar-nav" ]
[ li [ class "nav-tem" ] [ a [ class "nav-link navbar-text", href (Route.toString Route.About) ] [ text "about" ] ] [ li [ class "nav-tem" ] [ a [ class "nav-link navbar-text", href (Route.toString Route.About) ] [ text "about" ] ]
] ]