From 5190f67c38a05f4dbc8bdf748fa18a4099c6e00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sat, 30 Jan 2021 14:01:03 +0900 Subject: [PATCH] feat: added new bot list --- pages/list/new.tsx | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pages/list/new.tsx diff --git a/pages/list/new.tsx b/pages/list/new.tsx new file mode 100644 index 0000000..5720d4e --- /dev/null +++ b/pages/list/new.tsx @@ -0,0 +1,41 @@ +import { NextPage } from 'next' +import dynamic from 'next/dynamic' + +import { get } from '@utils/Query' +import { BotList } from '@types' + +const Hero = dynamic(() => import('@components/Hero')) +const Advertisement = dynamic(() => import('@components/Advertisement')) +const SEO = dynamic(() => import('@components/SEO')) +const BotCard = dynamic(() => import('@components/BotCard')) +const Container = dynamic(() => import('@components/Container')) + +const New:NextPage = ({ data }) => { + return <> + + + + +
+ { + data.data.map(bot => ) + } +
+
+ +} + +export const getServerSideProps = async () => { + const data = await get.list.new.load(1) + return { + props: { + data + } + } +} + +interface NewProps { + data: BotList +} + +export default New \ No newline at end of file