Current section

Files

Jump to
sprocket src docs@components@pages@not_found.erl
Raw

src/docs@components@pages@not_found.erl

-module(docs@components@pages@not_found).
-compile([no_auto_import, nowarn_unused_vars]).
-export([not_found_page/2]).
-export_type([not_found_page_props/0]).
-type not_found_page_props() :: not_found_page_props.
-spec not_found_page(sprocket@context:context(), not_found_page_props()) -> {sprocket@context:context(),
list(sprocket@element:element())}.
not_found_page(Ctx, _) ->
sprocket@component:render(
Ctx,
[sprocket@html:'div'(
[sprocket@html@attributes:class(<<"flex flex-col p-10"/utf8>>)],
[sprocket@html:'div'(
[],
[sprocket@html:h1(
[sprocket@html@attributes:class(
<<"text-xl mb-2"/utf8>>
)],
[sprocket@html:text(<<"Page Not Found"/utf8>>)]
)]
)]
)]
).