1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

bump elm-land to 0.19.1

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2023-07-02 18:27:25 +05:30
parent fcf7bc3ed3
commit 4d49130e9c
7 changed files with 446 additions and 479 deletions
+2 -2
View File
@@ -125,8 +125,8 @@
"rel": "mask-icon", "rel": "mask-icon",
"href": "/safari-pinned-tab.svg", "href": "/safari-pinned-tab.svg",
"color": "#5bbad5" "color": "#5bbad5"
} },
,{ {
"rel": "canonical", "rel": "canonical",
"href": "https://avinal.space" "href": "https://avinal.space"
} }
+416 -447
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"devDependencies": { "devDependencies": {
"@tailwindcss/typography": "^0.5.8", "@tailwindcss/typography": "^0.5.8",
"elm-land": "^0.18.1", "elm-land": "^0.19.1",
"tailwindcss": "^3.2.4" "tailwindcss": "^3.2.4"
}, },
"dependencies": { "dependencies": {
+15 -14
View File
@@ -1,4 +1,4 @@
module Layouts.Blog exposing (Model, Msg, Settings, layout) module Layouts.Blog exposing (Model, Msg, Props, layout)
import Components.Footer exposing (footerLinksToSide) import Components.Footer exposing (footerLinksToSide)
import Effect exposing (Effect) import Effect exposing (Effect)
@@ -11,14 +11,14 @@ import Utils.Constants exposing (..)
import View exposing (View) import View exposing (View)
type alias Settings = type alias Props =
{} {}
layout : Settings -> Shared.Model -> Route () -> Layout Model Msg mainMsg layout : Props -> Shared.Model -> Route () -> Layout () Model Msg contentMsg
layout settings _ _ = layout props shared route =
Layout.new Layout.new
{ init = init settings { init = init
, update = update , update = update
, view = view , view = view
, subscriptions = subscriptions , subscriptions = subscriptions
@@ -33,8 +33,8 @@ type alias Model =
{} {}
init : Settings -> () -> ( Model, Effect Msg ) init : () -> ( Model, Effect Msg )
init _ _ = init _ =
( {} ( {}
, Effect.none , Effect.none
) )
@@ -45,32 +45,33 @@ init _ _ =
type Msg type Msg
= NoOp = ReplaceMe
update : Msg -> Model -> ( Model, Effect Msg ) update : Msg -> Model -> ( Model, Effect Msg )
update msg model = update msg model =
case msg of case msg of
NoOp -> ReplaceMe ->
( model, Effect.none ) ( model
, Effect.none
)
subscriptions : Model -> Sub Msg subscriptions : Model -> Sub Msg
subscriptions _ = subscriptions model =
Sub.none Sub.none
-- VIEW -- VIEW
blogTheme : String blogTheme : String
blogTheme = blogTheme =
"prose prose-invert mx-auto lg:prose-lg prose-a:decoration-cyan-500 hover:prose-a:decoration-pink-500" "prose prose-invert mx-auto lg:prose-lg prose-a:decoration-cyan-500 hover:prose-a:decoration-pink-500"
view : { fromMsg : Msg -> mainMsg, content : View mainMsg, model : Model } -> View mainMsg view : { toContentMsg : Msg -> contentMsg, content : View contentMsg, model : Model } -> View contentMsg
view { fromMsg, model, content } = view { toContentMsg, model, content } =
{ title = content.title { title = content.title
, body = , body =
[ Html.div [ class "min-h-screen flex flex-col justify-center relative overflow-hidden" ] [ Html.div [ class "min-h-screen flex flex-col justify-center relative overflow-hidden" ]
+7 -7
View File
@@ -1,4 +1,4 @@
module Layouts.Home exposing (Model, Msg, Settings, layout) module Layouts.Home exposing (Model, Msg, Props, layout)
import Components.Footer exposing (iconLinkToCenter) import Components.Footer exposing (iconLinkToCenter)
import Effect exposing (Effect) import Effect exposing (Effect)
@@ -11,12 +11,12 @@ import Utils.Constants exposing (..)
import View exposing (View) import View exposing (View)
type alias Settings = type alias Props =
{} {}
layout : Settings -> Shared.Model -> Route () -> Layout Model Msg mainMsg layout : Props -> Shared.Model -> Route () -> Layout () Model Msg contentMsg
layout _ _ _ = layout props shared route =
Layout.new Layout.new
{ init = init { init = init
, update = update , update = update
@@ -58,7 +58,7 @@ update msg model =
subscriptions : Model -> Sub Msg subscriptions : Model -> Sub Msg
subscriptions _ = subscriptions model =
Sub.none Sub.none
@@ -66,8 +66,8 @@ subscriptions _ =
-- VIEW -- VIEW
view : { fromMsg : Msg -> mainMsg, content : View mainMsg, model : Model } -> View mainMsg view : { toContentMsg : Msg -> contentMsg, content : View contentMsg, model : Model } -> View contentMsg
view { fromMsg, model, content } = view { toContentMsg, model, content } =
let let
footerLinkToCenter : Link -> Html msg footerLinkToCenter : Link -> Html msg
footerLinkToCenter link = footerLinkToCenter link =
+2 -3
View File
@@ -31,11 +31,10 @@ page _ _ =
-- LAYOUT -- LAYOUT
layout : Model -> Layouts.Layout layout : Model -> Layouts.Layout Msg
layout _ = layout _ =
Layouts.Home Layouts.Home
{ home = {} {}
}
+2 -4
View File
@@ -30,12 +30,10 @@ page _ route =
-- LAYOUT -- LAYOUT
layout : Model -> Layouts.Layout layout : Model -> Layouts.Layout Msg
layout _ = layout _ =
Layouts.Blog Layouts.Blog
{ blog = {}
{}
}