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

fix styling issue

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2022-09-15 21:27:32 +05:30
parent 0a97668317
commit e46f0dfbbe
2 changed files with 15 additions and 17 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+14 -16
View File
@@ -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 "&nbsp;&nbsp;&nbsp;"
, a [ href "https://avinal.space/posts" ] [ text "Blog" ]
, text "&nbsp;&nbsp;&nbsp;"
, a [ href "https://avinal.space/pages/projects" ] [ text "Projects" ]
, text "&nbsp;&nbsp;&nbsp;"
, 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 "&nbsp;&nbsp;&nbsp;"
, a [ href "https://www.linked.com/in/avinal" ] [ i [ class "fa-brands fa-linkedin" ] [] ]
, text "&nbsp;&nbsp;&nbsp;"
, a [ href "https://instagram.com/avinal.k" ] [ i [ class "fa-brands fa-instagram" ] [] ]
, text "&nbsp;&nbsp;&nbsp;"
, 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 "&nbsp;&nbsp;&nbsp;"
, 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."
]
}