-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from CodeforAustralia/features/97-about-page
adds about page
- Loading branch information
Showing
8 changed files
with
126 additions
and
6 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
module About (view) where | ||
|
||
import Html exposing (Html, section, header, div, p, span, img, a, i, text) | ||
import Html.Attributes exposing (class, src, href) | ||
|
||
|
||
{-| The main HTML view for about page -} | ||
view : Html | ||
view = | ||
let | ||
appInfo = | ||
{ image = "images/logo.png" | ||
, description = "Heritage Near Me is a government initiative to implement transformational change to protect, share, and celebrate heritage in NSW at the local level by working closely with local government and communities to ensure that local heritage values have greater recognition." | ||
, title = "Heritage Near Me" | ||
, url = "http://github.com/CodeforAustralia/heritage-near-me" | ||
} | ||
creditInfo = | ||
{ image = "images/logo-code-for-australia.png" | ||
, description = "Code for Australia is nonprofit whose vision is a responsive government that works seamlessly with the public to create meaningful change through technology. This project was built by Code for Australia's 2016 fellows in Sydney." | ||
, title = "Code for Australia" | ||
, url = "http://codeforaustralia.org" | ||
} | ||
in | ||
div [class "content-area"] | ||
[ aboutSectionHtml appInfo | ||
, aboutSectionHtml creditInfo | ||
] | ||
|
||
|
||
|
||
type alias URL = String | ||
|
||
type alias AboutEntry = | ||
{ image : URL | ||
, description : String | ||
, title : String | ||
, url : URL | ||
} | ||
|
||
aboutSectionHtml : AboutEntry -> Html | ||
aboutSectionHtml entry = | ||
section [] | ||
[ header [] | ||
[ img [src entry.image, class "about-image"] [] ] | ||
, div [] | ||
[ p [] [text entry.description] ] | ||
, div [] | ||
[ linkHtml entry.title entry.url ] | ||
] | ||
|
||
|
||
{-| The HTML for a single story link -} | ||
linkHtml : String -> String -> Html | ||
linkHtml name url = a [class "block-link", href url] | ||
[ text name | ||
, span [class "link-arrow"] | ||
[ span [class "external-link"] [text "External Link"] | ||
, i [class "fa fa-angle-right"] [] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters