@@ -18,29 +18,45 @@ public struct NotFoundPage: Page {
1818 section {
1919 div {
2020 div {
21- h2 { " 404 Error | Page Not Found " }
22- . inlineStyle ( " margin-bottom " , " 0.5rem " )
23- pre {
24- code ( . class( " hljs language-swift " ) ) {
25- """
26- throw Error.pageNotFound
27- """
28- }
29- }
21+ Heading ( )
3022 }
3123 }
3224 . containerStyling ( )
3325 . inlineStyle ( " display " , " flex " )
3426 . inlineStyle ( " flex-direction " , " column " )
3527 . inlineStyle ( " justify-content " , " center " )
3628 . inlineStyle ( " align-items " , " center " )
37- . inlineStyle ( " padding " , " 120px 16px " )
38- . inlineStyle ( " gap " , " 1.5rem " )
29+ . inlineStyle ( " padding " , " 160px 32px " )
30+ . inlineStyle ( " background-image " , " radial-gradient(#2A2A2A 1px, transparent 0) " )
31+ . inlineStyle ( " background-size " , " 12px 12px " )
3932 }
4033 . wrappedStyling ( )
4134 }
4235 Spacer ( )
4336 FooterView ( )
4437 }
4538 }
39+
40+ private struct Heading : HTML {
41+ var content : some HTML {
42+ pre {
43+ code { " // 404 ERROR " }
44+ . inlineStyle ( " font-size " , " 0.9em " )
45+ . inlineStyle ( " color " , " #808080 " )
46+ . inlineStyle ( " margin-bottom " , " 0.125rem " )
47+ }
48+
49+ h2 { " Page Not Found " }
50+ . inlineStyle ( " margin-bottom " , " 0.5rem " )
51+
52+ pre {
53+ code ( . class( " hljs language-swift " ) ) {
54+ """
55+ throw Error.pageNotFound
56+ """
57+ }
58+ . inlineStyle ( " font-size " , " 0.9em " )
59+ }
60+ }
61+ }
4662}
0 commit comments