Skip to content

Commit

Permalink
Added 2023 preliminary data (still need to add the last weeks of the …
Browse files Browse the repository at this point in the history
…year plus fixing formatting on game names)
  • Loading branch information
originalnicodr committed Dec 16, 2023
1 parent 917392a commit 0fa6cdc
Show file tree
Hide file tree
Showing 4 changed files with 182,199 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/home/year-cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const coverContainerStyle: CSS.Properties = {
position: 'relative',
//width: '100%',
//max-width: '600px', /* Set your desired max-width */
margin: '15px 0px',
margin: '15px',
width: '480px',//'600px',
height: '640px',//'800px',
overflow: 'hidden',
Expand Down
7 changes: 7 additions & 0 deletions pages/2023.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import WrapYear from "./_year-data";

const Home = () => {
return WrapYear(2023);
};

export default Home;
6 changes: 3 additions & 3 deletions pages/api/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ export const getHofAuthors = () => axios.get(`${AUTHORSAPI}?timestamp=${timestam
export const getSysImages = (year: number) => {
switch(year) {
case 2021: {
axios.get(`sysdb2021.json?timestamp=${timestamp}`);
return axios.get(`sysdb2021.json?timestamp=${timestamp}`);
}
case 2022: {
return axios.get(`sysdb2022.json?timestamp=${timestamp}`);
return axios.get(`sysdb2022.json?timestamp=${timestamp}`);
}
case 2023: {
axios.get(`sysdb2023.json?timestamp=${timestamp}`);
return axios.get(`sysdb2023.json?timestamp=${timestamp}`);
}
default: {
return [];
Expand Down
Loading

0 comments on commit 0fa6cdc

Please sign in to comment.