This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #18 from erlanglab/about-page-content
About page basic content
- Loading branch information
Showing
10 changed files
with
99 additions
and
19 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
.About { | ||
} | ||
|
||
.About .header { | ||
width: 100%; | ||
} | ||
|
||
.About img { | ||
height: 150px; | ||
} | ||
|
||
.About .content { | ||
width: 80%; | ||
margin-left: 10%; | ||
padding: 10px; | ||
} | ||
|
||
|
||
.About a { | ||
color: #1F79B7; | ||
margin-left: 5px; | ||
display: inline-block; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
module About.Types exposing (..) | ||
|
||
import Http | ||
|
||
|
||
type Msg | ||
= No0p | ||
= RequestVersion (Result Http.Error String) | ||
|
||
|
||
type alias Model = | ||
String | ||
( String, String ) |
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 |
---|---|---|
@@ -1,12 +1,53 @@ | ||
module About.View exposing (..) | ||
|
||
import About.Types exposing (..) | ||
import Html exposing (Html, div, text, img) | ||
import Html.Attributes exposing (class, src) | ||
import Html exposing (Html, h5, h2, h4, div, text, span, img, a, i, br) | ||
import Html.Attributes exposing (class, src, href, target) | ||
|
||
|
||
viewText : String -> List (Html Msg) | ||
viewText str = | ||
str | ||
|> String.lines | ||
|> List.foldl (\a acc -> acc ++ [ span [] [ text a ], br [] [] ]) [] | ||
|
||
|
||
description : String | ||
description = | ||
""" | ||
It helps to observe the system and analyze its performance. If you have any idea how we can make erlangpl better, | ||
or you want to contribute, feel free to open issue or send PR | ||
""" | ||
|
||
|
||
view : Model -> Html Msg | ||
view model = | ||
div [ class "About" ] | ||
[ text "About page" | ||
view ( logo, version ) = | ||
div [ class "About text-center" ] | ||
[ div [ class "header text-center" ] | ||
[ img [ src logo ] [] | ||
] | ||
, div [ class "content" ] | ||
[ h2 [ class "text-center" ] | ||
[ text <| "Erlang Performance Lab v" ++ version | ||
] | ||
, h5 [ class "text-center" ] [ text "tool for developers working with the Erlang VM (BEAM).\n" ] | ||
, span [] <| viewText description | ||
, h4 [] [ text "Links" ] | ||
, i [ class "fa fa-github" ] [] | ||
, a [ href "https://github.com/erlanglab", target "_blank" ] | ||
[ text "GitHub" ] | ||
, br [] [] | ||
, i [ class "fa fa-twitter" ] [] | ||
, a [ href "https://twitter.com/erlanglab", target "_blank" ] | ||
[ text "Twitter" ] | ||
, br [] [] | ||
, i [ class "fa fa-info" ] [] | ||
, a [ href "https://erlang.pl", target "_blank" ] | ||
[ text "Website" ] | ||
, br [] [] | ||
, i [ class "fa fa-file-text-o" ] [] | ||
, a [ href "http://apache.org/licenses/LICENSE-2.0", target "_blank" ] | ||
[ text "Licence: Apache 2.0" ] | ||
, br [] [] | ||
] | ||
] |
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