Skip to content

Commit

Permalink
adding a footer and a thank you to bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Jun 4, 2020
1 parent 0a6369e commit c531d44
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 8 deletions.
16 changes: 14 additions & 2 deletions src/Main.elm
Expand Up @@ -13,6 +13,7 @@ import Html
, header
, img
, li
, span
, text
, ul
)
Expand All @@ -21,6 +22,7 @@ import Html.Attributes
( class
, classList
, href
, id
, src
)
import Page.Home
Expand Down Expand Up @@ -245,8 +247,18 @@ view model =
]
]
, div [ class "container main" ]
[ viewPage model
, footer [] []
[ div [ id "content" ] [ viewPage model ]
, footer
[ class "container text-center" ]
[ div []
[ span [] [ text "Elasticsearch instance graciously provided by " ]
, a [ href "https://bonsai.io" ] [ text "Bonsai" ]
, span [] [ text "." ]
]
, div []
[ span [] [ text "❤️ Thank you ❤️ " ]
]
]
]
]

Expand Down
14 changes: 8 additions & 6 deletions src/index.js
Expand Up @@ -4,9 +4,11 @@ require("./index.scss");

const {Elm} = require('./Main');

Elm.Main.init({flags: {
elasticsearchMappingSchemaVersion: process.env.ELASTICSEARCH_MAPPING_SCHEMA_VERSION || 2,
elasticsearchUrl: process.env.ELASTICSEARCH_URL || 'https://nixos-search-5886075189.us-east-1.bonsaisearch.net:443',
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'z3ZFJ6y2mR',
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'ds8CEvALPf9pui7XG'
}});
Elm.Main.init({
flags: {
elasticsearchMappingSchemaVersion: process.env.ELASTICSEARCH_MAPPING_SCHEMA_VERSION || 2,
elasticsearchUrl: process.env.ELASTICSEARCH_URL || 'https://nixos-search-5886075189.us-east-1.bonsaisearch.net:443',
elasticsearchUsername : process.env.ELASTICSEARCH_USERNAME || 'z3ZFJ6y2mR',
elasticsearchPassword : process.env.ELASTICSEARCH_PASSWORD || 'ds8CEvALPf9pui7XG'
}
});
15 changes: 15 additions & 0 deletions src/index.scss
@@ -1,3 +1,18 @@
body {
position: relative;
min-height: 100vh;
}

#content {
padding-bottom: 4rem;
}

footer {
position: absolute;
bottom: 0;
width: 100%;
height: 4rem;
}

header .navbar {
a.brand {
Expand Down

0 comments on commit c531d44

Please sign in to comment.