mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-03 23:30:09 +05:30
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+14
-16
@@ -24,13 +24,10 @@ view model =
|
||||
[]
|
||||
, div [ class "foo-support__message" ] [ model.support_message ]
|
||||
, div [ class "foo-error__message" ] [ model.error_message ]
|
||||
, div [ class "foo-support__message" ]
|
||||
, withSpacing (div [ class "foo-support__message" ])
|
||||
[ a [ href "https://avinal.space/pages/about-me" ] [ text "About me" ]
|
||||
, text " "
|
||||
, a [ href "https://avinal.space/posts" ] [ text "Blog" ]
|
||||
, text " "
|
||||
, a [ href "https://avinal.space/pages/projects" ] [ text "Projects" ]
|
||||
, text " "
|
||||
, a [ href "https://gsoc.avinal.space" ] [ text "GSoC" ]
|
||||
]
|
||||
]
|
||||
@@ -41,16 +38,21 @@ type Msg
|
||||
= Nothing
|
||||
|
||||
|
||||
withSpacing : (List (Html msg) -> Html msg) -> List (Html msg) -> Html msg
|
||||
withSpacing element =
|
||||
List.intersperse (text " ") >> element
|
||||
|
||||
|
||||
notFound : String -> Model
|
||||
notFound error =
|
||||
{ support_message = default.support_message
|
||||
, error_message =
|
||||
span []
|
||||
withSpacing (span [])
|
||||
[ i [ class "fa-solid fa-triangle-exclamation foo-term-yellow" ] []
|
||||
, text " I could not find anything on this "
|
||||
, text "I could not find anything on this"
|
||||
, i [ class "fa-solid fa-link" ] []
|
||||
, text error
|
||||
, text " . If you think this is a mistake, please contact me."
|
||||
, text ". If you think this is a mistake, please contact me."
|
||||
, i [ class "fa-solid fa-triangle-exclamation foo-term-yellow" ] []
|
||||
]
|
||||
}
|
||||
@@ -59,23 +61,19 @@ notFound error =
|
||||
default : Model
|
||||
default =
|
||||
{ support_message =
|
||||
span []
|
||||
withSpacing (span [])
|
||||
[ a [ href "https://github.com/avinal" ] [ i [ class "fa-brands fa-github" ] [] ]
|
||||
, text " "
|
||||
, a [ href "https://www.linked.com/in/avinal" ] [ i [ class "fa-brands fa-linkedin" ] [] ]
|
||||
, text " "
|
||||
, a [ href "https://instagram.com/avinal.k" ] [ i [ class "fa-brands fa-instagram" ] [] ]
|
||||
, text " "
|
||||
, a [ href "" ] [ i [ class "fa-solid fa-calandar-days" ] [] ]
|
||||
, a [ href "https://meet.avinal.space" ] [ i [ class "fa-solid fa-calandar-days" ] [] ]
|
||||
, a [ href "mailto:ripple+blog@avinal.space" ] [ i [ class "fa-solid fa-envelope" ] [] ]
|
||||
, text " "
|
||||
, a [ href "https://avinal.space/terminal" ] [ i [ class "fa-solid fa-terminal" ] [] ]
|
||||
]
|
||||
, error_message =
|
||||
span []
|
||||
[ text "I'm Avinal, and I work at Red Hat "
|
||||
withSpacing (span [])
|
||||
[ text "I'm Avinal, and I work at Red Hat"
|
||||
, i [ class "fa-brands fa-redhat foo-term-red" ] []
|
||||
, text " as an Associate Software Engineer for Hybrid Cloud Engineering."
|
||||
, text "as an Associate Software Engineer for Hybrid Cloud Engineering."
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user