1212 text-align : center;
1313 font-family : -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto, "Helvetica Neue" , Arial, sans-serif;
1414 }
15-
15+
1616 .error-image {
1717 max-width : 300px ;
1818 margin : 2rem auto;
1919 display : block;
2020 }
21-
21+
2222 .error-title {
2323 color : # d63031 ;
2424 font-size : 2rem ;
2525 margin-bottom : 1rem ;
2626 }
27-
27+
2828 .error-message {
2929 color : # 2d3436 ;
3030 font-size : 1.1rem ;
3131 line-height : 1.6 ;
3232 margin-bottom : 1.5rem ;
3333 }
34-
34+
3535 .suggested-link {
3636 background-color : # 00b894 ;
3737 color : white;
4343 font-weight : bold;
4444 transition : background-color 0.3s ;
4545 }
46-
46+
4747 .suggested-link : hover {
4848 background-color : # 00a383 ;
4949 }
50-
50+
5151 .recommendation {
5252 background-color : # fff3cd ;
5353 border-left : 4px solid # ffc107 ;
5454 padding : 1rem ;
5555 margin : 2rem 0 ;
5656 text-align : left;
5757 }
58-
58+
5959 .navigation-section {
6060 margin-top : 3rem ;
6161 padding : 2rem ;
6262 background-color : # f8f9fa ;
6363 border-radius : 8px ;
6464 }
65-
65+
6666 .navigation-section h2 {
6767 color : # 2d3436 ;
6868 margin-bottom : 1rem ;
6969 }
70-
70+
7171 .nav-links {
7272 display : grid;
7373 grid-template-columns : repeat (auto-fit, minmax (200px , 1fr ));
7474 gap : 0.5rem ;
7575 margin-top : 1rem ;
7676 }
77-
77+
7878 .nav-link {
7979 color : # 0984e3 ;
8080 text-decoration : none;
8181 padding : 0.5rem ;
8282 border-radius : 4px ;
8383 transition : background-color 0.3s ;
8484 }
85-
85+
8686 .nav-link : hover {
8787 background-color : # dfe6e9 ;
8888 }
89-
89+
9090 .trailing-slash-notice {
9191 display : none;
9292 margin-bottom : 1rem ;
9393 }
94-
94+
9595 .trailing-slash-notice .visible {
9696 display : block;
9797 }
@@ -109,22 +109,15 @@ <h1 class="error-title">Almost There!</h1>
109109 < strong > What you probably want:</ strong >
110110 </ p >
111111 < a href ="" id ="suggestedLink " class ="suggested-link "> Go to the correct page</ a >
112-
112+
113113 < div class ="recommendation ">
114- < strong > 💡 Tip:</ strong > If you followed a link from another site or used a bookmark,
114+ < strong > 💡 Tip:</ strong > If you followed a link from another site or used a bookmark,
115115 you may want to update it to the correct URL shown above. This will ensure it works properly in the future.
116116 </ div >
117117 </ div >
118-
118+
119119 < img src ="/assets/images/hopeful404.png " alt ="Friendly 404 Error " class ="error-image ">
120-
121- < div class ="standard-404 " id ="standard404 ">
122- < h1 class ="error-title "> Page Not Found</ h1 >
123- < p class ="error-message ">
124- Sorry, we couldn't find the page you're looking for.
125- </ p >
126- </ div >
127-
120+
128121 < div class ="navigation-section ">
129122 < h2 > Helpful Links</ h2 >
130123 < p > Maybe one of these pages can help you find what you're looking for:</ p >
@@ -139,12 +132,27 @@ <h2>Helpful Links</h2>
139132 < a href ="/manage/quicktype " class ="nav-link "> ⚡ Quick Type</ a >
140133 </ div >
141134 </ div >
135+
136+ < div class ="standard-404 " id ="standard404 ">
137+ < h1 class ="error-title "> Page Not Found</ h1 >
138+ < p class ="error-message ">
139+ Sorry, we couldn't find the page you're looking for.
140+ </ p >
141+ </ div >
142142</ div >
143143
144144< script >
145- ( function ( ) {
145+ ( function ( ) {
146146 // List of known permalink paths (without trailing slashes)
147147 const knownPaths = [
148+ // Root-level pretty paths
149+ '/about' ,
150+ '/account' ,
151+ '/home' ,
152+ '/landing' ,
153+ '/transcription' ,
154+ '/welcome' ,
155+ // Permalinked and interface paths
148156 '/annotator' ,
149157 '/components/quick-guide' ,
150158 '/interfaces' ,
0 commit comments