mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 20:35:13 -05:00
feat: added gibberish page and argument summaries
This commit is contained in:
parent
8b0c2b632e
commit
23ce3b3f68
67 changed files with 498 additions and 283 deletions
|
@ -87,7 +87,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar { currentRoute = debateName }
|
||||
|
||||
|
||||
|
||||
|
@ -101,9 +101,12 @@ type alias Model =
|
|||
init : () -> ( Model, Effect Msg )
|
||||
init () =
|
||||
( {}
|
||||
, Effect.map
|
||||
(\_ -> NoOp)
|
||||
(Effect.sendCmd resetViewport)
|
||||
, Effect.batch
|
||||
[ Effect.map
|
||||
(\_ -> NoOp)
|
||||
(Effect.sendCmd resetViewport)
|
||||
, Effect.none
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
|
@ -210,7 +213,5 @@ debateList =
|
|||
, argumentFlatEarthDebunk
|
||||
, argumentTruncatedMeta
|
||||
]
|
||||
, List.map gibberishMaker
|
||||
[ gibberishList ]
|
||||
]
|
||||
]
|
||||
|
|
|
@ -34,7 +34,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = contactName}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar { currentRoute = dodgersName }
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = donateName}
|
||||
|
||||
|
||||
|
||||
|
|
132
frontend/src/Pages/Gibberish.elm
Normal file
132
frontend/src/Pages/Gibberish.elm
Normal file
|
@ -0,0 +1,132 @@
|
|||
module Pages.Gibberish exposing (Model, Msg, page)
|
||||
|
||||
import Config.Colour as T exposing (..)
|
||||
import Config.Format as O exposing (..)
|
||||
import Config.Identity as I exposing (..)
|
||||
import Config.Viewport exposing (..)
|
||||
import Debate.Gibberish.Domains.Epistemology exposing (epistemologyGibberish)
|
||||
import Debate.Gibberish.Domains.Metaphysics exposing (metaphysicsGibberish)
|
||||
import Debate.Gibberish.Domains.Normativity exposing (normativityGibberish)
|
||||
import Debate.Gibberish.Domains.Ontology exposing (ontologyGibberish)
|
||||
import Debate.Gibberish.Domains.PhilOfLanguage exposing (philOfLanguageGibberish)
|
||||
import Debate.Gibberish.Domains.PhilOfMind exposing (philOfMindGibberish)
|
||||
import Debate.Gibberish.Domains.Theology exposing (theologyGibberish)
|
||||
import Debate.Gibberish.Helpers exposing (..)
|
||||
import Debate.Helpers exposing (..)
|
||||
import Debate.Types exposing (..)
|
||||
import Effect exposing (Effect)
|
||||
import Element exposing (..)
|
||||
import Element.Border as D exposing (..)
|
||||
import Element.Font as F
|
||||
import Headers.Helpers exposing (headerMaker)
|
||||
import Headers.Pages.Gibberish exposing (gibberishHeader)
|
||||
import Html
|
||||
import Html.Attributes as H exposing (style, title, wrap)
|
||||
import Layouts
|
||||
import List.Extra as L exposing (..)
|
||||
import Page exposing (Page)
|
||||
import Ports exposing (gotArgHeight)
|
||||
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 { currentRoute = donateName }
|
||||
|
||||
|
||||
|
||||
-- INIT
|
||||
|
||||
|
||||
type alias Model =
|
||||
{}
|
||||
|
||||
|
||||
init : () -> ( Model, Effect Msg )
|
||||
init () =
|
||||
( {}
|
||||
, Effect.batch
|
||||
[ Effect.map
|
||||
(\_ -> NoOp)
|
||||
(Effect.sendCmd resetViewport)
|
||||
, 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 = gibberishName
|
||||
, attributes = []
|
||||
, element = gibberishContainer
|
||||
}
|
||||
|
||||
|
||||
gibberishContainer : Element msg
|
||||
gibberishContainer =
|
||||
topLevelContainer gibberishList
|
||||
|
||||
|
||||
gibberishList : Element msg
|
||||
gibberishList =
|
||||
column [ centerX ]
|
||||
[ column
|
||||
pageList
|
||||
<|
|
||||
List.concat
|
||||
[ List.map headerMaker
|
||||
[ gibberishHeader ]
|
||||
, List.map gibberishMaker
|
||||
[ epistemologyGibberish
|
||||
, theologyGibberish
|
||||
, metaphysicsGibberish
|
||||
, normativityGibberish
|
||||
, ontologyGibberish
|
||||
, philOfMindGibberish
|
||||
, philOfLanguageGibberish
|
||||
]
|
||||
]
|
||||
]
|
|
@ -29,7 +29,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = homeName}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = hyperBlogName}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = interviewsName}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar {currentRoute = nutriDexName}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ page shared route =
|
|||
|
||||
toLayout : Model -> Layouts.Layout Msg
|
||||
toLayout model =
|
||||
Layouts.Navbar {}
|
||||
Layouts.Navbar { currentRoute = servicesName }
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue