File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
2- "name" : " temp-project " ,
2+ "name" : " frostpixel-portfolio " ,
33 "private" : true ,
4- "version" : " 0 .0.0" ,
4+ "version" : " 1 .0.0" ,
55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { BrowserRouter , Routes , Route } from 'react-router-dom' ;
1+ import { HashRouter , Routes , Route } from 'react-router-dom' ;
22import { Layout } from './components/layout/Layout' ;
33import { HomePage } from './pages/HomePage' ;
44import { AboutPage } from './pages/AboutPage' ;
@@ -8,7 +8,7 @@ import { ContactPage } from './pages/ContactPage';
88
99function App ( ) {
1010 return (
11- < BrowserRouter >
11+ < HashRouter >
1212 < Routes >
1313 < Route path = "/" element = { < Layout /> } >
1414 < Route index element = { < HomePage /> } />
@@ -18,7 +18,7 @@ function App() {
1818 < Route path = "contact" element = { < ContactPage /> } />
1919 </ Route >
2020 </ Routes >
21- </ BrowserRouter >
21+ </ HashRouter >
2222 ) ;
2323}
2424
Original file line number Diff line number Diff line change @@ -3,19 +3,6 @@ import { createRoot } from 'react-dom/client'
33import './index.css'
44import App from './App.tsx'
55
6- // Handle GitHub Pages SPA redirect
7- // https://github.com/rafgraph/spa-github-pages
8- ( function ( l ) {
9- if ( l . search [ 1 ] === '/' ) {
10- var decoded = l . search . slice ( 1 ) . split ( '&' ) . map ( function ( s ) {
11- return s . replace ( / ~ a n d ~ / g, '&' )
12- } ) . join ( '?' ) ;
13- window . history . replaceState ( null , '' ,
14- l . pathname . slice ( 0 , - 1 ) + decoded + l . hash
15- ) ;
16- }
17- } ( window . location ) )
18-
196createRoot ( document . getElementById ( 'root' ) ! ) . render (
207 < StrictMode >
218 < App />
You can’t perform that action at this time.
0 commit comments