main-site/pages/servers.tsx

34 lines
906 B
TypeScript
Raw Normal View History

2022-12-03 20:02:13 +00:00
import Head from 'next/head'
import { Game } from '../interfaces/CardTypes';
2022-12-17 00:20:58 +00:00
import { PageContentBox, PageDescription, PageTitle, CardContentGame } from '../components/styles/content'
2023-03-14 21:32:53 +00:00
import GameList from '../public/data/pages.json';
2022-12-03 20:02:13 +00:00
function Servers() {
// TODO: unuggly this shit
const serverList: Game[] = JSON.parse(JSON.stringify(GameList.games));
2022-12-03 20:02:13 +00:00
return (
<>
<Head>
<title>Neshweb - Servers</title>
2022-12-03 20:02:13 +00:00
<meta charSet='utf-8' />
<link rel="icon" href="/favicon.ico" />
</Head>
<PageTitle>
2022-12-03 20:02:13 +00:00
Server List
</PageTitle>
2022-12-03 20:02:13 +00:00
<PageDescription>
2022-12-03 20:02:13 +00:00
Lists all available Services, probably up-to-date
</PageDescription>
<PageContentBox>
2022-12-17 00:20:58 +00:00
{Object.values(serverList).map((item: Game) => (
<CardContentGame key={item.name} content={item} />
))}
</PageContentBox>
2022-12-03 20:02:13 +00:00
</>
)
}
export default Servers