feat: standardized formatting conventions across pages

This commit is contained in:
Nick 2024-11-27 23:06:00 -06:00
parent ead41f0ed0
commit 5e25267fbe
3 changed files with 39 additions and 62 deletions

View file

@ -169,14 +169,19 @@ myTooltip str =
, D.rounded 5 , D.rounded 5
, D.width 2 , D.width 2
, F.center , F.center
, clip
, E.width <| px 300 , E.width <| px 300
, D.color colourTheme.highlightText , D.color colourTheme.highlightText
, F.size 15 , F.size 15
, D.shadow , D.shadow
{ offset = ( 0, 3 ), blur = 6, size = 0, color = rgba 0 0 0 0.32 } { offset = ( 0, 3 ), blur = 6, size = 0, color = rgba 0 0 0 0.32 }
, E.htmlAttribute (H.style "position" "fixed")
, E.htmlAttribute (H.style "z-index" "9999")
, F.color colourTheme.nonHighlightedText
, F.regular
, F.size 14
] ]
(text str) (text str)
|> el [ F.color colourTheme.nonHighlightedText, F.regular, F.size 14 ]
tooltip : (Element msg -> Attribute msg) -> Element Never -> Attribute msg tooltip : (Element msg -> Attribute msg) -> Element Never -> Attribute msg

View file

@ -119,12 +119,6 @@ makeDodge dodgeEntry index =
, column , column
[ spacing 8 [ spacing 8
, width fill , width fill
, paddingEach
{ top = 0
, right = 0
, bottom = 0
, left = 35
}
] ]
[ propositionMaker dodgeEntry [ propositionMaker dodgeEntry
, reductioMaker dodgeEntry , reductioMaker dodgeEntry

View file

@ -96,43 +96,39 @@ makeAppearance appearanceEntry index =
, width fill , width fill
] ]
) )
[ appearanceEpisode appearanceEntry index [ row
, experienceMaker appearanceEntry [ width fill
, dateMaker appearanceEntry , paddingEach
, subjectMaker appearanceEntry { top = 0
, subjectList appearanceEntry , right = 0
] , bottom = 0
, left = 35
}
appearanceEpisode : Appearance -> Int -> Element msg ]
appearanceEpisode appearanceEntry index = [ column
row (paragraphFormat
(paragraphFormat ++ [ F.size 18
++ [ F.size 18 , alignTop
, E.width fill , alignRight
, paddingEach , F.alignRight
{ top = 0 ]
, bottom = 0 )
, left = 35 [ text (String.fromInt index ++ ". ") ]
, right = 0 , column
} [ spacing 8
] , width fill
) ]
[ text (String.fromInt index ++ ". ") [ column
, paragraphLinkFormat [ spacing 8
{ url = appearanceEntry.appearanceLink , width fill
, label =
row
[ F.size 18
] ]
[ text ("#" ++ appearanceEntry.appearanceEpisode ++ ": " ++ appearanceEntry.appearanceTitle) [ experienceMaker appearanceEntry
|> el , dateMaker appearanceEntry
[ F.color colourTheme.highlightText , subjectMaker appearanceEntry
, mouseOver [ F.color colourTheme.highlightTextHover ] , subjectList appearanceEntry
, transitionStyle
]
] ]
} ]
]
] ]
@ -141,12 +137,6 @@ experienceMaker appearanceEntry =
row row
[ width fill [ width fill
, height fill , height fill
, paddingEach
{ top = 0
, bottom = 0
, left = 55
, right = 0
}
] ]
[ column [ column
[ E.alignTop, E.alignLeft ] [ E.alignTop, E.alignLeft ]
@ -154,7 +144,7 @@ experienceMaker appearanceEntry =
[ el [ tooltip below (myTooltip "This represents how pleasant it was to interact with the host(s).") ] (text "Pleasantness:") ] [ el [ tooltip below (myTooltip "This represents how pleasant it was to interact with the host(s).") ] (text "Pleasantness:") ]
] ]
, column , column
[ E.width fill, E.alignLeft, centerY, height fill ] [ E.width fill, E.alignLeft ]
[ barMaker getExperienceTooltip appearanceEntry.appearanceExperience ] [ barMaker getExperienceTooltip appearanceEntry.appearanceExperience ]
] ]
@ -204,12 +194,6 @@ dateMaker appearanceEntry =
row paragraphBoldFormat row paragraphBoldFormat
[ column [ column
[ alignTop [ alignTop
, paddingEach
{ top = 0
, right = 0
, bottom = 0
, left = 55
}
] ]
[ text "Published:" [ text "Published:"
] ]
@ -236,12 +220,6 @@ subjectMaker appearanceEntry =
row paragraphBoldFormat row paragraphBoldFormat
[ column [ column
[ alignTop [ alignTop
, paddingEach
{ top = 0
, right = 0
, bottom = 0
, left = 55
}
] ]
[ text "Subjects:" [ text "Subjects:"
] ]
@ -257,7 +235,7 @@ subjectList appearanceEntry =
{ top = 0 { top = 0
, right = 0 , right = 0
, bottom = 0 , bottom = 0
, left = 75 , left = 25
} }
] ]
<| <|