Skip to content

Commit

Permalink
better ui
Browse files Browse the repository at this point in the history
  • Loading branch information
PizieDust committed Jan 9, 2025
1 parent e284c27 commit 26a9d5a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions error_page.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ let error_layout (error : Utils.Status.t) =
~a:[ a_class [ "text-center" ] ]
[
i ~a:[ a_class [ "fa-solid fa-triangle-exclamation text-5xl" ] ] [];
p
~a:[ a_class [ "text-5xl text-secondary-500 font-semibold" ] ]
[ txt (string_of_int error.code) ];
p ~a:[ a_class [ "uppercase font-bold text-5xl" ] ] [ txt error.title ];
div
~a:[ a_class [ "flex gap-2 justify-center" ] ]
[
p
~a:[ a_class [ "text-5xl text-secondary-500 font-semibold" ] ]
[ txt (string_of_int error.code ^ ":") ];
p
~a:[ a_class [ "uppercase font-bold text-5xl" ] ]
[ txt error.title ];
];
p
~a:[ a_class [ "text-xl my-6" ] ]
[ txt (Yojson.Basic.to_string error.data) ];
Expand Down

0 comments on commit 26a9d5a

Please sign in to comment.