From f5f0f371806892c70dab6f3ffe8a0b6805f7c248 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 2 Sep 2016 22:25:39 -0700 Subject: [PATCH] Style up /repositories pages --- part10/Page/Repository.elm | 6 +++--- part10/style.css | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/part10/Page/Repository.elm b/part10/Page/Repository.elm index 6e02cd1..04ca584 100644 --- a/part10/Page/Repository.elm +++ b/part10/Page/Repository.elm @@ -79,7 +79,7 @@ view model = |> Maybe.withDefault (text "") in div [] - [ h1 [] + [ h2 [] [ a [ href repoUrl ] [ text model.repoName ] ] , details ] @@ -88,8 +88,8 @@ view model = viewDetails : Repository -> Html Msg viewDetails repo = div [] - [ p [] [ text repo.description ] - , h2 [] + [ p [ class "repo-description" ] [ text repo.description ] + , h3 [] [ a [ href repo.owner.profileUrl ] [ img [ class "profile-photo", src repo.owner.avatarUrl ] [] , text repo.owner.username diff --git a/part10/style.css b/part10/style.css index b7772e1..7b987b2 100644 --- a/part10/style.css +++ b/part10/style.css @@ -103,3 +103,21 @@ button:focus, input:focus { a { cursor: pointer; } + +.repo-description { + font-size: 18px; +} + +.profile-photo { + width: 32px; + margin-right: 10px; +} + +th { + text-align: left; +} + +th, td { + font-size: 18px; + padding-right: 20px; +}