website/frontend/src/Pages/Services/Analysis.elm

179 lines
4.5 KiB
Elm
Raw Normal View History

2024-12-11 02:38:42 -06:00
module Pages.Services.Analysis exposing (Model, Msg, page)
2024-12-28 18:42:47 -06:00
import Config.Helpers.Articles.Article exposing (contentList)
2025-01-02 02:33:57 -06:00
import Config.Helpers.Cards.Inner.BuyButton exposing (buyButton)
2024-12-27 01:30:21 -06:00
import Config.Helpers.Cards.Outer.Helpers exposing (cardMaker)
2025-01-02 02:33:57 -06:00
import Config.Helpers.Cards.Outer.Types as C exposing (Cardable(..))
2024-12-18 20:11:04 -06:00
import Config.Helpers.Headers.Types exposing (Header)
2025-01-02 02:33:57 -06:00
import Config.Helpers.Response
exposing
( pageList
, topLevelContainer
)
2024-12-23 03:15:35 -06:00
import Config.Helpers.Viewport exposing (resetViewport)
2024-12-28 18:42:47 -06:00
import Config.Pages.Blog.Types exposing (BlogArticle)
2025-01-02 02:33:57 -06:00
import Config.Pages.Services.Records.DebateAnalysis exposing (servicesDebateAnalysis)
2024-12-27 01:30:21 -06:00
import Config.Style.Colour.Helpers exposing (colourTheme)
2025-01-02 02:33:57 -06:00
import Effect exposing (Effect)
import Element as E
2024-12-12 01:36:31 -06:00
exposing
2025-01-02 02:33:57 -06:00
( Device
, DeviceClass(..)
, Element
, Orientation(..)
, centerX
, column
, el
, paddingXY
2024-12-12 01:36:31 -06:00
)
import Layouts
2024-12-11 02:38:42 -06:00
import Page exposing (Page)
2024-12-12 01:36:31 -06:00
import Route exposing (Route)
import Route.Path as Path
2024-12-11 02:38:42 -06:00
import Shared
import View exposing (View)
page : Shared.Model -> Route () -> Page Model Msg
page shared route =
Page.new
{ init = init
, update = update
, subscriptions = subscriptions
2024-12-12 01:36:31 -06:00
, view = view shared
2024-12-11 02:38:42 -06:00
}
2024-12-12 01:36:31 -06:00
|> Page.withLayout toLayout
toLayout : Model -> Layouts.Layout Msg
toLayout model =
Layouts.Navbar {}
2024-12-11 02:38:42 -06:00
-- INIT
type alias Model =
{}
init : () -> ( Model, Effect Msg )
init () =
( {}
2024-12-22 19:42:23 -06:00
, Effect.map
(\_ -> NoOp)
(Effect.sendCmd resetViewport)
2024-12-11 02:38:42 -06:00
)
-- UPDATE
type Msg
= NoOp
update : Msg -> Model -> ( Model, Effect Msg )
update msg model =
case msg of
NoOp ->
( model
, Effect.none
)
-- SUBSCRIPTIONS
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.none
-- VIEW
2024-12-12 01:36:31 -06:00
view : Shared.Model -> Model -> View Msg
view shared model =
{ title = "services (analysis)"
, attributes = []
, element = analysisContainer shared.device
}
analysisContainer : Device -> Element msg
analysisContainer device =
topLevelContainer (analysisList device)
analysisList : Device -> Element msg
analysisList device =
2024-12-21 23:23:59 -06:00
column
(case ( device.class, device.orientation ) of
_ ->
2024-12-22 19:42:23 -06:00
pageList device
2024-12-21 23:23:59 -06:00
)
<|
2024-12-12 01:36:31 -06:00
List.concat
2024-12-22 04:36:03 -06:00
[ List.map
2024-12-21 23:23:59 -06:00
(\service ->
2024-12-28 18:42:47 -06:00
cardMaker device
(C.BlogArticle service)
(contentList service
[ el
[ paddingXY 0 10
, centerX
]
<|
buyButton "Book!" "https://buy.stripe.com/14k3dr4Zh8p6c3mbIJ"
]
)
2024-12-21 23:23:59 -06:00
)
2024-12-28 18:42:47 -06:00
[ debateAnalysis ]
2024-12-21 23:23:59 -06:00
]
2024-12-28 18:42:47 -06:00
debateAnalysis : BlogArticle
debateAnalysis =
{ articleName = String.toUpper "Debate Analysis"
, articleLink = ""
, articleAuthor = ""
, isNewTabLink = False
, hasReferences = False
, hasTableOfContents = False
, articleImage = ""
, articlePublished = ""
, articleBody = """
The Debate Analysis services offers personalized feedback to help you improve your debate skills. I work with clients by reviewing their pre-recorded debates, providing detailed critiques, and offering practical advice tailored to their style. Through this process, you'll gain valuable insights into areas of improvement, from your argument structure to your delivery and confidence.
# BENEFITS
1. Have your own debates analyzed for constructive feedback. This allows you to receive targeted guidance on how to improve your debating technique and strategy.
2. Receive advice to improve as a debater. This service provides personalized recommendations to help you develop and refine your debating abilities.
3. Gain comfort with debate and verbal confrontation. The service aims to help you become more confident and adept at handling the challenges of public debate.
# REQUIREMENTS
Your debate recording must be submitted at least three days prior to the session.
Your debate recording must not exceed one hour in length unless otherwise agreed to.
Your debate recording must be in either video or audio format, as text debates are ineligible.
"""
, articleReferences =
[ { author = ""
, title = ""
, journal = ""
, year = ""
, link = ""
}
2024-12-12 01:36:31 -06:00
]
2024-12-28 18:42:47 -06:00
}