feat: fixed receipts

This commit is contained in:
Nick 2024-12-19 01:43:02 -06:00
parent 2295c85fca
commit 97b9223223
18 changed files with 185 additions and 102 deletions

0
frontend/src/Config/Helpers/Articles/Article.elm Normal file → Executable file
View file

View file

@ -103,7 +103,11 @@ imageTransitionStyle =
, glowDeepDarkGrey
, D.color colourTheme.backgroundDarkGrey
, B.color colourTheme.backgroundDarkGrey
, hoverCircleButtonDarkOrange
, mouseOver
[ D.color colourTheme.textDarkOrange
, B.color colourTheme.textDarkOrange
, glowDeepDarkOrange
]
, transitionStyleMedium
]

0
frontend/src/Config/Helpers/Headers/Types.elm Normal file → Executable file
View file

View file

@ -57,7 +57,7 @@ titleMaker title =
, width fill
, F.color colourTheme.textLightOrange
, paddingEach
{ top = 10
{ top = 20
, bottom = 10
, left = 0
, right = 0

View file

@ -43,3 +43,48 @@ tooltip content =
(text content)
]
none
tooltipImage : String -> Attribute msg
tooltipImage content =
inFront <|
el
[ width fill
, height fill
, transparent True
, mouseOver [ transparent False ]
, htmlAttribute <| H.style "z-index" "4"
, transitionStyleSlow
, onRight <|
el
[ htmlAttribute (H.style "pointerEvents" "none")
, moveLeft 410
]
<|
el
[ width <| px 600
, htmlAttribute <| H.style "z-index" "4"
, B.color colourTheme.backgroundLightGrey
, padding 15
, D.color colourTheme.textLightOrange
, D.rounded 5
, D.width 2
, D.shadow
{ offset = ( 0, 3 )
, blur = 6
, size = 0
, color = rgba 0 0 0 0.32
}
]
(image
[ width fill
, height fill
, centerX
, centerY
]
{ src = content
, description = "Tooltip image"
}
)
]
none

View file

View file

@ -2,7 +2,6 @@ module Config.Pages.Debate.Cuckery.Records.AdamSinger exposing (..)
import Config.Helpers.Converters exposing (formatName)
import Config.Pages.Debate.Cuckery.Types exposing (..)
import Config.Helpers.Converters exposing (formatName)
cuckAdamSinger : Cuck
@ -19,8 +18,11 @@ cuckAdamSinger =
[ { dodgeLink = "https://x.com/TheNutrivore/status/1566491269194719232?s=20"
, dodgeDescription = VagueGesture
, dodgeProposition = "Seed oils cause inflammation and stomach pain."
, dodgeReceipts = [ "https://x.com/TheNutrivore/status/1566491269194719232?s=20" ]
, dodgeFallacy = Just (SpecificFallacy "")
, dodgeReceipts =
[ "receipt1"
, "receipt2"
]
, dodgeFallacy = Just MotteAndBailey
, dodgeNicksDoxasticState = Just Disbelief
, dodgeNicksDoxasticReason = SpecificPropReason commonPropReasons.propSeedOilsReason
}

View file

@ -18,7 +18,7 @@ cuckAmberOHearn =
[ { dodgeLink = "https://x.com/FusionProgGuy/status/1413888976281169922?s=20"
, dodgeDescription = VagueGesture
, dodgeProposition = noProposition
, dodgeReceipts = []
, dodgeReceipts = ["receipt1"]
, dodgeFallacy = Just (SpecificFallacy "")
, dodgeNicksDoxasticState = Nothing
, dodgeNicksDoxasticReason = NoProp

View file

@ -13,7 +13,7 @@ glowDeepDarkGrey =
glowDeepDarkOrange : Attr decorative msg
glowDeepDarkOrange =
D.glow colourTheme.shadow 4
D.glow colourTheme.textDeepDarkOrange 4
glowDeepDarkGreyNavbar : Attr decorative msg

View file

@ -535,6 +535,22 @@ hyperBlog inner =
}
video : SvgTypes.OuterPart msg -> Element msg
video inner =
HeSvg.buildSvg inner
{ svgAttributes =
[ SvgAttr.viewBox "0 0 512 512"
, SvgAttr.fill "currentColor"
]
, svg =
[ path
[ SvgAttr.d "M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM48 368l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm368-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM48 240l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm368-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM48 112l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16L64 96c-8.8 0-16 7.2-16 16zM416 96c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM160 128l0 64c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32L192 96c-17.7 0-32 14.3-32 32zm32 160c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-128 0z"
]
[]
]
}
debate : SvgTypes.OuterPart msg -> Element msg
debate inner =
HeSvg.buildSvg inner