2024-11-27 01:42:58 -06:00
|
|
|
module Pages.Interviews exposing (Model, Msg, page)
|
|
|
|
|
|
|
|
import Config.Colour as T exposing (..)
|
|
|
|
import Config.Format as O exposing (..)
|
|
|
|
import Config.Identity as I exposing (..)
|
2024-12-06 00:43:00 -06:00
|
|
|
import Config.Response exposing (..)
|
2024-12-03 04:59:27 -06:00
|
|
|
import Config.Viewport exposing (..)
|
2024-11-27 01:42:58 -06:00
|
|
|
import Effect exposing (Effect)
|
|
|
|
import Element exposing (..)
|
|
|
|
import Element.Border as D
|
|
|
|
import Element.Font as F
|
2024-12-01 02:56:13 -06:00
|
|
|
import Headers.Helpers exposing (headerMaker)
|
|
|
|
import Headers.Pages.Interviews exposing (interviewHeader)
|
2024-11-27 01:42:58 -06:00
|
|
|
import Html
|
|
|
|
import Html.Attributes as H exposing (style)
|
2024-11-30 04:32:00 -06:00
|
|
|
import Interviews.Episodes.DrShawnBakerPodcast exposing (drShawnBakerPodcast)
|
2024-11-27 01:42:58 -06:00
|
|
|
import Interviews.Episodes.FitAndFurious exposing (fitAndFurious)
|
|
|
|
import Interviews.Episodes.FoolproofMastery exposing (foolproofMastery)
|
|
|
|
import Interviews.Episodes.KetogeeksPodcast exposing (ketoGeeksPodcast)
|
|
|
|
import Interviews.Episodes.LegendaryLifePodcast exposing (legendaryLifePodcast)
|
|
|
|
import Interviews.Episodes.MarkBellsPowerProject exposing (markBellsPowerProject)
|
|
|
|
import Interviews.Episodes.MuscleMemoirsPodcast exposing (muscleMemoirsPodcast)
|
|
|
|
import Interviews.Episodes.SigmaNutritionRadio exposing (sigmaNutritionRadio)
|
2024-11-27 22:36:35 -06:00
|
|
|
import Interviews.Episodes.StrenuousLifePodcast exposing (strenuousLifePodcast)
|
2024-11-27 01:42:58 -06:00
|
|
|
import Interviews.Helpers exposing (..)
|
|
|
|
import Layouts
|
2024-12-01 02:56:13 -06:00
|
|
|
import List exposing (head)
|
2024-11-27 01:42:58 -06:00
|
|
|
import Page exposing (Page)
|
|
|
|
import Route exposing (Route)
|
|
|
|
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-06 00:43:00 -06:00
|
|
|
, view = view shared
|
2024-11-27 01:42:58 -06:00
|
|
|
}
|
|
|
|
|> Page.withLayout toLayout
|
|
|
|
|
|
|
|
|
|
|
|
toLayout : Model -> Layouts.Layout Msg
|
|
|
|
toLayout model =
|
2024-12-06 22:03:24 -06:00
|
|
|
Layouts.Navbar { }
|
2024-11-27 01:42:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- INIT
|
|
|
|
|
|
|
|
|
|
|
|
type alias Model =
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
init : () -> ( Model, Effect Msg )
|
|
|
|
init () =
|
|
|
|
( {}
|
2024-12-03 04:59:27 -06:00
|
|
|
, Effect.map
|
|
|
|
(\_ -> NoOp)
|
|
|
|
(Effect.sendCmd resetViewport)
|
2024-11-27 01:42:58 -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-06 00:43:00 -06:00
|
|
|
view : Shared.Model -> Model -> View Msg
|
|
|
|
view shared model =
|
2024-11-28 19:28:24 -06:00
|
|
|
{ title = interviewsName
|
2024-11-27 01:42:58 -06:00
|
|
|
, attributes = []
|
2024-12-06 00:43:00 -06:00
|
|
|
, element = interviewContainer shared.device
|
2024-11-27 01:42:58 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-12-06 00:43:00 -06:00
|
|
|
interviewContainer : Device -> Element msg
|
|
|
|
interviewContainer device =
|
|
|
|
topLevelContainer (interviewList device)
|
2024-11-27 01:42:58 -06:00
|
|
|
|
|
|
|
|
2024-12-06 00:43:00 -06:00
|
|
|
interviewList : Device -> Element msg
|
|
|
|
interviewList device =
|
2024-11-27 01:42:58 -06:00
|
|
|
column
|
2024-12-06 00:43:00 -06:00
|
|
|
(case ( device.class, device.orientation ) of
|
|
|
|
( Phone, Portrait ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( Phone, Landscape ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( Tablet, Portrait ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( Tablet, Landscape ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( Desktop, Portrait ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( Desktop, Landscape ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( BigDesktop, Portrait ) ->
|
|
|
|
pageListDesktop
|
|
|
|
|
|
|
|
( BigDesktop, Landscape ) ->
|
|
|
|
pageListDesktop
|
|
|
|
)
|
2024-11-27 01:42:58 -06:00
|
|
|
<|
|
2024-12-01 02:56:13 -06:00
|
|
|
List.concat
|
|
|
|
[ List.map headerMaker
|
|
|
|
[ interviewHeader ]
|
2024-12-06 00:43:00 -06:00
|
|
|
, (case ( device.class, device.orientation ) of
|
|
|
|
( Phone, Portrait ) ->
|
|
|
|
List.map interviewMakerMobile
|
|
|
|
|
|
|
|
( Phone, Landscape ) ->
|
|
|
|
List.map interviewMakerMobile
|
|
|
|
|
|
|
|
( Tablet, Portrait ) ->
|
|
|
|
List.map interviewMakerMobile
|
|
|
|
|
|
|
|
( Tablet, Landscape ) ->
|
|
|
|
List.map interviewMakerMobile
|
|
|
|
|
|
|
|
( Desktop, Portrait ) ->
|
|
|
|
List.map interviewMaker
|
|
|
|
|
|
|
|
( Desktop, Landscape ) ->
|
|
|
|
List.map interviewMaker
|
|
|
|
|
|
|
|
( BigDesktop, Portrait ) ->
|
|
|
|
List.map interviewMaker
|
|
|
|
|
|
|
|
( BigDesktop, Landscape ) ->
|
|
|
|
List.map interviewMaker
|
|
|
|
)
|
2024-12-01 02:56:13 -06:00
|
|
|
[ sigmaNutritionRadio
|
|
|
|
, markBellsPowerProject
|
|
|
|
, foolproofMastery
|
|
|
|
, ketoGeeksPodcast
|
|
|
|
, legendaryLifePodcast
|
|
|
|
, muscleMemoirsPodcast
|
|
|
|
, fitAndFurious
|
|
|
|
, strenuousLifePodcast
|
|
|
|
, drShawnBakerPodcast
|
|
|
|
]
|
2024-11-27 01:42:58 -06:00
|
|
|
]
|