fix fonts

This commit is contained in:
DieMyst 2020-12-04 17:06:41 +03:00
parent 705d58e1b2
commit 43ef82f79b
5 changed files with 17 additions and 13 deletions

View File

@ -36,9 +36,9 @@ view model =
viewService : BlueprintInfo -> Html msg
viewService blueprint =
div [ classes "fl w-third pr3 lucida" ]
[ a [ attribute "href" ("/blueprint/" ++ blueprint.id), classes "fl w-100 bg-white black mw6 mr3 mb3 ph4 hide-child pa2 br3 element-box ba b--white bw1 no-underline" ]
[ div [ classes "w-100 mb3 pt1 b" ] [ text blueprint.name ]
, div [ classes "w-100 mb4" ] [ text "By ", span [classes "b"] [text blueprint.author] ]
[ a [ attribute "href" ("/blueprint/" ++ blueprint.id), classes "fl w-100 bg-white black mw6 mr3 mb3 ph3 hide-child pa2 br3 element-box ba b--white bw1 no-underline" ]
[ div [ classes "w-100 mb2 pt1 b" ] [ text blueprint.name ]
, div [ classes "w-100 mb4 f7" ] [ text "By ", span [classes "b lucida-in"] [text blueprint.author] ]
, div [ classes "w-100 mt1" ] [ instancesText blueprint.instanceNumber ]
]
]

View File

@ -1,8 +1,8 @@
module HubPage.View exposing (..)
import Blueprints.View
import Html exposing (Html, a, div, h1, h3, span, text)
import Html.Attributes exposing (attribute, style)
import Html exposing (Html, a, div, h1, h2, span, text)
import Html.Attributes exposing (attribute, )
import Instances.View
import Model exposing (Model)
import Modules.View
@ -14,11 +14,11 @@ view model =
div []
[ h1 [ redFont, classes "f2 lh-copy" ] [ text "Developer Hub" ]
, welcomeText
, h3 [ classes "mt4 pt4 mb4 medium-roboto" ] [ text "Featured Blueprints" ]
, h2 [ classes "mt4 pt4 mb3 lucida-in f4" ] [ text "Featured Blueprints" ]
, Blueprints.View.view model
, h3 [ classes "mt3 pt3 mb4 medium-roboto" ] [ text "Featured Modules" ]
, h2 [ classes "mt3 pt3 mb3 lucida-in f4" ] [ text "Featured Modules" ]
, Modules.View.view model
, h3 [ classes "mt3 pt3 mb4 medium-roboto" ] [ text "Service Instances" ]
, h2 [ classes "mt3 pt3 mb3 lucida-in f4" ] [ text "Service Instances" ]
, Tuple.second (Instances.View.view model (\_ -> True))
]

View File

@ -1,7 +1,7 @@
module Modules.View exposing (..)
import Dict exposing (Dict)
import Html exposing (Html, a, div, p, text)
import Html exposing (Html, a, b, div, p, text)
import Html.Attributes exposing (attribute)
import Maybe.Extra
import Model exposing (Model, PeerData)
@ -60,7 +60,7 @@ view modules =
viewService : ModuleShortInfo -> Html msg
viewService moduleInfo =
div [ classes "fl w-third pr3" ]
[ a [ attribute "href" ("/module/" ++ moduleInfo.moduleInfo.name), classes "fl w-100 bg-white black mw6 mr2 mb3 ph4 hide-child pa2 br3 element-box ba b--white bw1" ]
[ p [ classes "tl di" ] [ div [ classes "fl b w-100 mb1" ] [ text moduleInfo.moduleInfo.name ], div [ classes "fl w-100 mt1 lucida gray" ] [ instancesText moduleInfo.instanceNumber ] ]
[ a [ attribute "href" ("/module/" ++ moduleInfo.moduleInfo.name), classes "fl w-100 bg-white black mw6 mr2 mb3 ph3 hide-child pa2 br3 element-box ba b--white bw1" ]
[ p [ classes "tl di" ] [ div [ classes "fl b w-100 mb1 lucida" ] [ b [] [text moduleInfo.moduleInfo.name ] ], div [ classes "fl w-100 mt1 lucida gray" ] [ instancesText moduleInfo.instanceNumber ] ]
]
]

View File

@ -17,7 +17,7 @@ limitations under the License.
-}
import Browser exposing (Document, UrlRequest(..))
import Html exposing (Html, a, div, header, img, p, text)
import Html exposing (Html, a, b, div, header, img, p, text)
import Html.Attributes exposing (attribute, style)
import Model exposing (Model, Route(..))
import Msg exposing (..)
@ -46,7 +46,7 @@ body model =
[ img [ classes "v-mid dib mw-100 h-auto", attribute "src" "/images/logo_new.svg" ] []
]
]
, div [ classes "fl pl5 h-100" ] [ p [ classes "mv2" ] [ text "Developer Hub" ] ]
, div [ classes "fl pl5 h-100" ] [ p [ classes "mv2" ] [ b [] [text "Developer Hub" ]] ]
]
]
]

View File

@ -26,6 +26,10 @@ h1 {
font-size: 14px
}
.lucida-in {
font-family: 'Lucida Grande', Lucida, Tahoma, Verdana, Arial, sans-serif;
}
.welcome-text {
line-height: 20px;
}