33< head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- < title > Page Not Found</ title >
6+ < title > 3D Portfolio - Page Not Found</ title >
77 < script >
8- // Redirect to the home page
9- const segmentCount = 1 ;
10- const redirectPath = window . location . pathname . split ( '/' ) . slice ( 0 , segmentCount + 1 ) . join ( '/' ) ;
11- window . location . replace ( `${ redirectPath } /` ) ;
8+ // GitHub Pages SPA redirect
9+ // This script takes the current url and converts the path and query
10+ // string into just a query string, and then redirects the browser
11+ // to the new url with only a query string and hash fragment,
12+ // e.g. https://www.foo.tld/one/two?a=b&c=d#qwe, becomes
13+ // https://www.foo.tld/?/one/two&a=b~and~c=d#qwe
14+ var l = window . location ;
15+ var pathSegmentsToKeep = 1 ; // The number of path segments to keep (only the repository name)
16+
17+ l . replace (
18+ l . protocol + '//' + l . hostname + ( l . port ? ':' + l . port : '' ) +
19+ l . pathname . split ( '/' ) . slice ( 0 , 1 + pathSegmentsToKeep ) . join ( '/' ) + '/?/' +
20+ l . pathname . slice ( 1 ) . split ( '/' ) . slice ( pathSegmentsToKeep ) . join ( '/' ) . replace ( / & / g, '~and~' ) +
21+ ( l . search ? '&' + l . search . slice ( 1 ) . replace ( / & / g, '~and~' ) : '' ) +
22+ l . hash
23+ ) ;
1224 </ script >
1325 < style >
1426 body {
1527 font-family : 'Helvetica Neue' , Helvetica, Arial, sans-serif;
1628 text-align : center;
17- padding : 20px ;
29+ padding : 50 px 20px ;
1830 background : # 000 ;
19- color : # fff ;
31+ color : # e0e0e0 ;
32+ margin : 0 ;
33+ }
34+ .container {
35+ max-width : 600px ;
36+ margin : 0 auto;
2037 }
2138 h1 {
22- margin-top : 50px ;
2339 color : # 5CDED3 ;
40+ font-size : 2.5em ;
41+ margin-bottom : 20px ;
2442 }
2543 p {
2644 margin : 20px 0 ;
45+ font-size : 1.1em ;
46+ line-height : 1.6 ;
47+ }
48+ .loading {
49+ animation : pulse 2s infinite;
50+ }
51+ @keyframes pulse {
52+ 0% { opacity : 0.5 ; }
53+ 50% { opacity : 1 ; }
54+ 100% { opacity : 0.5 ; }
2755 }
2856 a {
2957 color : # 5CDED3 ;
3058 text-decoration : none;
59+ border : 1px solid # 5CDED3 ;
60+ padding : 10px 20px ;
61+ display : inline-block;
62+ margin-top : 20px ;
63+ transition : all 0.3s ease;
3164 }
3265 a : hover {
33- text-decoration : underline;
66+ background : # 5CDED3 ;
67+ color : # 000 ;
3468 }
3569 </ style >
3670</ head >
3771< body >
38- < h1 > Page Not Found</ h1 >
39- < p > Redirecting to the home page...</ p >
40- < p > If you are not redirected automatically, < a href ="/3D-Portfolio/ "> click here</ a > .</ p >
72+ < div class ="container ">
73+ < h1 > Redirecting...</ h1 >
74+ < p class ="loading "> Please wait while we redirect you to the 3D Portfolio experience.</ p >
75+ < p > If you are not redirected automatically:</ p >
76+ < a href ="/3D-Portfolio/ "> Return to 3D Portfolio</ a >
77+ </ div >
4178</ body >
4279</ html >
0 commit comments