diff --git a/README.md b/README.md index 11ff843..0c873d6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AQIMON +# ![AQIMON](header.png) A simple Air Quality Index monitor, designed to work on the Raspberry Pi with the SDS011 Nova PM Sensor. diff --git a/aqimon/static/favicon.ico b/aqimon/static/favicon.ico index 47fb723..ea62ddc 100644 Binary files a/aqimon/static/favicon.ico and b/aqimon/static/favicon.ico differ diff --git a/aqimon/static/images/aqimon.png b/aqimon/static/images/aqimon.png new file mode 100644 index 0000000..08e6679 Binary files /dev/null and b/aqimon/static/images/aqimon.png differ diff --git a/aqimon/static/index.html b/aqimon/static/index.html index 908b7f1..3169898 100644 --- a/aqimon/static/index.html +++ b/aqimon/static/index.html @@ -4,6 +4,7 @@ + diff --git a/aqimon/templates/index.html b/aqimon/templates/index.html deleted file mode 100644 index 548ec62..0000000 --- a/aqimon/templates/index.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - AQI Reading - - - - - - - - - - - -
-
-
-
-
-

-
-
-
EPA PM2.5 AQI
-
-
-
-
-
-
-

-
-
-
Raw PM2.5
-
-
-
- -
-
-
-

-
-
-
Raw PM10
-
-
-
-
-
- -
-
-
- -
-
-
- - - - - diff --git a/elm/src/Main.elm b/elm/src/Main.elm index 12e5da1..6817d85 100644 --- a/elm/src/Main.elm +++ b/elm/src/Main.elm @@ -6,7 +6,6 @@ import Bootstrap.Form.Select as Select import Bootstrap.Grid as Grid import Bootstrap.Grid.Col as Col import Bootstrap.Grid.Row as Row -import Bootstrap.Text as Text import Browser import Chart.Item as CI import CurrentReads as CR exposing (..) @@ -14,8 +13,8 @@ import DeviceStatus as DS exposing (..) import EpaCommon as EC exposing (..) import EpaLevel as EL exposing (..) import Graph as G exposing (..) -import Html exposing (Attribute, Html, div, h1, h2, h5, text) -import Html.Attributes exposing (class, style, value) +import Html exposing (Attribute, Html, div, h1, h2, h5, img, text) +import Html.Attributes exposing (class, height, src, style, value, width) import Http import Json.Decode exposing (Decoder, andThen, fail, field, float, int, list, map2, map3, map4, maybe, string, succeed) import Task @@ -312,8 +311,10 @@ view model = [ Grid.row [ Row.attrs [ style "padding" "1em" ] ] [ Grid.col [] [ h1 - [] - [ text "AQI Monitor" ] + [ class "d-flex", class "align-items-center" ] + [ img [ src "/static/images/aqimon.png", style "margin-right" "0.5em", width 75, height 75, class "d-inline-block", class "align-text-top" ] [] + , text "AQI Monitor" + ] ] ] , Grid.row [ Row.attrs [ style "padding" "1em" ] ] diff --git a/header.png b/header.png new file mode 100644 index 0000000..dac9a7c Binary files /dev/null and b/header.png differ diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..f5c5c97 --- /dev/null +++ b/logo.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + +