11---
2- layout: base
2+ layout: null
33permalink: /404.html
4- title: Page Not Found - GitHubTree
5- description: The page you were looking for couldn't be found. It might have been removed, renamed, or didn't exist in the first place.
64---
7-
8- < div class ="error-container ">
9- < h2 > 404: Repository Not Found</ h2 >
10- < p > The GitHub repository you're looking for couldn't be located. It might be private, removed, or doesn't exist.</ p >
11-
12- < div class ="error-actions ">
13- < a href ="/ " class ="home-link ">
14- < i class ="fas fa-home "> </ i > Return to homepage
15- </ a >
16- </ div >
17-
18- < div class ="error-suggestions ">
19- < h3 > Popular repositories to explore:</ h3 >
20- < ul class ="suggestions-list ">
21- {% for repository in site.data.repositories limit:5 %}
22- < li > < a href ="/repo/{{ repository.repo }}/{{ repository.branch }}/ "> {{ repository.repo }}</ a > </ li >
23- {% endfor %}
24- </ ul >
25- </ div >
26- </ div >
27-
28- < style >
29- .error-container {
30- text-align : center;
31- padding : 40px 20px ;
32- max-width : 800px ;
33- margin : 0 auto;
34- }
35-
36- .error-container h2 {
37- font-size : 32px ;
38- color : # e74c3c ;
39- margin-bottom : 20px ;
40- }
41-
42- .error-actions {
43- margin : 30px 0 ;
44- }
45-
46- .home-link {
47- display : inline-block;
48- padding : 10px 20px ;
49- background-color : # 024ea2 ;
50- color : white;
51- text-decoration : none;
52- border-radius : 4px ;
53- transition : background-color 0.3s ;
54- }
55-
56- .home-link : hover {
57- background-color : # 023e82 ;
58- }
59-
60- .error-suggestions {
61- margin-top : 40px ;
62- padding : 20px ;
63- background-color : # f5f5f5 ;
64- border-radius : 8px ;
65- }
66-
67- .error-suggestions h3 {
68- margin-bottom : 15px ;
69- }
70-
71- .suggestions-list {
72- list-style : none;
73- padding : 0 ;
74- display : flex;
75- flex-wrap : wrap;
76- justify-content : center;
77- }
78-
79- .suggestions-list li {
80- margin : 8px 12px ;
81- }
82-
83- .suggestions-list a {
84- color : # 024ea2 ;
85- text-decoration : none;
86- }
87-
88- .suggestions-list a : hover {
89- text-decoration : underline;
90- }
91-
92- @media (max-width : 768px ) {
93- .error-container h2 {
94- font-size : 24px ;
5+ <!DOCTYPE html>
6+ < html lang ="en ">
7+ < head >
8+ < meta charset ="UTF-8 ">
9+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
10+ < title > GitHubTree 404: Page Not Found</ title >
11+ < style >
12+ body {
13+ font-family : -apple-system, BlinkMacSystemFont, 'Segoe UI' , Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans' , 'Helvetica Neue' , sans-serif;
14+ margin : 0 ;
15+ padding : 20px ;
16+ display : flex;
17+ justify-content : center;
18+ align-items : center;
19+ min-height : 100vh ;
20+ background-color : # f6f8fa ;
21+ }
22+ .error-container {
23+ text-align : center;
24+ padding : 40px 20px ;
25+ max-width : 800px ;
26+ margin : 0 auto;
27+ }
28+ h2 {
29+ font-size : 32px ;
30+ color : # e74c3c ;
31+ margin-bottom : 20px ;
32+ }
33+ p {
34+ font-size : 16px ;
35+ line-height : 1.5 ;
36+ color : # 333 ;
37+ margin-bottom : 30px ;
38+ }
39+ .home-link {
40+ display : inline-block;
41+ padding : 10px 20px ;
42+ background-color : # 024ea2 ;
43+ color : white;
44+ text-decoration : none;
45+ border-radius : 4px ;
46+ transition : background-color 0.3s ;
47+ }
48+ .home-link : hover {
49+ background-color : # 023e82 ;
50+ }
51+ .error-suggestions {
52+ margin-top : 40px ;
53+ padding : 20px ;
54+ background-color : # f5f5f5 ;
55+ border-radius : 8px ;
56+ }
57+ .error-suggestions h3 {
58+ margin-bottom : 15px ;
9559 }
96-
9760 .suggestions-list {
98- flex-direction : column;
61+ list-style : none;
62+ padding : 0 ;
63+ display : flex;
64+ flex-wrap : wrap;
65+ justify-content : center;
66+ }
67+ .suggestions-list li {
68+ margin : 8px 12px ;
69+ }
70+ .suggestions-list a {
71+ color : # 024ea2 ;
72+ text-decoration : none;
73+ }
74+ .suggestions-list a : hover {
75+ text-decoration : underline;
9976 }
100- }
101- </ style >
77+ </ style >
78+ < script >
79+ // If the path starts with /repo/, load index.html content and update the URL
80+ if ( location . pathname . startsWith ( '/repo/' ) ) {
81+ history . replaceState ( { } , '' , location . pathname + location . search + location . hash ) ;
82+ fetch ( '/index.html' )
83+ . then ( r => r . text ( ) )
84+ . then ( html => {
85+ document . open ( ) ;
86+ document . write ( html ) ;
87+ document . close ( ) ;
88+ } ) ;
89+ }
90+ </ script >
91+ </ head >
92+ < body >
93+ < div class ="error-container ">
94+ < h2 > 404: Page Not Found</ h2 >
95+ < p > The page you're looking for couldn't be located. It might have been removed, renamed, or didn't exist in the first place.</ p >
96+
97+ < div class ="error-actions ">
98+ < a href ="/ " class ="home-link "> Return to homepage</ a >
99+ </ div >
100+
101+ < div class ="error-suggestions ">
102+ < h3 > Featured repositories to explore:</ h3 >
103+ < ul class ="suggestions-list ">
104+ {% assign shuffled_repos = site.data.repositories | sample: 5 %}
105+ {% for repository in shuffled_repos %}
106+ < li > < a href ="/repo/{{ repository.repo }}/{{ repository.branch | default: 'main' }}/ "> {{ repository.repo }}</ a > </ li >
107+ {% endfor %}
108+ </ ul >
109+ </ div >
110+ </ div >
111+ </ body >
112+ </ html >
0 commit comments