Skip to content

Commit

Permalink
Fix scroll links after refactoring section
Browse files Browse the repository at this point in the history
  • Loading branch information
cgm616 committed Apr 22, 2017
1 parent 0b058fa commit 5a274d0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/src/elm/Threshold.elm
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,19 @@ view model =
]
]
, viewSection Left
"what"
"What is Pupil?"
(p [] [ text "Pupil is a new way to augment learning outside of a classroom environment." ])
, viewSection Right
"why"
"Why use Pupil?"
(p [] [ text "Pupil is a new way to augment learning outside of a classroom environment." ])
, viewSection Left
"how"
"How does Pupil work?"
(p [] [ text "Pupil is a new way to augment learning outside of a classroom environment." ])
, viewSection Right
"about"
"Who built Pupil?"
(p [] [ text "Pupil is a new way to augment learning outside of a classroom environment." ])
]
Expand Down Expand Up @@ -317,12 +321,12 @@ type Side
| Right


viewSection contentSide title_ content_ =
viewSection contentSide link_ title_ content_ =
case contentSide of
Left ->
section
[ class "hero is-medium is-dark" ]
[ a [ name "how" ] []
[ a [ name link_ ] []
, div [ class "hero-body" ]
[ div [ class "container" ]
[ div [ class "columns" ]
Expand All @@ -344,7 +348,7 @@ viewSection contentSide title_ content_ =
Right ->
section
[ class "hero is-medium is-info" ]
[ a [ name "about" ] []
[ a [ name link_ ] []
, div [ class "hero-body" ]
[ div [ class "container" ]
[ div [ class "columns" ]
Expand Down

0 comments on commit 5a274d0

Please sign in to comment.