mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: removed boilerplate
This commit is contained in:
parent
cb51b17c08
commit
a462c01f88
14 changed files with 277 additions and 378 deletions
|
@ -44,7 +44,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar { }
|
||||
Layouts.Navbar {}
|
||||
|
||||
|
||||
|
||||
|
@ -96,7 +96,7 @@ subscriptions model =
|
|||
|
||||
view : Shared.Model -> Model -> View Msg
|
||||
view shared model =
|
||||
{ title = interviewsName
|
||||
{ title = pageNames.pageInterviews
|
||||
, attributes = []
|
||||
, element = interviewContainer shared.device
|
||||
}
|
||||
|
@ -111,28 +111,7 @@ interviewList : Device -> Element msg
|
|||
interviewList device =
|
||||
column
|
||||
(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
|
||||
)
|
||||
<|
|
||||
|
@ -143,25 +122,10 @@ interviewList device =
|
|||
( 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
|
||||
)
|
||||
[ sigmaNutritionRadio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue