This repository has been archived by the owner on Jun 30, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #14 from kevgathuku/landing-elm
Port landing page component to Elm
- Loading branch information
Showing
6 changed files
with
95 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
module Landing exposing (..) | ||
|
||
import Html exposing (..) | ||
import Html.Attributes exposing (..) | ||
|
||
|
||
type alias Model = | ||
{ authLink : String | ||
} | ||
|
||
|
||
model : Model | ||
model = | ||
{ authLink = "/auth" } | ||
|
||
|
||
update msg model = | ||
model | ||
|
||
|
||
main = | ||
beginnerProgram { model = model, view = view, update = update } | ||
|
||
|
||
view : Model -> Html msg | ||
view model = | ||
div [ id "hero" ] | ||
[ div [ class "container", id "hero-text-container" ] | ||
[ div [ class "row" ] | ||
[ div [ class "col s12 center-align" ] | ||
[ h1 [ id "hero-title" ] | ||
[ span [ class "bold" ] [ text "Docue " ] | ||
, span [ class "thin" ] [ text "is the simplest way for" ] | ||
, br [] [] | ||
, span [ class "thin" ] [ text "you to manage your documents online" ] | ||
] | ||
] | ||
] | ||
, div [ class "row" ] | ||
[ div [ class "col s12" ] | ||
[ div [ class "center-align" ] | ||
[ a [ class "btn btn-large create-list-link hero-btn", href model.authLink ] [ text "Get Started" ] | ||
] | ||
] | ||
] | ||
] | ||
] |
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,13 @@ | ||
import React from 'react'; | ||
import Elm from 'react-elm-components'; | ||
import { Landing } from '../Landing.elm'; | ||
|
||
// Requires the CSS for it to be included in the final output | ||
import 'react-select/dist/react-select.css'; | ||
import '../../styles/style.css'; | ||
|
||
export default class Main extends React.PureComponent { | ||
render() { | ||
return <Elm src={Landing} />; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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