mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: added interviews
This commit is contained in:
parent
eb17ceb6c2
commit
d9dccdd727
19 changed files with 654 additions and 27 deletions
114
frontend/src/Pages/Interviews.elm
Normal file
114
frontend/src/Pages/Interviews.elm
Normal file
|
@ -0,0 +1,114 @@
|
|||
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 (..)
|
||||
import Effect exposing (Effect)
|
||||
import Element exposing (..)
|
||||
import Element.Border as D
|
||||
import Element.Font as F
|
||||
import Html
|
||||
import Html.Attributes as H exposing (style)
|
||||
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)
|
||||
import Interviews.Helpers exposing (..)
|
||||
import Layouts
|
||||
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
|
||||
, view = view
|
||||
}
|
||||
|> Page.withLayout toLayout
|
||||
|
||||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
|
||||
|
||||
|
||||
-- INIT
|
||||
|
||||
|
||||
type alias Model =
|
||||
{}
|
||||
|
||||
|
||||
init : () -> ( Model, Effect Msg )
|
||||
init () =
|
||||
( {}
|
||||
, Effect.none
|
||||
)
|
||||
|
||||
|
||||
|
||||
-- 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
|
||||
|
||||
|
||||
view : Model -> View Msg
|
||||
view model =
|
||||
{ title = dodgersName
|
||||
, attributes = []
|
||||
, element = interviewContainer
|
||||
}
|
||||
|
||||
|
||||
interviewContainer : Element msg
|
||||
interviewContainer =
|
||||
topLevelContainer interviewList
|
||||
|
||||
|
||||
interviewList : Element msg
|
||||
interviewList =
|
||||
column
|
||||
pageList
|
||||
<|
|
||||
List.map interviewMaker
|
||||
[ sigmaNutritionRadio
|
||||
, markBellsPowerProject
|
||||
, foolproofMastery
|
||||
, ketoGeeksPodcast
|
||||
, legendaryLifePodcast
|
||||
, muscleMemoirsPodcast
|
||||
, fitAndFurious
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue