1
0
Fork 0
This repository has been archived on 2023-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
chellaris-galaxy-political-.../app/page.tsx

29 lines
978 B
TypeScript
Raw Normal View History

'use client';
import { useState } from 'react';
2023-05-31 22:10:59 +00:00
import {RadarChart} from '../components/charts/radar'
import {EmpireStats} from '../components/tables/empires'
import { Checkbox } from '@nextui-org/react';
2023-06-01 23:06:04 +00:00
import { PopChart } from '@/components/charts/pops';
2023-06-03 01:01:56 +00:00
import { EthicsBar } from '../components/charts/ethicsBar';
2023-05-31 22:10:59 +00:00
export default function Home() {
const [weighted, setWeighted] = useState(true);
2023-05-31 22:10:59 +00:00
return (
<main className="flex min-h-screen flex-row items-center">
2023-06-01 23:06:04 +00:00
<div className='flex flex-row h-screen'>
<RadarChart weighted={weighted}/>
<div className='flex flex-col justify-around'>
<EmpireStats />
<Checkbox labelColor="primary" defaultSelected={weighted} onChange={() => setWeighted(!weighted)}>Weighted Ethics</Checkbox>
</div>
2023-06-03 01:01:56 +00:00
<div className='flex flex-col justify-around h-full'>
<PopChart></PopChart>
<EthicsBar></EthicsBar>
</div>
</div>
2023-05-31 22:10:59 +00:00
</main>
)
}