Removed Tailwind css, moved api to v1 dir
This commit is contained in:
parent
c8f96eb694
commit
c9fba4666e
18 changed files with 195 additions and 453 deletions
app/graphs
25
app/graphs/page.tsx
Normal file
25
app/graphs/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
Reference in a new issue