Skip to content

Commit

Permalink
#39 howdidyourvisitgopage styled
Browse files Browse the repository at this point in the history
  • Loading branch information
rebecacalvoquintero committed Dec 8, 2017
1 parent a8d9aec commit 5678238
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
20 changes: 11 additions & 9 deletions src/css/_custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,8 @@ button {
font-family: var(--sans-serif);
}

.startVisit {
border: 2px solid var(--brand-orange);
border-radius: 2rem;
}

.prevVisits {
border: 2px solid var(--brand-pink);
border-radius: 2rem;
}

.brand {
Expand Down Expand Up @@ -58,13 +52,16 @@ button {
}

/*REBE's Changes*/
.endVisit {
border: 2px solid #FFFFFF;
.b-orange {
border: 2px solid var(--brand-orange);

}
.finish {
border: 2px solid #FFFFFF;
}

.br1 {
border-radius: 1.5rem;
border-radius: 2rem;
}

.w8 {
Expand All @@ -84,4 +81,9 @@ button {
padding-top:12rem;
}

.h3 {
height: 3rem;
}


/*MAVIS' Changes*/
4 changes: 2 additions & 2 deletions src/elm/Routes/Home.elm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ home model =
[ img [ class "center pt5 logo h5 ma0", src "./assets/logo_whole.png" ] []
, p [ class "tc center brand f3" ] [ text "supporting our volunteers" ]
, section [ class "center ma0 mt2 pt2" ]
[ button [ class "w8 h8 ma3 brand bg-white center db f3 startVisit", onClick StartVisit ] [ text "Start my visit" ]
, a [ href "#previousVisitsOverviewPage", class "link" ] [ button [ class "w8 h8 ma3 brand-pink bg-white center db f3 prevVisits" ] [ text "Go to visits" ] ]
[ button [ class "br1 w8 h8 ma3 brand bg-white center db f3 b-orange", onClick StartVisit ] [ text "Start my visit" ]
, a [ href "#previousVisitsOverviewPage", class "link" ] [ button [ class "br1 w8 h8 ma3 brand-pink bg-white center db f3 prevVisits" ] [ text "Go to visits" ] ]
]
]
16 changes: 10 additions & 6 deletions src/elm/Routes/StopVisitPage.elm
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import Model exposing (..)

stopVisitPage : Model -> Html Msg
stopVisitPage model =
div [ class "w-60-ns center" ]
[ h1 [ class "tc f1" ] [ text "Great! How did you visit go?" ]
, section []
[ a [ href "#audioMessagePage", class "pa2 link dim" ] [ text "record Audio" ]
, a [ href "#textMessagePage", class "pa2 link dim" ] [ text "write message" ]
div [ class "brand w-60-ns center" ]
[ p [ class "tc f3 pa4" ] [ text "Great! How did you visit go?" ]
, section [ class "flex justify-center pa2" ]
[ a [ href "#audioMessagePage", class "tc ma2 link dim dib f4" ]
[ img [ src "./assets/mic.svg" ] [], p [ class "brand" ] [ text "record Audio" ] ]
, a [ href "#textMessagePage", class "tc ma2 link dim dib f4" ]
[ img [ src "./assets/write.svg" ] [], p [ class "brand" ] [ text "write message" ] ]
]
, section [ class "pa4 flex justify-center" ]
[ button [ class "tc ma0 center brand bg-white h3 w5 b br1 b-orange f4", onClick FinishFeedback ] [ text "Finish" ]
]
, button [ onClick FinishFeedback ] [ text "Finish" ]
]

0 comments on commit 5678238

Please sign in to comment.