File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,11 +34,9 @@ export function App() {
3434 < Suspense fallback = { < Loader size = "10" placeSelf = "center" /> } >
3535 < Container >
3636 < Routes >
37- < Route path = { import . meta. env . BASE_URL } >
38- < Route index element = { < Home /> } />
39- < Route path = "year/:year" element = { < YearLayout /> } >
40- < Route index element = { < Main /> } />
41- </ Route >
37+ < Route path = "/" element = { < Home /> } />
38+ < Route path = "/year/:year" element = { < YearLayout /> } >
39+ < Route index element = { < Main /> } />
4240 </ Route >
4341 </ Routes >
4442 </ Container >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function Header() {
1616 px = "large"
1717 py = "small"
1818 >
19- < NavLink to = { import . meta . env . BASE_URL } title = "Homepage" >
19+ < NavLink to = "/" title = "Homepage" >
2020 < Logo size = { 2 } color = "secondaryText" />
2121 </ NavLink >
2222
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export function useBackupData<K extends BackupDataType>(
5555
5656 setLoading ( true )
5757 setError ( undefined )
58- fetch ( `${ import . meta . env . BASE_URL } backups/${ year } /${ type } .json` )
58+ fetch ( `/ backups/${ year } /${ type } .json` )
5959 . then ( res => {
6060 if ( ! res . ok ) throw new Error ( `HTTP ${ res . status } ` )
6161 return res . json ( )
Original file line number Diff line number Diff line change @@ -41,8 +41,10 @@ export function Home() {
4141
4242 < BoxPanel title = "Previous editions" >
4343 < Box
44- display = "grid"
45- gridTemplateColumns = { [ '1fr' , 'repeat(3, 1fr)' ] }
44+ display = "flex"
45+ flexWrap = "wrap"
46+ flexDirection = "row"
47+ justifyContent = "space-around"
4648 gap = "2"
4749 >
4850 < EditionLink year = { 2025 } logo = { IconLogo2025 } />
@@ -69,7 +71,7 @@ type EditionLinkProps = {
6971
7072export function EditionLink ( { year, logo : Icon } : EditionLinkProps ) {
7173 return (
72- < SLink to = { `${ import . meta . env . BASE_URL } year/${ year } ` } flexDirection = "column" >
74+ < SLink to = { `/ year/${ year } ` } flexDirection = "column" >
7375 < Icon size = "13" />
7476 < Box as = "span" > { `${ year } ` } </ Box >
7577 </ SLink >
You can’t perform that action at this time.
0 commit comments