1
0
Fork 0

Removed Tailwind css, moved api to v1 dir

This commit is contained in:
Neshura 2023-06-08 21:21:34 +02:00
parent c8f96eb694
commit c9fba4666e
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
18 changed files with 195 additions and 453 deletions
app/graphs

25
app/graphs/page.tsx Normal file
View file

@ -0,0 +1,25 @@
'use client';
import '@/app/globals.css';
import { useState } from 'react';
import { RadarChart } from '../../components/charts/radar'
import { EmpireStats } from '../../components/tables/empires'
import { Checkbox } from '@nextui-org/react';
import { PopChart } from '@/components/charts/pops';
import { EthicsBar } from '../../components/charts/ethicsBar';
export default function Graphs() {
const [weighted, setWeighted] = useState(true);
return (
<main className='charts'>
<div className='column'>
<RadarChart weighted={weighted} />
<Checkbox labelColor="primary" defaultSelected={weighted} onChange={() => setWeighted(!weighted)}>Weighted Ethics</Checkbox>
</div>
<EmpireStats />
<div className='column'>
<PopChart></PopChart>
<EthicsBar></EthicsBar>
</div>
</main>
)
}